MirrorCapabilities class

Describes what screen-related detection features the current platform supports.

Use MirrorCapabilities.current to obtain the capabilities for the platform the app is running on.

Constructors

MirrorCapabilities({required bool canDetectMirroring, required bool canDetectExternalDisplay, required bool canDetectScreenSharing, required String platform, required String notes})
Creates a MirrorCapabilities with the given values.
const

Properties

canDetectExternalDisplay bool
Whether this platform can detect external display connections (e.g. HDMI).
final
canDetectMirroring bool
Whether this platform can detect screen mirroring (e.g. AirPlay, Miracast).
final
canDetectScreenSharing bool
Whether this platform can detect active screen sharing sessions.
final
hashCode int
The hash code for this object.
no setteroverride
notes String
Human-readable notes about platform-specific behavior or limitations.
final
platform String
The name of the current platform (e.g. 'android', 'ios', 'web').
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
toString() String
A string representation of this object.
override

Operators

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

Static Properties

current MirrorCapabilities
Returns the MirrorCapabilities for the current platform.
no setter