android_battery_optimizations 0.0.1 copy "android_battery_optimizations: ^0.0.1" to clipboard
android_battery_optimizations: ^0.0.1 copied to clipboard

PlatformAndroid

You can check battery otimization status and launch permission dialog. This plugin does not cover "manufacturer battery optimizations" checks yet. Planning to add this feature soon.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add android_battery_optimizations

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

dependencies:
  android_battery_optimizations: ^0.0.1

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:android_battery_optimizations/android_battery_optimizations.dart';
2
likes
130
points
65
downloads

Publisher

unverified uploader

Weekly Downloads

You can check battery otimization status and launch permission dialog. This plugin does not cover "manufacturer battery optimizations" checks yet. Planning to add this feature soon.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on android_battery_optimizations

Packages that implement android_battery_optimizations