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

Class SdlManager.Builder

Hierarchy

java.lang.Object

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

Methods

setAppId( String appId )

Sets the App ID

public com.smartdevicelink.managers.SdlManager.Builder setAppId(String appId)

Parameters

appId

setAppName( String appName )

Sets the Application Name

public com.smartdevicelink.managers.SdlManager.Builder setAppName(String appName)

Parameters

appName

setShortAppName( String shortAppName )

Sets the Short Application Name

public com.smartdevicelink.managers.SdlManager.Builder setShortAppName(String shortAppName)

Parameters

shortAppName

setLanguage( Language hmiLanguage )

Sets the Language of the App

public com.smartdevicelink.managers.SdlManager.Builder setLanguage(Language hmiLanguage)

Parameters

hmiLanguage

setDayColorScheme( TemplateColorScheme dayColorScheme )

Sets the TemplateColorScheme for daytime

public com.smartdevicelink.managers.SdlManager.Builder setDayColorScheme(TemplateColorScheme dayColorScheme)

Parameters

dayColorScheme

setNightColorScheme( TemplateColorScheme nightColorScheme )

Sets the TemplateColorScheme for nighttime

public com.smartdevicelink.managers.SdlManager.Builder setNightColorScheme(TemplateColorScheme nightColorScheme)

Parameters

nightColorScheme

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

setAppIcon( SdlArtwork sdlArtwork )

Sets the icon for the app on HU

public com.smartdevicelink.managers.SdlManager.Builder setAppIcon(SdlArtwork sdlArtwork)

Parameters

sdlArtwork

setAppTypes( java.util.Vector<com.smartdevicelink.proxy.rpc.enums.AppHMIType> hmiTypes )

Sets the vector of AppHMIType
Note: This should be an ordered list from most -> least relevant

public com.smartdevicelink.managers.SdlManager.Builder setAppTypes(java.util.Vector<com.smartdevicelink.proxy.rpc.enums.AppHMIType> hmiTypes)

Parameters

hmiTypes

setVrSynonyms( java.util.Vector<java.lang.String> vrSynonyms )

Sets the vector of vrSynonyms

public com.smartdevicelink.managers.SdlManager.Builder setVrSynonyms(java.util.Vector<java.lang.String> vrSynonyms)

Parameters

vrSynonyms

setTtsName( java.util.Vector<com.smartdevicelink.proxy.rpc.TTSChunk> ttsChunks )

Sets the TTS Name

public com.smartdevicelink.managers.SdlManager.Builder setTtsName(java.util.Vector<com.smartdevicelink.proxy.rpc.TTSChunk> ttsChunks)

Parameters

ttsChunks

setTransportType( BaseTransportConfig transport )

This Object type may change with the transport refactor Sets the BaseTransportConfig

public com.smartdevicelink.managers.SdlManager.Builder setTransportType(BaseTransportConfig transport)

Parameters

transport

setContext( Context context )

Sets the Context

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

Parameters

context

setSdlSecurity( java.util.List<java.lang.Class<? extends com.smartdevicelink.security.SdlSecurityBase>> secList )

Sets the Security library

public com.smartdevicelink.managers.SdlManager.Builder setSdlSecurity(java.util.List<java.lang.Class<? extends com.smartdevicelink.security.SdlSecurityBase>> secList)

Parameters

secList
The list of security class(es)

setManagerListener( SdlManagerListener listener )

Set the SdlManager Listener

public com.smartdevicelink.managers.SdlManager.Builder setManagerListener(SdlManagerListener listener)

Parameters

listener
the listener

build()

public com.smartdevicelink.managers.SdlManager build()

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