device_volume 0.1.1
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 ofVolumeState. Volume values are normalized across all platforms. VolumeStateis no longer exported (still used internally).setVolume/setVolumeComputenow validate that the value is between 0 and 100, throwingInvalidVolumeValueExceptionif 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:
DeviceVolumefaçade withgetVolume,setVolume,incrementVolume,decrementVolume,streamVolumeand Compute variants. - Add
VolumeState,VolumeChannelmodels. - 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.