Skip to content

Latest commit

 

History

History
63 lines (37 loc) · 1.26 KB

api-docs.md

File metadata and controls

63 lines (37 loc) · 1.26 KB

isBatterySaverPermissionAvailable(...)

isBatterySaverPermissionAvailable() => Promise<{ ignoring: boolean; }>

requestAutoStart(...)

requestAutoStart() => Promise<{ requested: boolean; }>

This method requests to add the app to the auto-start whitelist.


requestKeepAppActive(...)

requestKeepAppActive() => Promise<{ requested: boolean; }>

This method requests to keep the app active and prevent it from being paused.


requestRunInBackground(...)

requestRunInBackground() => Promise<{ requested: boolean; }>

This method requests the app to run in the background by combining battery saver and auto-start permissions.


openappinfo(...)

openAppInfo() => Promise<{ opening: boolean; }>

This method app info settings using the following method