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

Class BaseSubManager

Hierarchy

java.lang.Object

Package
com.smartdevicelink.managers
All Known Subclasses
com.smartdevicelink.managers.audio.AudioStreamManager, com.smartdevicelink.managers.file.FileManager, com.smartdevicelink.managers.lockscreen.LockScreenManager, com.smartdevicelink.managers.permission.PermissionManager, com.smartdevicelink.managers.screen.ScreenManager, com.smartdevicelink.managers.video.VideoStreamManager

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.proxy.interfaces.ISdl internalInterface

Constructors

BaseSubManager( ISdl internalInterface )

public BaseSubManager(ISdl internalInterface)

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)

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)

Parameters

state

getState()

public int getState()

handleTransportUpdated( java.util.List<com.smartdevicelink.transport.utl.TransportRecord> connectedTransports, boolean audioStreamTransportAvail, boolean videoStreamTransportAvail )

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

Parameters

connectedTransports
audioStreamTransportAvail
videoStreamTransportAvail

onTransportUpdate( java.util.List<com.smartdevicelink.transport.utl.TransportRecord> connectedTransports, boolean audioStreamTransportAvail, boolean videoStreamTransportAvail )

Transport status has been updated

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

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