MethodChannelNoScreenshot class
An implementation of NoScreenshotPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- NoScreenshotPlatform
- MethodChannelNoScreenshot
Constructors
Properties
- eventChannel → EventChannel
-
final
- 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
-
screenshotStream
→ Stream<
ScreenshotSnapshot> -
Stream to screenshot activities
ScreenshotSnapshot
This stream will emit aScreenshotSnapshot
whenever a screenshot is taken. TheScreenshotSnapshot
contains the path to the screenshot file. throwUnmimplementedError
if not implementno setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
screenshotOff(
) → Future< bool> -
Return
true
if screenshot capabilities has been successfully disabled or is currently disabled andfalse
otherwise. throwUnmimplementedError
if not implementoverride -
screenshotOn(
) → Future< bool> -
Return
true
if screenshot capabilities has been successfully enabled or is currently enabled andfalse
otherwise. throwUnmimplementedError
if not implementoverride -
startScreenshotListening(
) → Future< void> -
override
-
stopScreenshotListening(
) → Future< void> -
Stop listening to screenshot activities
override
-
toggleScreenshot(
) → Future< bool> -
Return
true
if screenshot capabilities has been successfully toggle from it previous state andfalse
if the attempt to toggle failed. throwUnmimplementedError
if not implementoverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited