public class OnLanguageChange extends RPCNotification
HMI Status Requirements:
Parameter List:
| Name | Type | Description | Req | Notes | SmartDeviceLink Ver Available |
|---|---|---|---|---|---|
| language | Language | Current SDL voice engine (VR+TTS) language | Y | SmartDeviceLink 2.0 | |
| hmiDisplayLanguage | Language | Current display language | Y | SmartDeviceLink 2.0 |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_HMI_DISPLAY_LANGUAGE |
static String |
KEY_LANGUAGE |
function, KEY_CORRELATION_ID, KEY_FUNCTION_NAME, KEY_NOTIFICATION, KEY_PARAMETERS, KEY_REQUEST, KEY_RESPONSE, messageType, parametersKEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
OnLanguageChange()
Constructs a newly allocated OnCommand object
|
OnLanguageChange(Hashtable<String,Object> hash)
Constructs a newly allocated OnLanguageChange object indicated by the Hashtable parameter
|
OnLanguageChange(Language language,
Language hmiDisplayLanguage)
Constructs a newly allocated OnCommand object
|
| Modifier and Type | Method and Description |
|---|---|
Language |
getHmiDisplayLanguage()
Returns language that current display use
|
Language |
getLanguage()
Returns language that current SDL voice engine(VR+TTS) use
|
OnLanguageChange |
setHmiDisplayLanguage(Language hmiDisplayLanguage)
Sets language that current display use
|
OnLanguageChange |
setLanguage(Language language)
Sets language that current SDL voice engine(VR+TTS) use
|
getBoolean, getDouble, getFloat, getFunctionID, getFunctionName, getInteger, getLong, getMessageType, getObject, getParameters, getString, setFunctionName, setParametersclone, deserializeJSON, equals, format, formatObject, getBulkData, getMessageTypeName, getStore, getStoreValue, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_LANGUAGE
public static final String KEY_HMI_DISPLAY_LANGUAGE
public OnLanguageChange()
public OnLanguageChange(Hashtable<String,Object> hash)
Constructs a newly allocated OnLanguageChange object indicated by the Hashtable parameter
hash - The Hashtable to usepublic OnLanguageChange setLanguage(@NonNull Language language)
Sets language that current SDL voice engine(VR+TTS) use
language - language that current SDL voice engine(VR+TTS) usepublic Language getLanguage()
Returns language that current SDL voice engine(VR+TTS) use
public OnLanguageChange setHmiDisplayLanguage(@NonNull Language hmiDisplayLanguage)
Sets language that current display use
hmiDisplayLanguage - language that current SDL voice engine(VR+TTS) use