ScreenModeMonitor
public class ScreenModeMonitor : BaseNotificationMonitor
A ScreenModeMonitor instance monitors a screen for changes to its
current mode.
-
Encapsulates changes to the current mode of the screen.
See moreDeclaration
Swift
public enum Event -
Initializes a new
ScreenModeMonitor.Declaration
Swift
public init(screen: UIScreen, queue: OperationQueue = .main, handler: @escaping (Event) -> Void)Parameters
screenThe screen to monitor.
queueThe operation queue on which the handler executes. By default, the main operation queue is used.
handlerThe handler to call when the current mode of the screen changes.
-
The screen being monitored.
Declaration
Swift
public let screen: UIScreen -
Declaration
Swift
public override func addNotificationObservers()
View on GitHub
Install in Dash
ScreenModeMonitor Class Reference