device_volume 0.1.1 copy "device_volume: ^0.1.1" to clipboard
device_volume: ^0.1.1 copied to clipboard

Control the device volume from Flutter. Provides getVolume, setVolume, incrementVolume, decrementVolume and streamVolume with synchronous and compute-based async variants. Uses JNIgen on Android and F [...]

0.1.1 #

  • Breaking: All public API methods now return int (0–100) instead of VolumeState. Volume values are normalized across all platforms.
  • VolumeState is no longer exported (still used internally).
  • setVolume / setVolumeCompute now validate that the value is between 0 and 100, throwing InvalidVolumeValueException if not.
  • Android backend: native volume ranges (e.g. 0–15) are mapped to 0–100.
  • Added unit tests for VolumeState, exceptions, and error-code mapping.
  • Updated example app, README and doc comments for the new int API.

0.1.0 #

  • Define public API: DeviceVolume façade with getVolume, setVolume, incrementVolume, decrementVolume, streamVolume and Compute variants.
  • Add VolumeState, VolumeChannel models.
  • Add custom exception hierarchy: DeviceVolumeException, UnsupportedOperationException, InvalidVolumeValueException, NativeBackendException, VolumeObservationException, BackendNotAvailableException, PermissionDeniedException.
  • Scaffold backend contract and platform selector.
  • Prepare pub.dev metadata and CI/CD workflows.
1
likes
150
points
28
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Control the device volume from Flutter. Provides getVolume, setVolume, incrementVolume, decrementVolume and streamVolume with synchronous and compute-based async variants. Uses JNIgen on Android and FFI + FFIgen on iOS, macOS, Linux and Windows.

Repository (GitHub)
View/report issues

Topics

#volume #audio #ffi #platform

License

MIT (license)

Dependencies

flutter, jni, plugin_platform_interface

More

Packages that depend on device_volume

Packages that implement device_volume