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
queueThe operation queue on which the handler executes. By default, the main operation queue is used.
handlerThe handler to call when the user presses the Home and Lock buttons to take a screenshot.
-
Declaration
Swift
override public func addNotificationObservers()
View on GitHub
Install in Dash
ScreenshotMonitor Class Reference