isBatterySaverPermissionAvailable(...)
requestAutoStart(...)
requestKeepAppActive(...)
requestRunInBackground(...)
openAppInfo(...)
isBatterySaverPermissionAvailable() => Promise<{ ignoring: boolean; }>
requestAutoStart() => Promise<{ requested: boolean; }>
This method requests to add the app to the auto-start whitelist.
requestKeepAppActive() => Promise<{ requested: boolean; }>
This method requests to keep the app active and prevent it from being paused.
requestRunInBackground() => Promise<{ requested: boolean; }>
This method requests the app to run in the background by combining battery saver and auto-start permissions.
openAppInfo() => Promise<{ opening: boolean; }>
This method app info settings using the following method