ScreenProtector class

Constructors

ScreenProtector()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

addListener(void screenshotListener()?, void screenRecordListener(bool)?) → void
Add callback actions when screenshot or screen record events received, Supported for iOS only, do nothing when run on Android.
isRecording() Future<bool>
Supported for iOS only, do nothing when run on Android.
preventScreenshotOff() Future<void>
Supported for Android and iOS.
preventScreenshotOn() Future<void>
Supported for Android and iOS.
protectDataLeakageOff() Future<void>
Supported for Android and iOS.
protectDataLeakageOn() Future<void>
Supported for Android only, do nothing when run on iOS.
protectDataLeakageWithBlur() Future<void>
Supported for iOS only, do nothing when run on Android.
protectDataLeakageWithBlurOff() Future<void>
Supported for iOS only, do nothing when run on Android.
protectDataLeakageWithColor(Color color) Future<void>
Supported for iOS only, do nothing when run on Android.
protectDataLeakageWithColorOff() Future<void>
Supported for iOS only, do nothing when run on Android.
protectDataLeakageWithImage(String imageName) Future<void>
Supported for iOS only, do nothing when run on Android.
removeListener() → void
Remove observers Supported for iOS only, do nothing when run on Android.