battery_monitor 0.1.0 copy "battery_monitor: ^0.1.0" to clipboard
battery_monitor: ^0.1.0 copied to clipboard

A Flutter plugin that streams every battery percentage change natively on iOS and Android, with optional state-change notifications (charging, discharging, full).

0.1.0 #

Breaking changes

  • Removed threshold parameter from startMonitoring. The plugin now streams every battery percentage change instead of firing a one-shot threshold event.
  • BatteryEventType.thresholdReached replaced with BatteryEventType.levelChanged.

New behaviour

  • A levelChanged event is emitted on every 1% battery level change on both Android and iOS.

0.0.1 #

  • Initial release.
  • Native battery level monitoring for iOS and Android.
  • Configurable threshold notification (fires once per discharge cycle).
  • Optional battery state-change notifications.
  • getBatteryLevel() one-shot query.
4
likes
140
points
75
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin that streams every battery percentage change natively on iOS and Android, with optional state-change notifications (charging, discharging, full).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on battery_monitor

Packages that implement battery_monitor