Kanzi Connect  3.9.8
Kanzi Connect Java API
ActivityBase Class Referenceabstract
Inheritance diagram for ActivityBase:

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. More...
 
List< String > getRequiredPermissions ()
 Override this method to declare the required permissions. More...
 
ServiceStarter getServiceStarter ()
 Override this to provide your own ServiceStarter implementation. More...
 
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. More...
 

Member Function Documentation

◆ getNotRequiredPermissions()

List<String> getNotRequiredPermissions ( )
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.

◆ getRequiredPermissions()

List<String> getRequiredPermissions ( )
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.

◆ getServiceStarter()

ServiceStarter getServiceStarter ( )
protected

Override this to provide your own ServiceStarter implementation.

Returns
A ServiceStarter

◆ startAndroidService()

void startAndroidService ( )
protected

Starts the android service.

Override this if you want to customize how the service is started.