public class UnsubscribeButton extends RPCRequest
Application can unsubscribe from a button that is currently being pressed (i.e. has not yet been released), but app will not get button event
HMILevel needs to be FULL, LIMITED or BACKGROUND
Parameter List
| Param Name | Type | Description | Req. | Notes | Version Available |
|---|---|---|---|---|---|
| buttonName | ButtonName | Name of the button to unsubscribe. | Y | SmartDeviceLink 1.0 |
Response
Non-default Result Codes:
SUCCESS
INVALID_DATA
OUT_OF_MEMORY
TOO_MANY_PENDING_REQUESTS
APPLICATION_NOT_REGISTERED
GENERIC_ERROR
UNSUPPORTED_RESOURCE
IGNORED
REJECTED
SubscribeButton| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_BUTTON_NAME |
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 |
|---|
UnsubscribeButton()
Constructs a new UnsubscribeButton object
|
UnsubscribeButton(ButtonName buttonName)
Constructs a new UnsubscribeButton object
|
UnsubscribeButton(Hashtable<String,Object> hash)
Constructs a new UnsubscribeButton object indicated by the Hashtable
parameter
|
| Modifier and Type | Method and Description |
|---|---|
ButtonName |
getButtonName()
Gets a name of the button to unsubscribe from
|
UnsubscribeButton |
setButtonName(ButtonName buttonName)
Sets the name of the button to unsubscribe from
|
getCorrelationID, getOnRPCResponseListener, setCorrelationID, setOnRPCResponseListenergetBoolean, 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_BUTTON_NAME
public UnsubscribeButton()
public UnsubscribeButton(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic UnsubscribeButton(@NonNull
ButtonName buttonName)
buttonName - Name of the button to unsubscribe.public ButtonName getButtonName()
public UnsubscribeButton setButtonName(@NonNull ButtonName buttonName)
buttonName - an enum value, see ButtonName