DashShieldPlatform class abstract

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

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

Example usage:

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

Constructors

DashShieldPlatform()
Constructs a DashShieldPlatform 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 DashShieldPlatform
Gets the current instance of DashShieldPlatform.
getter/setter pair