public interface ISdlSessionListener
| Modifier and Type | Method and Description |
|---|---|
void |
onAuthTokenReceived(String authToken,
int sessionID)
Called when an auth token has been received.
|
void |
onRPCMessageReceived(RPCMessage rpcMessage)
Called when an RPC message has been received from the connected SDL device
|
void |
onSessionEnded(int sessionID)
Called to indicate that the session that was previously established has now ended.
|
void |
onSessionStarted(int sessionID,
Version version,
SystemInfo systemInfo)
Called to indicate that a session has started with the connected SDL device.
|
void |
onTransportDisconnected(String info,
boolean availablePrimary,
BaseTransportConfig transportConfig)
Called when a transport disconnects
|
void onTransportDisconnected(String info, boolean availablePrimary, BaseTransportConfig transportConfig)
info - a human readable string including information on the disconnected transportavailablePrimary - a boolean flag indicating if there is another transport that can
be used to connect with the SDL enabled device.transportConfig - the previously supplied transport configvoid onRPCMessageReceived(RPCMessage rpcMessage)
rpcMessage - the RPC message that was receivedvoid onSessionStarted(int sessionID,
Version version,
SystemInfo systemInfo)
sessionID - session ID associated with the session that was establishedversion - the protocol version that has been negotiated for this sessionsystemInfo - info about the device that this service is startedvoid onSessionEnded(int sessionID)
sessionID - the session ID that was assigned to this now closed sessionvoid onAuthTokenReceived(String authToken, int sessionID)
authToken - the actual auth token that has been stringifiedsessionID - the session ID that this auth token is associated with