ScreenMirrorHandle class
Handle returned by FlutterAndroidShell.screenMirrorToTcp.
Exposes the loopback TCP port the raw H264 stream is served on and a
stop method to tear down both the server and the underlying adb
process at any time (e.g. from a "stop" button, avoiding a fixed timeout).
Whether the session is also being recorded is fixed at start via the
recordFile argument and reported by isRecording.
Properties
-
done
→ Future<
ScreenMirrorResult> -
Completes when the mirror ends, for any reason: stop was called,
adbexited, or the stream broke. Never completes with an error.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isRecording → bool
-
Whether this session is teeing the stream to a recording file.
final
- port → int
-
The loopback TCP port the raw H264 stream is served on
(
tcp://127.0.0.1:<port>).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stop(
) → Future< void> -
Stops the mirror: closes any recording (flushing the file), kills the
adb screenrecordprocess, drops the player connection and closes the server socket. Safe to call multiple times. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited