public interface ISdl
| Modifier and Type | Method and Description |
|---|---|
void |
addOnRPCListener(FunctionID responseId,
OnRPCListener listener)
Add an OnRPCResponseListener for specified response
|
void |
addOnRPCNotificationListener(FunctionID notificationId,
OnRPCNotificationListener listener)
Add an OnRPCNotificationListener for specified notification
|
void |
addOnRPCRequestListener(FunctionID functionID,
OnRPCRequestListener listener)
Add an OnRPCRequestListener for specified request
|
void |
addServiceListener(SessionType serviceType,
ISdlServiceListener sdlServiceListener)
Add a service listener for a specific service type
|
long |
getMtu(SessionType serviceType)
Get the max payload size for a packet to be sent to the module
|
PermissionManager |
getPermissionManager() |
Version |
getProtocolVersion()
Get the protocol version of this session
|
RegisterAppInterfaceResponse |
getRegisterAppInterfaceResponse()
Get RegisterAppInterfaceResponse
|
SdlMsgVersion |
getSdlMsgVersion()
Get the RPC specification version currently being used for the SDL messages
|
SystemCapabilityManager |
getSystemCapabilityManager() |
com.livio.taskmaster.Taskmaster |
getTaskmaster() |
boolean |
isConnected()
Method to check if the session is connected
|
boolean |
isTransportForServiceAvailable(SessionType serviceType)
Check to see if a transport is available to start/use the supplied service.
|
boolean |
removeOnRPCListener(FunctionID responseId,
OnRPCListener listener)
Removes an OnRPCResponseListener for specified response
|
boolean |
removeOnRPCNotificationListener(FunctionID notificationId,
OnRPCNotificationListener listener)
Removes an OnRPCNotificationListener for specified notification
|
boolean |
removeOnRPCRequestListener(FunctionID functionID,
OnRPCRequestListener listener)
Removes an OnRPCRequestListener for specified request
|
void |
removeServiceListener(SessionType serviceType,
ISdlServiceListener sdlServiceListener)
Remote a service listener for a specific service type
|
void |
sendRPC(RPCMessage message)
Pass an RPC message through the proxy to be sent to the connected module
|
void |
sendRPCs(List<? extends RPCMessage> rpcs,
OnMultipleRequestListener listener)
Pass a list of RPC messages through the proxy to be sent to core
|
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 the connection with the module
|
void |
startAudioService(boolean encrypted)
Starts the Audio streaming service
|
void |
startRPCEncryption()
Start encrypted RPC service
|
void |
startVideoService(VideoStreamingParameters parameters,
boolean encrypted,
boolean withPendingRestart)
Starts the video streaming service
|
void |
stop()
Ends connection with the module
|
void start()
void stop()
boolean isConnected()
void addServiceListener(SessionType serviceType, ISdlServiceListener sdlServiceListener)
serviceType - service type that the listener will be attached tosdlServiceListener - listener for events that happen to the servicevoid removeServiceListener(SessionType serviceType, ISdlServiceListener sdlServiceListener)
serviceType - service type that the listener was attached tosdlServiceListener - service listener that was previously added for the service typevoid startVideoService(VideoStreamingParameters parameters, boolean encrypted, boolean withPendingRestart)
parameters - desired video streaming params for this service to be started withencrypted - flag to start this service with encryption or notwithPendingRestart - flag to start this service right after OnSystemCapabilityUpdatedvoid startAudioService(boolean encrypted)
encrypted - flag to start this service with encryption or notvoid sendRPC(RPCMessage message)
message - RPCMessage that should be sent to the modulevoid sendRPCs(List<? extends RPCMessage> rpcs, OnMultipleRequestListener listener)
rpcs - List of RPC messageslistener - OnMultipleRequestListener that is called between requests and after all are processedvoid sendSequentialRPCs(List<? extends RPCMessage> rpcs, OnMultipleRequestListener listener)
rpcs - is the list of RPCMessages being sentlistener - listener for updates and completionsvoid addOnRPCNotificationListener(FunctionID notificationId, OnRPCNotificationListener listener)
notificationId - FunctionID of the notification that is to be listened forlistener - listener that should be added for the notification IDboolean removeOnRPCNotificationListener(FunctionID notificationId, OnRPCNotificationListener listener)
notificationId - FunctionID of the notification that was to be listened forlistener - listener that was previously added for the notification IDvoid addOnRPCRequestListener(FunctionID functionID, OnRPCRequestListener listener)
functionID - FunctionID of the request that is to be listened forlistener - listener that should be added for the request IDboolean removeOnRPCRequestListener(FunctionID functionID, OnRPCRequestListener listener)
functionID - FunctionID of the request that was to be listened forlistener - listener that was previously added for the request IDvoid addOnRPCListener(FunctionID responseId, OnRPCListener listener)
responseId - FunctionID of the response that is to be listened forlistener - listener that should be added for the response IDboolean removeOnRPCListener(FunctionID responseId, OnRPCListener listener)
responseId - FunctionID of the response that was to be listened forlistener - listener that was previously added for the response IDRegisterAppInterfaceResponse getRegisterAppInterfaceResponse()
boolean isTransportForServiceAvailable(SessionType serviceType)
serviceType - the session that should be checked for transport availability@NonNull SdlMsgVersion getSdlMsgVersion()
@NonNull Version getProtocolVersion()
long getMtu(SessionType serviceType)
void startRPCEncryption()
com.livio.taskmaster.Taskmaster getTaskmaster()
SystemCapabilityManager getSystemCapabilityManager()
PermissionManager getPermissionManager()