Interface ISdlSessionListener
- Package
- com.smartdevicelink.session
Methods
onTransportDisconnected(
String info,
boolean availablePrimary,
BaseTransportConfig transportConfig
)
Called when a transport disconnects
public void onTransportDisconnected(String info,boolean availablePrimary,BaseTransportConfig transportConfig)
Method Parameters
- info
- a human readable string including information on the disconnected transport
- availablePrimary
- 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 config
onRPCMessageReceived(
RPCMessage rpcMessage
)
Called when an RPC message has been received from the connected SDL device
public void onRPCMessageReceived(RPCMessage rpcMessage)
Method Parameters
- rpcMessage
- the RPC message that was received
onSessionStarted(
int sessionID,
Version version,
SystemInfo systemInfo
)
Called to indicate that a session has started with the connected SDL device. This means the
RPC and Bulk service types have also been started.
public void onSessionStarted(int sessionID,Version version,SystemInfo systemInfo)
Method Parameters
- sessionID
- session ID associated with the session that was established
- version
- the protocol version that has been negotiated for this session
- systemInfo
- info about the device that this service is started
onSessionEnded(
int sessionID
)
Called to indicate that the session that was previously established has now ended. This means
that all services previously started on this session are also closed.
public void onSessionEnded(int sessionID)
Method Parameters
- sessionID
- the session ID that was assigned to this now closed session
onAuthTokenReceived(
String authToken,
int sessionID
)
Called when an auth token has been received. This should always happen after the session
has been created.
public void onAuthTokenReceived(String authToken,int sessionID)
Method Parameters
- authToken
- the actual auth token that has been stringified
- sessionID
- the session ID that this auth token is associated with
View on GitHub.com