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

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

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

Method Parameters

lockScreenConfig
- configuration options

setContext( Context context )

Sets the Context

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

Method 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, 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