java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.RPCNotification
HMI Status Requirements:
Name | Type | Description | Req | Notes | SmartDeviceLink Ver Available |
---|---|---|---|---|---|
buttonName | ButtonName | Name of the button which triggered this event | SmartDeviceLink 1.0 | ||
buttonEventMode | ButtonEventMode | Indicates button was depressed (DOWN) or released (UP) | SmartDeviceLink 1.0 | ||
customButtonID | Integer | If ButtonName is CUSTOM_BUTTON", this references the integer ID passed by a custom button. (e.g. softButton ID) | N | Minvalue=0 Maxvalue=65536 | SmartDeviceLink 2.0 |
public static final java.lang.String KEY_BUTTON_EVENT_MODE
public static final java.lang.String KEY_BUTTON_NAME
public static final java.lang.String KEY_CUSTOM_BUTTON_ID
Constructs a newly allocated OnButtonEvent object
public OnButtonEvent()
Constructs a newly allocated OnButtonEvent object indicated by the Hashtable parameter
public OnButtonEvent(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a newly allocated OnButtonEvent object
public OnButtonEvent(ButtonName buttonName,ButtonEventMode buttonEventMode)
Returns ButtonName the button's name
public com.smartdevicelink.proxy.rpc.enums.ButtonName getButtonName()
Set the button's name
public com.smartdevicelink.proxy.rpc.OnButtonEvent setButtonName(ButtonName buttonName)
Return ButtonEventMode indicates the button was depressed or released
public com.smartdevicelink.proxy.rpc.enums.ButtonEventMode getButtonEventMode()
Set the event mode of the button,pressed or released
public com.smartdevicelink.proxy.rpc.OnButtonEvent setButtonEventMode(ButtonEventMode buttonEventMode)
public com.smartdevicelink.proxy.rpc.OnButtonEvent setCustomButtonID(Integer customButtonID)
public java.lang.Integer getCustomButtonID()
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 |