Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class LifecycleManager

Hierarchy

java.lang.Object
     com.smartdevicelink.managers.lifecycle.BaseLifecycleManager

Package
com.smartdevicelink.managers.lifecycle

Overview

The lifecycle manager creates a centeral point for all SDL session logic to converge. It should only be used by the library itself. Usage outside the library is not permitted and will not be protected for in the future.

Fields

MAX_SUPPORTED_RPC_VERSION

public static final com.smartdevicelink.util.Version MAX_SUPPORTED_RPC_VERSION

rpcSpecVersion

protected com.smartdevicelink.util.Version rpcSpecVersion

systemCapabilityManager

protected final com.smartdevicelink.proxy.SystemCapabilityManager systemCapabilityManager

raiResponse

protected com.smartdevicelink.proxy.rpc.RegisterAppInterfaceResponse raiResponse

firstTimeFull

protected boolean firstTimeFull

Constructors

LifecycleManager( LifecycleManager.AppConfig appConfig, BaseTransportConfig config, LifecycleManager.LifecycleListener listener )

public LifecycleManager(LifecycleManager.AppConfig appConfig,BaseTransportConfig config,LifecycleManager.LifecycleListener listener)

Parameters

appConfig
config
listener

Methods

start()

public void start()

stop()

public void stop()

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. NOTE: THERE IS NO GURANTEE THIS WILL BE A VALID SYSTEM CAPABILITY MANAGER

public com.smartdevicelink.proxy.SystemCapabilityManager getSystemCapabilityManager(SdlManager sdlManager)

Parameters

sdlManager
this must be a working manager instance

getRegisterAppInterfaceResponse()

Method to retrieve the RegisterAppInterface Response message that was sent back from the module. It contains various attributes about the connected module and can be used to adapt to different module types and their supported features.

public com.smartdevicelink.proxy.rpc.RegisterAppInterfaceResponse getRegisterAppInterfaceResponse()

getCurrentHMIStatus()

Get the current OnHMIStatus

public com.smartdevicelink.proxy.rpc.OnHMIStatus getCurrentHMIStatus()

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.

public com.smartdevicelink.proxy.interfaces.ISdl getInternalInterface(SdlManager sdlManager)

Parameters

sdlManager
this must be a working manager instance

getAuthToken()

Retrieves the auth token, if any, that was attached to the StartServiceACK for the RPC service from the module. For example, this should be used to login to a user account.

public java.lang.String getAuthToken()

setSdlSecurityClassList( java.util.List<java.lang.Class<? extends com.smartdevicelink.security.SdlSecurityBase>> list )

public void setSdlSecurityClassList(java.util.List<java.lang.Class<? extends com.smartdevicelink.security.SdlSecurityBase>> list)

Parameters

list

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section