Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaEE Documentation
ISdlSessionListener

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
Previous Section Next Section