public class OnAppInterfaceUnregistered extends RPCNotification
Notifies an application that its interface registration has been terminated. This means that all SDL resources associated with the application are discarded, including the Command Menu, Choice Sets, button subscriptions, etc.
For more information about SDL resources related to an interface registration, see RegisterAppInterface. HMI Status Requirements:| Name | Type | Description | SmartDeviceLink Ver Available |
|---|---|---|---|
| reason | AppInterfaceUnregisteredReason | The reason the application's interface registration was terminated | SmartDeviceLink 1.0 |
RegisterAppInterface| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_REASON |
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 |
|---|
OnAppInterfaceUnregistered()
Constructs a newly allocated OnAppInterfaceUnregistered object
|
OnAppInterfaceUnregistered(AppInterfaceUnregisteredReason reason)
Constructs a newly allocated OnAppInterfaceUnregistered object
|
OnAppInterfaceUnregistered(Hashtable<String,Object> hash)
Constructs a newly allocated OnAppInterfaceUnregistered object indicated by the Hashtable parameter
|
| Modifier and Type | Method and Description |
|---|---|
AppInterfaceUnregisteredReason |
getReason()
Get the reason the registration was terminated
|
OnAppInterfaceUnregistered |
setReason(AppInterfaceUnregisteredReason reason)
Set the reason application's interface was terminated
|
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_REASON
public OnAppInterfaceUnregistered()
public OnAppInterfaceUnregistered(Hashtable<String,Object> hash)
Constructs a newly allocated OnAppInterfaceUnregistered object indicated by the Hashtable parameter
hash - The Hashtable to usepublic OnAppInterfaceUnregistered(@NonNull
AppInterfaceUnregisteredReason reason)
reason - The reason application's interface registration was terminatedpublic AppInterfaceUnregisteredReason getReason()
Get the reason the registration was terminated
public OnAppInterfaceUnregistered setReason(@NonNull AppInterfaceUnregisteredReason reason)
Set the reason application's interface was terminated
reason - The reason application's interface registration was terminated