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
BaseSubManager

Class BaseSubManager

Hierarchy

java.lang.Object

Package
com.smartdevicelink.managers

Overview

BaseSubManager

Note: This class is extended by SubManagers

It is broken down to these areas:

1.

Fields

SETTING_UP

public static final int SETTING_UP

READY

public static final int READY
Constant Value
48

LIMITED

public static final int LIMITED
Constant Value
80

SHUTDOWN

public static final int SHUTDOWN
Constant Value
128

ERROR

public static final int ERROR
Constant Value
192

internalInterface

protected final com.smartdevicelink.managers.ISdl internalInterface

Constructors

BaseSubManager( ISdl internalInterface )

public BaseSubManager(ISdl internalInterface)

Constructor Parameters

internalInterface

Methods

start( CompletionListener listener )

Starts up a BaseSubManager, and calls provided callback once BaseSubManager is done setting up or failed setup.

public void start(CompletionListener listener)

Method Parameters

listener
CompletionListener that is called once the BaseSubManager's state is READY, LIMITED, or ERROR

dispose()

Called when manager is being torn down

public void dispose()

transitionToState( int state )

protected void transitionToState(int state)

Method Parameters

state

getState()

public int getState()

handleTransportUpdated( java.util.List<TransportRecord> connectedTransports, boolean audioStreamTransportAvail, boolean videoStreamTransportAvail )

protected void handleTransportUpdated(java.util.List<TransportRecord> connectedTransports,boolean audioStreamTransportAvail,boolean videoStreamTransportAvail)

Method Parameters

connectedTransports
audioStreamTransportAvail
videoStreamTransportAvail

onTransportUpdate( java.util.List<TransportRecord> connectedTransports, boolean audioStreamTransportAvail, boolean videoStreamTransportAvail )

Transport status has been updated

protected void onTransportUpdate(java.util.List<TransportRecord> connectedTransports,boolean audioStreamTransportAvail,boolean videoStreamTransportAvail)

Method Parameters

connectedTransports
currently connected transports
audioStreamTransportAvail
if there is a transport that could be used to carry the audio service
videoStreamTransportAvail
if there is a transport that could be used to carry the video service

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