ScreenshotMonitor
public class ScreenshotMonitor : BaseNotificationMonitor
A ScreenshotMonitor
instance monitors the app for screenshots.
-
Encapsulates screenshots taken when the user presses the Home and Lock buttons.
See moreDeclaration
Swift
public enum Event
-
Initializes a new
ScreenshotMonitor
.Declaration
Swift
public init(queue: OperationQueue = .main, handler: @escaping (Event) -> Void)
Parameters
queue
The operation queue on which the handler executes. By default, the main operation queue is used.
handler
The handler to call when the user presses the Home and Lock buttons to take a screenshot.
-
Declaration
Swift
override public func addNotificationObservers()