public class SdlManager extends Object
This is the main point of contact between an application and SDL
It is broken down to these areas:
1. SDLManagerBuilder
2. ISdl Interface along with its overridden methods - This can be passed into attached managers
3. Sending Requests
4. Helper methods
| Modifier and Type | Class and Description |
|---|---|
static class |
SdlManager.Builder |
| Constructor and Description |
|---|
SdlManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOnRPCNotificationListener(FunctionID notificationId,
OnRPCNotificationListener listener)
Add an OnRPCNotificationListener
|
void |
addOnRPCRequestListener(FunctionID requestId,
OnRPCRequestListener listener)
Add an OnRPCRequestListener
|
protected void |
checkLifecycleConfiguration() |
void |
dispose()
Dispose SdlManager and clean its resources
Note: new instance of SdlManager should be created on every connection.
|
protected String |
getAppId() |
protected String |
getAppName() |
protected Vector<AppHMIType> |
getAppTypes() |
AudioStreamManager |
getAudioStreamManager()
Gets the AudioStreamManager.
|
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
|
protected TemplateColorScheme |
getDayColorScheme() |
FileManager |
getFileManager()
Gets the FileManager.
|
protected FileManagerConfig |
getFileManagerConfig() |
protected Language |
getHmiLanguage() |
protected Language |
getLanguage() |
protected LockScreenConfig |
getLockScreenConfig() |
LockScreenManager |
getLockScreenManager()
Gets the LockScreenManager.
|
protected Version |
getMinimumProtocolVersion() |
protected Version |
getMinimumRPCVersion() |
protected TemplateColorScheme |
getNightColorScheme() |
PermissionManager |
getPermissionManager()
Gets the PermissionManager.
|
RegisterAppInterfaceResponse |
getRegisterAppInterfaceResponse()
Method to retrieve the RegisterAppInterface Response message that was sent back from the
module.
|
ScreenManager |
getScreenManager()
Gets the ScreenManager.
|
protected String |
getShortAppName() |
int |
getState()
Get the current state for the SdlManager
|
SystemCapabilityManager |
getSystemCapabilityManager()
Gets the SystemCapabilityManager.
|
protected BaseTransportConfig |
getTransport() |
protected Vector<TTSChunk> |
getTtsChunks() |
VideoStreamManager |
getVideoStreamManager()
Gets the VideoStreamManager.
|
protected Vector<String> |
getVrSynonyms() |
protected void |
initialize() |
void |
removeOnRPCNotificationListener(FunctionID notificationId,
OnRPCNotificationListener listener)
Remove an OnRPCNotificationListener
|
void |
removeOnRPCRequestListener(FunctionID requestId,
OnRPCRequestListener listener)
Remove an OnRPCRequestListener
|
void |
sendRPC(RPCMessage message)
Send RPC Message
|
void |
sendRPCs(List<? extends RPCMessage> rpcs,
OnMultipleRequestListener listener)
Takes a list of RPCMessages and sends it to SDL.
|
void |
sendSequentialRPCs(List<? extends RPCMessage> rpcs,
OnMultipleRequestListener listener)
Takes a list of RPCMessages and sends it to SDL in a synchronous fashion.
|
void |
start()
Starts up a SdlManager, and calls provided callback called once all BaseSubManagers are done setting up
|
void |
startRPCEncryption()
Start a secured RPC service
|
protected void |
transitionToState(int state) |
public void start()
protected void initialize()
public void dispose()
@Nullable public VideoStreamManager getVideoStreamManager()
@Nullable public AudioStreamManager getAudioStreamManager()
public LockScreenManager getLockScreenManager()
protected LockScreenConfig getLockScreenConfig()
protected void checkLifecycleConfiguration()
public int getState()
BaseSubManagerprotected void transitionToState(int state)
protected String getAppName()
protected String getAppId()
protected String getShortAppName()
protected Version getMinimumProtocolVersion()
protected Version getMinimumRPCVersion()
protected Language getHmiLanguage()
protected Language getLanguage()
protected TemplateColorScheme getDayColorScheme()
protected TemplateColorScheme getNightColorScheme()
protected Vector<AppHMIType> getAppTypes()
protected BaseTransportConfig getTransport()
protected FileManagerConfig getFileManagerConfig()
public PermissionManager getPermissionManager()
public FileManager getFileManager()
public ScreenManager getScreenManager()
public SystemCapabilityManager getSystemCapabilityManager()
public RegisterAppInterfaceResponse getRegisterAppInterfaceResponse()
public OnHMIStatus getCurrentHMIStatus()
public String getAuthToken()
public void sendRPC(RPCMessage message)
message - RPCMessagepublic void sendSequentialRPCs(List<? extends RPCMessage> rpcs, OnMultipleRequestListener listener)
rpcs - is the list of RPCMessages being sentlistener - listener for updates and completionspublic void sendRPCs(List<? extends RPCMessage> rpcs, OnMultipleRequestListener listener)
rpcs - is the list of RPCMessages being sentlistener - listener for updates and completionspublic void addOnRPCNotificationListener(FunctionID notificationId, OnRPCNotificationListener listener)
listener - listener that will be called when a notification is receivedpublic void removeOnRPCNotificationListener(FunctionID notificationId, OnRPCNotificationListener listener)
listener - listener that was previously addedpublic void addOnRPCRequestListener(FunctionID requestId, OnRPCRequestListener listener)
listener - listener that will be called when a request is receivedpublic void removeOnRPCRequestListener(FunctionID requestId, OnRPCRequestListener listener)
listener - listener that was previously addedpublic void startRPCEncryption()