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

Class SdlManager.Builder

Hierarchy

java.lang.Object
     com.smartdevicelink.managers.BaseSdlManager.Builder

Package
com.smartdevicelink.managers

Constructors

Builder( Context context, String appId, String appName, SdlManagerListener listener )

Builder for the SdlManager. Parameters in the constructor are required.

public Builder(Context context,String appId,String appName,SdlManagerListener listener)

Parameters

context
the current context
appId
the app's ID
appName
the app's name
listener
a SdlManagerListener object

Builder( Context context, String appId, String appName, BaseTransportConfig transport, SdlManagerListener listener )

Builder for the SdlManager. Parameters in the constructor are required.

public Builder(Context context,String appId,String appName,BaseTransportConfig transport,SdlManagerListener listener)

Parameters

context
the current context
appId
the app's ID
appName
the app's name
transport
listener
a SdlManagerListener object

Methods

setLockScreenConfig( LockScreenConfig lockScreenConfig )

Sets the LockScreenConfig for the session.
Note: If not set, the default configuration will be used.

public com.smartdevicelink.managers.SdlManager.Builder setLockScreenConfig(LockScreenConfig lockScreenConfig)

Parameters

lockScreenConfig
- configuration options

setContext( Context context )

Sets the Context

public com.smartdevicelink.managers.SdlManager.Builder setContext(Context context)

Parameters

context
the current context

build()

Build SdlManager ang get it ready to be started Note: new instance of SdlManager should be created on every connection. SdlManager cannot be reused after getting disposed.

public com.smartdevicelink.managers.SdlManager build()

Inherited Methods

From Class Methods
com.smartdevicelink.managers.BaseSdlManager.Builder setAppId, setResumeHash, setAppName, setShortAppName, setMinimumProtocolVersion, setMinimumRPCVersion, setLanguage, setDayColorScheme, setNightColorScheme, setAppIcon, setAppTypes, setFileManagerConfig, setVrSynonyms, setTtsName, setTransportType, setSdlSecurity, setSdlSecurity, setManagerListener, setRPCNotificationListeners, build
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section