AppShieldPlatform class abstract

The platform interface for the Dash Shield plugin, defining methods for preventing screenshots and screen recording across platforms.

AppShieldPlatform acts as an interface between the Flutter plugin and platform-specific implementations, defaulting to MethodChannelAppShield.

Example usage:

AppShieldPlatform.instance.preventScreenshotsGlobally();
AppShieldPlatform.instance.preventScreenshotsAndRecording();
Inheritance
  • Object
  • PlatformInterface
  • AppShieldPlatform
Implementers

Constructors

AppShieldPlatform()
Constructs a AppShieldPlatform instance with a verification token.

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

allowScreenshots() Future<void>
Allows screenshots for the current screen only.
allowScreenshotsGlobally() Future<void>
Allows screenshots globally for the entire app.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preventScreenshotsAndRecording() Future<void>
Prevents screenshots and screen recording for specific screens.
preventScreenshotsGlobally() Future<void>
Prevents screenshots globally for the entire app.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance AppShieldPlatform
Gets the current instance of AppShieldPlatform.
getter/setter pair