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

PlatformAndroidiOS
outdated

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();
3
likes
160
pub points
38%
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