MethodChannelMova class

An implementation of MovaPlatform that uses method channels.

Inheritance

Constructors

MethodChannelMova()

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
pipChanges → Stream<bool>
PiP mode changes pushed by the platform (true = entered, false = left). Empty on platforms without a native PiP listener.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

enterPip({int? width, int? height}) → Future<bool>
Requests system PiP with an optional width/height aspect hint. Returns whether PiP was entered.
override
getPlatformVersion() → Future<String?>
Returns the host platform's version string, e.g. Android 12.
override
getSystemVolume() → Future<double?>
Reads the system media volume as a percentage in [0, 100], or null when the platform has no implementation.
override
isPipSupported() → Future<bool>
Whether this platform can enter system picture-in-picture.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSystemVolume(double percent) → Future<bool>
Sets the system media volume to percent ([0, 100]). Returns whether the platform applied it.
override
toString() → String
A string representation of this object.
inherited

Operators

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