FijkVolume class
Fijk System Volume Manger
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- value → FijkVolumeEvent
-
get the system volume event.
a valid value is returned only if addListener is called and there's really volume changing
no setter
Static Methods
-
addListener(
VoidCallback listener) → void -
the
listenerwiil be nitified after system volume changed. the value after change can be obtained through FijkVolume.value -
down(
{double step = _defaultStep}) → Future< double> -
decrease system volume by step, step must be in range
0.0, 1.0. return the system volume value after decrease. the return volume value may be not equals to the current volume - step. -
getVol(
) → Future< double> -
get ths current system volume.
the range of returned value is
0.0, 1.0. -
mute(
) → Future< double> - Mute system volume. return system volume after mute
-
removeListener(
VoidCallback listener) → void -
remove the
listenerset using addListener -
setUIMode(
int mode) → Future< void> - update the ui mode when system volume changing. mode can be one of {hideUIWhenPlayable, hideUIWhenPlaying, neverShowUI, alwaysShowUI}
-
setVol(
double vol) → Future< double> -
set system volume to
vol. the range ofvolis0.0, 1,0. return the system volume value after set. -
up(
{double step = _defaultStep}) → Future< double> -
increase system volume by step, step must be in range
0.0, 1.0. return the system volume value after increase. the return volume value may be not equals to the current volume + step.
Constants
- alwaysShowUI → const int
- always show system volume changed UI
- hideUIWhenPlayable → const int
- show system volume changed UI if no playable player. hide system volume changed UI if some players are in playable state.
- hideUIWhenPlaying → const int
- show system volume changed UI if no start state player. hide system volume changed UI if some players are in start state.
- neverShowUI → const int
- never show system volume changed UI.
- STREAM_ALARM → const int
- STREAM_MUSIC → const int
- STREAM_RING → const int
- STREAM_SYSTEM → const int
- STREAM_VOICE_CALL → const int