public class LifecycleManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
com.smartdevicelink.managers.lifecycle.BaseLifecycleManager.AppConfig |
static interface |
com.smartdevicelink.managers.lifecycle.BaseLifecycleManager.LifecycleListener |
| Modifier and Type | Field and Description |
|---|---|
static Version |
MAX_SUPPORTED_RPC_VERSION |
| Constructor and Description |
|---|
LifecycleManager(com.smartdevicelink.managers.lifecycle.BaseLifecycleManager.AppConfig appConfig,
BaseTransportConfig config,
com.smartdevicelink.managers.lifecycle.BaseLifecycleManager.LifecycleListener listener) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthToken()
Retrieves the auth token, if any, that was attached to the StartServiceACK for the RPC
service from the module.
|
OnHMIStatus |
getCurrentHMIStatus()
Get the current OnHMIStatus
|
ISdl |
getInternalInterface(SdlManager sdlManager)
This method is used to ensure all of the methods in this class can remain private and no grantees can be made
to the developer what methods are available or not.
|
RegisterAppInterfaceResponse |
getRegisterAppInterfaceResponse()
Method to retrieve the RegisterAppInterface Response message that was sent back from the
module.
|
SystemCapabilityManager |
getSystemCapabilityManager(SdlManager sdlManager)
This method is used to ensure all of the methods in this class can remain private and no grantees can be made
to the developer what methods are available or not.
|
void |
setContext(Context context) |
void |
setSdlSecurity(List<Class<? extends SdlSecurityBase>> secList,
ServiceEncryptionListener listener)
Sets the security libraries and a callback to notify caller when there is update to encryption service
|
void |
start() |
void |
startRPCEncryption()
Start a secured RPC service
|
void |
stop() |
public static final Version MAX_SUPPORTED_RPC_VERSION
public LifecycleManager(com.smartdevicelink.managers.lifecycle.BaseLifecycleManager.AppConfig appConfig,
BaseTransportConfig config,
com.smartdevicelink.managers.lifecycle.BaseLifecycleManager.LifecycleListener listener)
public void setContext(Context context)
public void start()
public void startRPCEncryption()
public void stop()
public SystemCapabilityManager getSystemCapabilityManager(SdlManager sdlManager)
sdlManager - this must be a working manager instancepublic RegisterAppInterfaceResponse getRegisterAppInterfaceResponse()
public OnHMIStatus getCurrentHMIStatus()
public ISdl getInternalInterface(SdlManager sdlManager)
sdlManager - this must be a working manager instancepublic String getAuthToken()
public void setSdlSecurity(@NonNull
List<Class<? extends SdlSecurityBase>> secList,
ServiceEncryptionListener listener)
secList - The list of security class(es)listener - The callback object