Skip to content

vuk/cordova-power-saver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-power-saver

Cordova Power Saver plugin is a small plugin that allows applications to check if device is in power saving mode

Usage

    PowerSaver.isPowerSaverEnabled()
        .then((isActive) => {
            console.log('Power saving mode is active', isActive);
        });

Platforms

  • Android (5+)
  • iOS (9+)

Roadmap

  • Adding the observable method that will allow subscribing to changes in power saver mode

Intended usage

    PowerSaver.powerSaverChange()
        .subscribe((isActive) => {
            console.log('Power saving mode has changed to', isActive);
        });

Warning

This plugin is still being tested so please don't use it just yet

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published