volume_util 0.0.4 copy "volume_util: ^0.0.4" to clipboard
volume_util: ^0.0.4 copied to clipboard

A flutter plugin to config and monitor volume. Support Android and iOS platform.

volume_util #

A flutter plugin to config and monitor volume. Support Android and iOS platform.

Getting Started #

Get Volume #

final VolumeUtil volumeUtil = VolumeUtil();
double volume = await volumeUtil.getVolume();

Set Volume #

double volume = 0.5;
final VolumeUtil volumeUtil = VolumeUtil();
bool success = await volumeUtil.setVolume(volume);

Listen Volume Change #

final VolumeUtil volumeUtil = VolumeUtil();
StreamSubscription ss = volumeUtil.getVolumeChangeStream().listen((volume) {
  debugPrint("volume:$volume");
});

...

ss.cancel();
2
likes
140
pub points
0%
popularity

Publisher

verified publisherzyzdev.dev

A flutter plugin to config and monitor volume. Support Android and iOS platform.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, volume_util_android, volume_util_ios, volume_util_platform_interface

More

Packages that depend on volume_util