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

Public Member Functions

void onReceive (Context context, Intent intent)
 

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...
 
void startAndroidService (Context context)
 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.

This is used by the default implementation of startAndroidService().

Returns
A ServiceStarter

◆ startAndroidService()

void startAndroidService ( Context  context)
protected

Starts the android service.

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