Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class TransportManager

Hierarchy

java.lang.Object

Package
com.smartdevicelink.transport

Constructors

TransportManager( MultiplexTransportConfig config, TransportManager.TransportEventListener listener )

Managing transports List for status of all transports If transport is not connected. Request Router service connect to it. Get connected message

public TransportManager(MultiplexTransportConfig config,TransportManager.TransportEventListener listener)

Parameters

config
listener

Methods

start()

public void start()

close( long sessionId )

public void close(long sessionId)

Parameters

sessionId

isConnected( TransportType transportType, String address )

Check to see if a transport is connected.

public boolean isConnected(TransportType transportType,String address)

Parameters

transportType
the transport to have its connection status returned. If `null` is passed in, all transports will be checked and if any are connected a true value will be returned.
address
the address associated with the transport type. If null, the first transport of supplied type will be used to return if connected.

getTransportRecord( TransportType transportType, String address )

Retrieve a transport record with the supplied params

public com.smartdevicelink.transport.utl.TransportRecord getTransportRecord(TransportType transportType,String address)

Parameters

transportType
the transport to have its connection status returned.
address
the address associated with the transport type. If null, the first transport of supplied type will be returned.

getConnectedTransports()

Retrieves the currently connected transports

public java.util.List getConnectedTransports()

isHighBandwidthAvailable()

public boolean isHighBandwidthAvailable()

getRouterService()

public android.content.ComponentName getRouterService()

sendPacket( SdlPacket packet )

public void sendPacket(SdlPacket packet)

Parameters

packet

requestNewSession( TransportRecord transportRecord )

public void requestNewSession(TransportRecord transportRecord)

Parameters

transportRecord

requestSecondaryTransportConnection( byte sessionId, Bundle params )

public void requestSecondaryTransportConnection(byte sessionId,Bundle params)

Parameters

sessionId
params

exitLegacyMode( String info )

protected synchronized void exitLegacyMode(String info)

Parameters

info

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section