ScreenshotShieldPlatform class abstract
The interface that platform implementations of screenshot_shield must
extend.
- Inheritance
-
- Object
- PlatformInterface
- ScreenshotShieldPlatform
Constructors
- ScreenshotShieldPlatform()
- Constructs a ScreenshotShieldPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isScreenRecording → bool
-
Whether the app is currently visible in a screen recording or mirrored screen.
no setter
-
onScreenRecordingChanged
→ Stream<
bool> -
Emits the screen-recording state whenever it changes.
no setter
-
onScreenshotDetected
→ Stream<
void> -
Emits an event each time the user captures a screenshot.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Releases the native resources held by the plugin.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reportScreenRecordingState(
bool screenRecordingActive) → void - Records the state the platform reported, which isScreenRecording then returns.
-
setBackgroundBlur(
{required bool blurEnabled}) → Future< void> - Blurs the app content while the app is in the background.
-
setKeyboardProtection(
{required bool enabled}) → Future< void> - iOS only: keeps the on-screen keyboard out of captures.
-
setProtected(
{required bool protected}) → Future< void> -
Blanks screen captures of the app window while
protectedistrue. -
startListening(
) → Future< void> - Starts observing for screenshots.
-
stopListening(
) → Future< void> - Stops observing for screenshots.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ ScreenshotShieldPlatform
-
The default instance of ScreenshotShieldPlatform to use.
getter/setter pair