MethodChannelDashShield class
An implementation of DashShieldPlatform that uses method channels to communicate with native platform code for security features.
MethodChannelDashShield provides methods for preventing screenshots and screen recording, interacting with platform-specific implementations through method channels.
Example usage:
MethodChannelDashShield().preventScreenshotsGlobally();
MethodChannelDashShield().preventScreenshotsAndRecording();
- Inheritance
-
- Object
- PlatformInterface
- DashShieldPlatform
- MethodChannelDashShield
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
allowScreenshots(
) → Future< void> -
Allows screenshots for the current screen only using native platform methods.
override
-
allowScreenshotsGlobally(
) → Future< void> -
Allows screenshots globally across the app using native platform methods.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preventScreenshotsAndRecording(
) → Future< void> -
Prevents both screenshots and screen recording for specific screens using
native platform methods.
override
-
preventScreenshotsGlobally(
) → Future< void> -
Prevents screenshots globally across the app using native platform methods.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited