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
Android Documentation
SdlSession

Class SdlSession

Hierarchy

java.lang.Object
     com.smartdevicelink.session.BaseSdlSession

Package
com.smartdevicelink.session

Fields

Inherited Fields

From Class Fields
com.smartdevicelink.session.BaseSdlSession sdlProtocol, transportConfig, sessionListener, sdlSecurity, desiredVideoParams, acceptedVideoParams, sessionId, serviceListeners, encryptedServices

Constructors

SdlSession( ISdlSessionListener listener, MultiplexTransportConfig config )

public SdlSession(ISdlSessionListener listener,MultiplexTransportConfig config)

Constructor Parameters

listener
config

SdlSession( ISdlSessionListener listener, TCPTransportConfig config )

public SdlSession(ISdlSessionListener listener,TCPTransportConfig config)

Constructor Parameters

listener
config

Methods

setMediaStreamingStatusCallback( MediaStreamingStatus.Callback mediaStreamingStatusCallback )

Sets a callback that is triggered when there are no audio output methods available. If this is set then the caller of this method will be responsible for shutting the session down.

public void setMediaStreamingStatusCallback(MediaStreamingStatus.Callback mediaStreamingStatusCallback)

Method Parameters

mediaStreamingStatusCallback
the callback that will be triggered when audio output is no longer available.

getSdlProtocolImplementation()

protected com.smartdevicelink.protocol.SdlProtocolBase getSdlProtocolImplementation()

startSession()

public void startSession() throws com.smartdevicelink.exception.SdlException

Throws

getCurrentTransportType()

public com.smartdevicelink.transport.enums.TransportType getCurrentTransportType()

shutdown( String info )

public void shutdown(String info)

Method Parameters

info

getProtocolVersion()

Get the current protocol version used by this session

public com.smartdevicelink.util.Version getProtocolVersion()

onServiceStarted( SdlPacket packet, SessionType serviceType, int sessionID, Version version, boolean isEncrypted )

public void onServiceStarted(SdlPacket packet,SessionType serviceType,int sessionID,Version version,boolean isEncrypted)

Method Parameters

packet
serviceType
sessionID
version
isEncrypted

onServiceEnded( SdlPacket packet, SessionType serviceType, int sessionID )

public void onServiceEnded(SdlPacket packet,SessionType serviceType,int sessionID)

Method Parameters

packet
serviceType
sessionID

onServiceError( SdlPacket packet, SessionType serviceType, int sessionID, String error )

public void onServiceError(SdlPacket packet,SessionType serviceType,int sessionID,String error)

Method Parameters

packet
serviceType
sessionID
error

onAuthTokenReceived( String authToken )

public void onAuthTokenReceived(String authToken)

Method Parameters

authToken

Inherited Methods

From Class Methods
com.smartdevicelink.session.BaseSdlSession getSdlProtocolImplementation, getMtu, getMtu, close, startService, endService, startSession, sendMessage, getCurrentTransportType, getIsConnected, getProtocolVersion, getTransportConfig, setSdlSecurity, processControlService, extractSystemInfo, isServiceProtected, addServiceListener, removeServiceListener, getServiceListeners, setDesiredVideoParams, getAcceptedVideoParams, onProtocolMessageReceived, onServiceStarted, onServiceEnded, onServiceError, onProtocolError, getSessionId, shutdown, onTransportDisconnected, getSdlSecurity, getDesiredVideoParams, setAcceptedVideoParams, onAuthTokenReceived, onSecurityInitialized, isTransportForServiceAvailable, getActiveTransports
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section