volume_watcher 1.0.0 copy "volume_watcher: ^1.0.0" to clipboard
volume_watcher: ^1.0.0 copied to clipboard

outdated

支持ios 与 android 以下功能: 1.实时监听返回系统音量值的改变,并返回音量值。 2.返回系统支持的最大音量,防止android不同机型最大值不同。 3.返回系统改变音量前的初始值。 4.尚未支持设置音量,如有这方面需求,请提issues。 5.ios不是很熟,如有更好实现方案请提出。 6.对外提供如下方法: getMaxVolume getCurrentVolume 7.对外提供监听 [...]

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add volume_watcher

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  volume_watcher: ^1.0.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:volume_watcher/volume_watcher.dart';
34
likes
0
pub points
91%
popularity

Publisher

unverified uploader

支持ios 与 android 以下功能: 1.实时监听返回系统音量值的改变,并返回音量值。 2.返回系统支持的最大音量,防止android不同机型最大值不同。 3.返回系统改变音量前的初始值。 4.尚未支持设置音量,如有这方面需求,请提issues。 5.ios不是很熟,如有更好实现方案请提出。 6.对外提供如下方法: getMaxVolume getCurrentVolume 7.对外提供监听:onVolumeChangeListener

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on volume_watcher