ScreenCapturedMonitor
@available(iOS 11.0, tvOS 11.0, *)
public class ScreenCapturedMonitor : BaseNotificationMonitor
A ScreenCapturedMonitor
instance monitors a screen for changes to its
captured status.
-
Encapsulates changes to the captured status of the screen.
See moreDeclaration
Swift
public enum Event
-
Initializes a new
ScreenCapturedMonitor
.Declaration
Swift
public init(screen: UIScreen, queue: OperationQueue = .main, handler: @escaping (Event) -> Void)
Parameters
screen
The screen 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 the captured status of the screen changes.
-
The screen being monitored.
Declaration
Swift
public let screen: UIScreen
-
Declaration
Swift
public override func addNotificationObservers()