MethodChannelScreenSecurityKit class
Platform-specific implementation of ScreenSecurityKitPlatform using MethodChannel.
Handles communication with native Android and iOS code to control screen capture and listen for screenshot events.
- Inheritance
-
- Object
- PlatformInterface
- ScreenSecurityKitPlatform
- MethodChannelScreenSecurityKit
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
MethodChannel for invoking native methods related to screen security.
final
-
onScreenshotTaken
→ Stream<
void> -
Stream that emits an event whenever a screenshot is detected on iOS.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
disableScreenCapture(
) → Future< void> -
Disables screen capture (screenshots and recordings) on supported platforms.
override
-
enableScreenCapture(
) → Future< void> -
Enables screen capture (screenshots and recordings) on supported platforms.
override
-
initialize(
) → Future< void> -
Initializes the plugin and sets up any required native listeners.
override
-
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