java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.RPCNotification
Note: Sequence of OnHMIStatus and OnCommand notifications for user-initiated interactions is indeterminate.
HMI Status Requirements:Parameter List:
Name | Type | Description | Notes | SmartDeviceLink Ver Available |
---|---|---|---|---|
cmdID | Integer | The cmdID of the command the user selected. This is the cmdID value provided by the application in the AddCommand operation that created the command. | SmartDeviceLink 1.0 | |
triggerSource | TriggerSource | Indicates whether command was selected via VR or via a menu selection (using the OK button). | SmartDeviceLink 1.0 |
public static final java.lang.String KEY_CMD_ID
public static final java.lang.String KEY_TRIGGER_SOURCE
Constructs a newly allocated OnCommand object
public OnCommand()
Constructs a newly allocated OnCommand object indicated by the Hashtable parameter
public OnCommand(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a newly allocated OnCommand object
public OnCommand(Integer cmdID,TriggerSource triggerSource)
Returns an Integer object representing the Command ID
public java.lang.Integer getCmdID()
Sets a Command ID
public com.smartdevicelink.proxy.rpc.OnCommand setCmdID(Integer cmdID)
Returns a TriggerSource object which will be shown in the HMI
public com.smartdevicelink.proxy.rpc.enums.TriggerSource getTriggerSource()
Sets TriggerSource
Indicates whether command was selected via VR or via a menu selection (using the OK button).
public com.smartdevicelink.proxy.rpc.OnCommand setTriggerSource(TriggerSource triggerSource)
From Class | Methods |
---|---|
com.smartdevicelink.proxy.RPCMessage | getFunctionID, getFunctionName, setFunctionName, getMessageType, setParameters, getParameters, getObject, getString, getInteger, getFloat, getDouble, getBoolean, getLong |
com.smartdevicelink.proxy.RPCStruct | getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |