control_volume

Creator: coderz1093

Last updated:

0 purchases

control_volume Image
control_volume Images

Languages

Categories

Add to Cart

Description:

control volume

control_volume #
A Flutter volume plugin for ios and android control system volume.
The show/hide system UI only support Android now
Variables #

bool showSystemUI: show or hide volume system UI
The default value is true.

VolumeControl().showSystemUI = true



Functions #

getVolume: get current volume from system

VolumeControl().getVolume()


setVolume: input a double number to set system volume. The range is [0, 1]

await VolumeControl().setVolume(double volume, {bool? showSystemUI})


listener: listen system volume

VolumeControl().listener((volume) { // TODO });


removeListener: cancel listen system volume

VolumeControl().removeListener()


getIncreaseRatioVolume: get volume increase ratio from system

VolumeControl().getIncreaseRatioVolume()

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.