IMovaVolume class abstract
A port for reading and writing the device's system media volume, as a
percentage in [0, 100].
This is the injection point for "who owns volume". When one is wired
(e.g. by createMova on Android, or by a host passing its own), the
volume gesture routes the target percent here instead of touching the
player's own volume — so the gesture drives the real system volume and the
video stays at full player volume. A host that wants full control can pass
a MovaCallbackVolume and apply the percent however it likes.
读写设备系统媒体音量的端口,取值为 [0, 100] 的百分比。
这是"音量归谁管"的注入点。接上端口后(如 Android 上由 createMova
接上,或由宿主自带),音量手势会把目标百分比交给这里,而不去动播放器
自身音量——于是手势驱动的是真实系统音量,视频保持播放器满音量。宿主想
完全接管,可传 MovaCallbackVolume 自行处置百分比。
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
) → Future< double> -
Reads the current volume as a percentage in
[0, 100]. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
double percent) → Future< void> -
Sets the volume to
percent, a value in[0, 100]. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited