Public Member Functions | |
void | onRequestPermissionsResult (int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) |
void | onResume () |
Protected Member Functions | |
abstract Class<?> | getAndroidServiceClass () |
List< String > | getNotRequiredPermissions () |
Override this method to declare some permissions as not required. | |
List< String > | getRequiredPermissions () |
Override this method to declare the required permissions. | |
ServiceStarter | getServiceStarter () |
Override this to provide your own ServiceStarter implementation. | |
abstract boolean | isReadyToStartService () |
void | onAndroidServiceStarted () |
Override this to do some extra work after the Android service has been started. | |
boolean | shouldFinishActivity () |
Override this to control if the activity should be closed after the Android service has been started. | |
void | startAndroidService () |
Starts the android service. | |
|
protected |
Override this method to declare some permissions as not required.
When checking/requesting the permissions, these permissions will be excluded from the list of required permissions. Thus, they won't be checked/requested.
|
protected |
Override this method to declare the required permissions.
If this method is not overridden or if it returns null then the required permissions are taken from the app's AndroidManifest.xml file.
|
protected |
Override this to provide your own ServiceStarter implementation.
|
protected |
Starts the android service.
Override this if you want to customize how the service is started.