public class RegisterAppInterface extends RPCRequest
HMILevel is not defined before registering
Parameter List
| Name | Type | Description | Reg. | Notes | Version |
|---|---|---|---|---|---|
| MsgVersion | MsgVersion | Declares what version of the SDL interface the application expects to use with SDL | Y | To be compatible, app msg major version number must be less than or equal to SDL major version number. If msg versions are incompatible, app has 20 seconds to attempt successful RegisterAppInterface (w.r.t. msg version) on underlying protocol session, else will be terminated. Major version number is a compatibility declaration. Minor version number indicates minor functional variations (e.g. features, capabilities, bug fixes) when sent from SDL to app (in RegisterAppInterface response). However, the minor version number sent from the app to SDL (in RegisterAppInterface request) is ignored by SDL. |
SmartDeviceLink 1.0 |
| appName | String | The mobile application's name. This name is displayed in the SDL Mobile Applications menu. It also serves as the unique identifier of the application for SDL . | Y | Must be 1-100 characters in length. Must consist of following characters: May not be the same (by case insensitive comparison) as the name or any synonym of any currently registered application. |
SmartDeviceLink 1.0 |
| ttsName | TTSChunk | TTS string for VR recognition of the mobile application name. Meant to overcome any failing on speech engine in properly pronouncing / understanding app name. | N | Size must be 1-100 Needs to be unique over all applications. May not be empty. May not start with a new line character. |
SmartDeviceLink 2.0 |
| ngnMediaScreenAppName | String | Provides an abbreviated version of the app name (if necessary) that will be displayed on the NGN media screen. | N | - Must be 1-5 characters. If not provided, value will be derived from appName truncated to 5 characters. | SmartDeviceLink 1.0 |
| vrSynonyms | String | An array of 1-100 elements, each element containing a voice-recognition synonym by which this app can be called when being addressed in the mobile applications menu. | N | Each vr synonym is limited to 40 characters, and there can be 1-100 synonyms in array. May not be the same (by case insensitive comparison) as the name or any synonym of any currently-registered application. | SmartDeviceLink 1.0 |
| isMediaApplication | Boolean | Indicates that the application will be streaming audio to SDL (via A2DP) that is audible outside of the BT media source. | Y | SmartDeviceLink 1.0 | |
| languageDesired | Language | An enumeration indicating what language the application intends to use for user interaction (Display, TTS and VR). | Y | If the language indicated does not match the active language on SDL, the interface registration will be rejected.If the user changes the SDL language while this interface registration is active, the interface registration will be terminated. | SmartDeviceLink 1.0 |
| hmiDisplayLanguageDesired | Language | An enumeration indicating what language the application intends to use for user interaction ( Display). | Y | SmartDeviceLink 2.0 | |
| appHMIType | AppHMIType | List of all applicable app types stating which classifications to be given to the app.e.g. for platforms , like GEN2, this will determine which "corner(s)" the app can populate | N | Array Minsize: 1; Array Maxsize: 100 | SmartDeviceLink 2.0 |
| hashID | String | ID used to uniquely identify current state of all app data that can persist through connection cycles (e.g. ignition cycles).This registered data (commands, submenus, choice sets, etc.) can be reestablished without needing to explicitly reregister each piece. If omitted, then the previous state of an app's commands, etc. will not be restored.When sending hashID, all RegisterAppInterface parameters should still be provided (e.g. ttsName, etc.). | N | maxLength:100 | SmartDeviceLink 2.3.1 |
| appInfo | AppInfo | See AppInfo. | N | @since SmartDeviceLink 4.2.0 | |
| deviceInfo | DeviceInfo | Various information about connecting device. | N | SmartDeviceLink 2.3.1 | |
| appID | String | ID used to validate app with policy table entries | Y | maxLength: 100 | SmartDeviceLink 2.0 |
| fullAppID | String | ID used to validate app with policy table entries | N | Maxlength: 100 | SmartDeviceLink 5.0 |
| hmiCapabilities | HMICapabilities | Specifies the HMI capabilities. | N | SmartDeviceLink 2.3.2.2 | |
| sdlVersion | String | The SmartDeviceLink version. | N | Maxlength: 100 | SmartDeviceLink 2.3.2.2 |
| systemSoftwareVersion | String | The software version of the system that implements the SmartDeviceLink core. | N | Maxlength: 100 | SmartDeviceLink 2.3.2.2 |
| dayColorScheme | TemplateColorScheme | The color scheme that is used for day. | N | SmartDeviceLink 5.0 | |
| nightColorScheme | TemplateColorScheme | The color scheme that is used for night. | N | SmartDeviceLink 5.0 |
UnregisterAppInterface,
OnAppInterfaceUnregistered| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_APP_HMI_TYPE |
static String |
KEY_APP_ID |
static String |
KEY_APP_INFO |
static String |
KEY_APP_NAME |
static String |
KEY_DAY_COLOR_SCHEME |
static String |
KEY_DEVICE_INFO |
static String |
KEY_FULL_APP_ID |
static String |
KEY_HASH_ID |
static String |
KEY_HMI_DISPLAY_LANGUAGE_DESIRED |
static String |
KEY_IS_MEDIA_APPLICATION |
static String |
KEY_LANGUAGE_DESIRED |
static String |
KEY_NGN_MEDIA_SCREEN_APP_NAME |
static String |
KEY_NIGHT_COLOR_SCHEME |
static String |
KEY_SDL_MSG_VERSION |
static String |
KEY_TTS_NAME |
static String |
KEY_VR_SYNONYMS |
onResponseListenerfunction, KEY_CORRELATION_ID, KEY_FUNCTION_NAME, KEY_NOTIFICATION, KEY_PARAMETERS, KEY_REQUEST, KEY_RESPONSE, messageType, parametersKEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
RegisterAppInterface()
Constructs a new RegisterAppInterface object
|
RegisterAppInterface(Hashtable<String,Object> hash)
Constructs a new RegisterAppInterface object indicated by the Hashtable
parameter
|
RegisterAppInterface(SdlMsgVersion syncMsgVersion,
String appName,
Boolean isMediaApplication,
Language languageDesired,
Language hmiDisplayLanguageDesired,
String fullAppID)
Constructs a new RegisterAppInterface object
|
| Modifier and Type | Method and Description |
|---|---|
void |
format(Version rpcVersion,
boolean formatParams)
This method should clean the the RPC to make sure it is compliant with the spec.
|
List<AppHMIType> |
getAppHMIType()
Gets a list of all applicable app types stating which classifications to
be given to the app.e.g.
|
String |
getAppID()
Gets the unique ID, which an app will be given when approved
|
AppInfo |
getAppInfo()
Gets the appInfo.
|
String |
getAppName()
Gets Mobile Application's Name
|
TemplateColorScheme |
getDayColorScheme()
Gets the color scheme that is currently used for day
|
DeviceInfo |
getDeviceInfo() |
String |
getFullAppID()
Gets the unique ID, which an app will be given when approved
|
String |
getHashID() |
Language |
getHmiDisplayLanguageDesired()
Gets an enumeration indicating what language the application intends to
use for user interaction ( Display)
|
Boolean |
getIsMediaApplication()
Gets a Boolean representing MediaApplication
|
Language |
getLanguageDesired()
Gets a Language enumeration indicating what language the application
intends to use for user interaction (Display, TTS and VR)
|
String |
getNgnMediaScreenAppName()
Gets a String representing an abbreviated version of the mobile
application's name (if necessary) that will be displayed on the NGN
media screen
|
TemplateColorScheme |
getNightColorScheme()
Gets the color scheme that is currently used for night
|
SdlMsgVersion |
getSdlMsgVersion()
Gets the version of the SDL® SmartDeviceLink interface
|
List<TTSChunk> |
getTtsName()
Gets TTS string for VR recognition of the mobile application name
|
List<String> |
getVrSynonyms()
Gets the List
|
RegisterAppInterface |
setAppHMIType(List<AppHMIType> appHMIType)
Sets a a list of all applicable app types stating which classifications
to be given to the app.
|
RegisterAppInterface |
setAppID(String appID)
Sets a unique ID, which an app will be given when approved
|
RegisterAppInterface |
setAppInfo(AppInfo appInfo)
Sets the appInfo.
|
RegisterAppInterface |
setAppName(String appName)
Sets Mobile Application's Name, This name is displayed in the SDL®
Mobile Applications menu.
|
RegisterAppInterface |
setDayColorScheme(TemplateColorScheme templateColorScheme)
Sets the color scheme that is intended to be used for day
|
RegisterAppInterface |
setDeviceInfo(DeviceInfo deviceInfo) |
RegisterAppInterface |
setFullAppID(String fullAppID)
Sets a unique ID, which an app will be given when approved
Note: this will automatically parse the fullAppID into the smaller appId and set the appId value as well |
RegisterAppInterface |
setHashID(String hashID) |
RegisterAppInterface |
setHmiDisplayLanguageDesired(Language hmiDisplayLanguageDesired)
Sets an enumeration indicating what language the application intends to
use for user interaction ( Display)
|
RegisterAppInterface |
setIsMediaApplication(Boolean isMediaApplication)
Sets a Boolean to indicate a mobile application that is a media
application or not
|
RegisterAppInterface |
setLanguageDesired(Language languageDesired)
Sets an enumeration indicating what language the application intends to
use for user interaction (Display, TTS and VR)
|
RegisterAppInterface |
setNgnMediaScreenAppName(String ngnMediaScreenAppName)
Sets a String representing an abbreviated version of the mobile
application's name (if necessary) that will be displayed on the NGN
media screen
|
RegisterAppInterface |
setNightColorScheme(TemplateColorScheme templateColorScheme)
Sets the color scheme that is intended to be used for night
|
RegisterAppInterface |
setSdlMsgVersion(SdlMsgVersion sdlMsgVersion)
Sets the version of the SDL® SmartDeviceLink interface
|
RegisterAppInterface |
setTtsName(List<TTSChunk> ttsName) |
RegisterAppInterface |
setVrSynonyms(List<String> vrSynonyms)
Sets a vrSynonyms representing the an array of 1-100 elements, each
element containing a voice-recognition synonym
|
getCorrelationID, getOnRPCResponseListener, setCorrelationID, setOnRPCResponseListenergetBoolean, getDouble, getFloat, getFunctionID, getFunctionName, getInteger, getLong, getMessageType, getObject, getParameters, getString, setFunctionName, setParametersclone, deserializeJSON, equals, formatObject, getBulkData, getMessageTypeName, getStore, getStoreValue, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_TTS_NAME
public static final String KEY_HMI_DISPLAY_LANGUAGE_DESIRED
public static final String KEY_APP_HMI_TYPE
public static final String KEY_APP_ID
public static final String KEY_FULL_APP_ID
public static final String KEY_LANGUAGE_DESIRED
public static final String KEY_DEVICE_INFO
public static final String KEY_APP_NAME
public static final String KEY_NGN_MEDIA_SCREEN_APP_NAME
public static final String KEY_IS_MEDIA_APPLICATION
public static final String KEY_VR_SYNONYMS
public static final String KEY_SDL_MSG_VERSION
public static final String KEY_HASH_ID
public static final String KEY_APP_INFO
public static final String KEY_DAY_COLOR_SCHEME
public static final String KEY_NIGHT_COLOR_SCHEME
public RegisterAppInterface()
public RegisterAppInterface(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic RegisterAppInterface(@NonNull
SdlMsgVersion syncMsgVersion,
@NonNull
String appName,
@NonNull
Boolean isMediaApplication,
@NonNull
Language languageDesired,
@NonNull
Language hmiDisplayLanguageDesired,
@NonNull
String fullAppID)
syncMsgVersion - a SdlMsgVersion object representing version of the SDL® SmartDeviceLink interface appName - a String value representing the Mobile Application's Name isMediaApplication - a Boolean valuelanguageDesired - a Language EnumerationhmiDisplayLanguageDesired - the requested language to be used on the HMI/DisplayfullAppID - a String value representing a unique ID, which an app will be given when approved public SdlMsgVersion getSdlMsgVersion()
public RegisterAppInterface setSdlMsgVersion(@NonNull SdlMsgVersion sdlMsgVersion)
sdlMsgVersion - a SdlMsgVersion object representing version of the SDL®
SmartDeviceLink interface
Notes: To be compatible, app msg major version number
must be less than or equal to SDL® major version number.
If msg versions are incompatible, app has 20 seconds to
attempt successful RegisterAppInterface (w.r.t. msg version)
on underlying protocol session, else will be terminated. Major
version number is a compatibility declaration. Minor version
number indicates minor functional variations (e.g. features,
capabilities, bug fixes) when sent from SDL® to app (in
RegisterAppInterface response). However, the minor version
number sent from the app to SDL® (in RegisterAppInterface
request) is ignored by SDL®public DeviceInfo getDeviceInfo()
public RegisterAppInterface setDeviceInfo(DeviceInfo deviceInfo)
public String getAppName()
public RegisterAppInterface setAppName(@NonNull String appName)
appName - a String value representing the Mobile Application's Name
Notes:
public List<TTSChunk> getTtsName()
public RegisterAppInterface setTtsName(List<TTSChunk> ttsName)
ttsName - a Listpublic String getNgnMediaScreenAppName()
public RegisterAppInterface setNgnMediaScreenAppName(String ngnMediaScreenAppName)
ngnMediaScreenAppName - a String value representing an abbreviated version of the
mobile application's name
Notes:
public List<String> getVrSynonyms()
public RegisterAppInterface setVrSynonyms(List<String> vrSynonyms)
vrSynonyms - a Listpublic Boolean getIsMediaApplication()
public RegisterAppInterface setIsMediaApplication(@NonNull Boolean isMediaApplication)
isMediaApplication - a Boolean valuepublic Language getLanguageDesired()
public RegisterAppInterface setLanguageDesired(@NonNull Language languageDesired)
languageDesired - a Language Enumerationpublic Language getHmiDisplayLanguageDesired()
public RegisterAppInterface setHmiDisplayLanguageDesired(@NonNull Language hmiDisplayLanguageDesired)
hmiDisplayLanguageDesired - the requested language to be used on the HMI/Displaypublic List<AppHMIType> getAppHMIType()
public RegisterAppInterface setAppHMIType(List<AppHMIType> appHMIType)
appHMIType - a Listpublic String getHashID()
public RegisterAppInterface setHashID(String hashID)
public AppInfo getAppInfo()
public RegisterAppInterface setAppInfo(AppInfo appInfo)
appInfo - See AppInfo.public String getAppID()
public RegisterAppInterface setAppID(@NonNull String appID)
appID - a String value representing a unique ID, which an app will be
given when approved
Notes: maxLength = 100public String getFullAppID()
public RegisterAppInterface setFullAppID(String fullAppID)
fullAppID - a String value representing a unique ID, which an app will be
given when approved
Notes: maxLength = 100public void format(Version rpcVersion, boolean formatParams)
RPCStructpublic TemplateColorScheme getDayColorScheme()
public RegisterAppInterface setDayColorScheme(TemplateColorScheme templateColorScheme)
templateColorScheme - a TemplateColorScheme object representing the colors that will be
used for day color schemepublic TemplateColorScheme getNightColorScheme()
public RegisterAppInterface setNightColorScheme(TemplateColorScheme templateColorScheme)
templateColorScheme - a TemplateColorScheme object representing the colors that will be
used for night color scheme