ScreenCaptureEvent class

An event emitted by the native screen-capture monitor.

Constructors

ScreenCaptureEvent.captureChanged({required bool isCaptured})
const
ScreenCaptureEvent.screenshot()
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
isCaptured → bool?
For ScreenCaptureEventType.captureChanged: whether the screen is now being recorded / mirrored. Always null for screenshots.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → ScreenCaptureEventType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

tryParse(Object? raw) → ScreenCaptureEvent?
Parses a raw platform event. Returns null for anything malformed so a bad native payload can never crash a listener.