ScreenConnectionMonitor
public class ScreenConnectionMonitor : BaseNotificationMonitor
A ScreenConnectionMonitor instance monitors the device for screen
connections and disconnections.
-
Encapsulates screen connections to or screen disconnections from the device.
See moreDeclaration
Swift
public enum Event -
Specifies which events to monitor.
See moreDeclaration
Swift
public struct Options : OptionSet -
Initializes a new
ScreenConnectionMonitor.Declaration
Parameters
optionsThe options that specify which events to monitor.
queueThe operation queue on which the handler executes. By default, the main operation queue is used.
handlerThe handler to call when a screen is connected to or disconnected from the device.
-
Declaration
Swift
public override func addNotificationObservers()
View on GitHub
Install in Dash
ScreenConnectionMonitor Class Reference