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
options
The options that specify which events to monitor.
queue
The operation queue on which the handler executes. By default, the main operation queue is used.
handler
The handler to call when a screen is connected to or disconnected from the device.
-
Declaration
Swift
public override func addNotificationObservers()