NoScreenMirrorWeb class
Web implementation of NoScreenMirrorPlatform.
Detects external displays using the screen.isExtended API (Chromium 100+)
and listens for visibilitychange events.
- Inheritance
-
- Object
- PlatformInterface
- NoScreenMirrorPlatform
- NoScreenMirrorWeb
Constructors
- NoScreenMirrorWeb()
- Creates a NoScreenMirrorWeb instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
mirrorStream
→ Stream<
MirrorSnapshot> -
A broadcast stream of
MirrorSnapshotupdates.no setteroverride - 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
-
startListening(
{Duration pollingInterval = const Duration(seconds: 2), List< String> customScreenSharingProcesses = const []}) → Future<void> -
Starts listening for screen mirror and display state changes.
override
-
stopListening(
) → Future< void> -
Stops listening for screen mirror and display state changes.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void - Registers this implementation as the web platform instance.