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
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)

Parameters

listener
config

SdlSession( ISdlSessionListener listener, TCPTransportConfig config )

public SdlSession(ISdlSessionListener listener,TCPTransportConfig config)

Parameters

listener
config

Methods

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)

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)

Parameters

packet
serviceType
sessionID
version
isEncrypted

onServiceEnded( SdlPacket packet, SessionType serviceType, int sessionID )

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

Parameters

packet
serviceType
sessionID

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

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

Parameters

packet
serviceType
sessionID
error

onAuthTokenReceived( String authToken )

public void onAuthTokenReceived(String authToken)

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, isServiceProtected, addServiceListener, removeServiceListener, getServiceListeners, setDesiredVideoParams, getAcceptedVideoParams, onProtocolMessageReceived, onServiceStarted, onServiceEnded, onServiceError, onProtocolError, getSessionId, shutdown, onTransportDisconnected, getSdlSecurity, getDesiredVideoParams, setAcceptedVideoParams, onAuthTokenReceived, onSecurityInitialized, isTransportForServiceAvailable
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section