public class DeleteCommand extends RPCRequest
HMI Status Requirements:
HMILevel: FULL, LIMITED or BACKGROUND
AudioStreamingState: N/ASystemContext: Should not be attempted when VRSESSION or MENU
Parameter List
| Name | Type | Description | Reg. | Notes | Version |
|---|---|---|---|---|---|
| cmdID | Integer | Unique ID that identifies the Command to be deleted from Command Menu | Y | Min Value: 0;Max Value: 2000000000 | SmartDeviceLink 1.0 |
Response:
Indicates that the corresponding request either failed or succeeded. If the response returns with a SUCCESS result code,this means a command was removed from the Command Menu successfully.
Non-default Result Codes:
SUCCESS
INVALID_DATA
OUT_OF_MEMORY
TOO_MANY_PENDING_REQUESTS
APPLICATION_NOT_REGISTERED
GENERIC_ERROR
REJECTED
INVALID_ID
IN_USER
AddCommand,
AddSubMenu,
DeleteSubMenu| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CMD_ID |
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 |
|---|
DeleteCommand()
Constructs a new DeleteCommand object
|
DeleteCommand(Hashtable<String,Object> hash)
Constructs a new DeleteCommand object indicated by the Hashtable
parameter
|
DeleteCommand(Integer cmdID)
Constructs a new DeleteCommand object
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCmdID()
Gets the Command ID that identifies the Command to be deleted from
Command Menu
|
DeleteCommand |
setCmdID(Integer cmdID)
Sets the Command ID that identifies the Command to be deleted from Command Menu
|
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_CMD_ID
public DeleteCommand()
public DeleteCommand(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic DeleteCommand(@NonNull
Integer cmdID)
cmdID: - an Integer value representing Command IDpublic Integer getCmdID()
public DeleteCommand setCmdID(@NonNull Integer cmdID)
cmdID - an Integer value representing Command ID
Notes: Min Value: 0; Max Value: 2000000000