ScreenshotDetect class

Constructors

ScreenshotDetect()
Calls the initializer function which adds UIApplication.userDidTakeScreenshotNotification observer (use addListener(VoidCallback callback) to run actions when user screenshots)

Properties

callbacks List<VoidCallback>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback callback) → void
Adds a callback function to be called when user screenshots
dispose() Future<void>
Stops listening for screenshots
initialize() Future<void>
Starts listening to screenshots (use addListener(VoidCallback callback) to run actions when user screenshots)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited