java.lang.Object
com.smartdevicelink.proxy.RPCStruct
Parameter List
Name | Type | Description | SmartDeviceLink Ver. Available |
---|---|---|---|
name | ButtonName | The name of theSDL HMI button. | SmartDeviceLink 1.0 |
shortPressAvailable | Boolean | The button supports a SHORT press. See com.smartdevicelink.proxy.rpc.enums.ButtonPressMode for more information. | SmartDeviceLink 1.0 |
longPressAvailable | Boolean | The button supports a LONG press. See com.smartdevicelink.proxy.rpc.enums.ButtonPressMode for more information. | SmartDeviceLink 1.0 |
upDownAvailable | Boolean | The button supports "button down" and "button up". When the button is depressed, the OnButtonEvent notification will be invoked with a value of BUTTONDOWN.
When the button is released, the OnButtonEvent notification will be invoked with a value of BUTTONUP. |
SmartDeviceLink 1.0 |
Upon the request HMI must provide the list of the following information:
The names of all existing/supported hardware buttons.
The availability of LONG/SHORT press for each existing/supported hardware button correspondingly
The availability of UP/DOWN events for each existing/supported hardware button correspondingly.
public static final java.lang.String KEY_NAME
public static final java.lang.String KEY_SHORT_PRESS_AVAILABLE
public static final java.lang.String KEY_LONG_PRESS_AVAILABLE
public static final java.lang.String KEY_UP_DOWN_AVAILABLE
public static final java.lang.String KEY_MODULE_INFO
From Class | Fields |
---|---|
com.smartdevicelink.proxy.RPCStruct | KEY_BULK_DATA, KEY_PROTECTED, store |
Constructs a newly allocated ButtonCapabilities object
public ButtonCapabilities()
Constructs a newly allocated ButtonCapabilities object indicated by the Hashtable parameter
public ButtonCapabilities(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a newly allocated ButtonCapabilities object
public ButtonCapabilities(ButtonName name,Boolean shortPressAvailable,Boolean longPressAvailable,Boolean upDownAvailable)
Get the name of theSDL HMI button.
public com.smartdevicelink.proxy.rpc.enums.ButtonName getName()
Set the name of theSDL HMI button.
public com.smartdevicelink.proxy.rpc.ButtonCapabilities setName(ButtonName name)
Whether the button supports a SHORT press. See com.smartdevicelink.proxy.rpc.enums.ButtonPressMode for more information.
public java.lang.Boolean getShortPressAvailable()
Set the button supports a SHORT press. See com.smartdevicelink.proxy.rpc.enums.ButtonPressMode for more information.
public com.smartdevicelink.proxy.rpc.ButtonCapabilities setShortPressAvailable(Boolean shortPressAvailable)
Whether the button supports a LONG press. See com.smartdevicelink.proxy.rpc.enums.ButtonPressMode for more information.
public java.lang.Boolean getLongPressAvailable()
Set the button supports a LONG press. See com.smartdevicelink.proxy.rpc.enums.ButtonPressMode for more information.
public com.smartdevicelink.proxy.rpc.ButtonCapabilities setLongPressAvailable(Boolean longPressAvailable)
Whether the button supports "button down" and "button up". When the button is depressed, the OnButtonEvent notification will be invoked with a value of BUTTONDOWN.
public java.lang.Boolean getUpDownAvailable()
Set the button supports "button down" and "button up". When the button is depressed, the OnButtonEvent notification will be invoked with a value of BUTTONDOWN.
public com.smartdevicelink.proxy.rpc.ButtonCapabilities setUpDownAvailable(Boolean upDownAvailable)
Sets ModuleInfo for this capability
public com.smartdevicelink.proxy.rpc.ButtonCapabilities setModuleInfo(ModuleInfo info)
Gets a ModuleInfo of this capability
public com.smartdevicelink.proxy.rpc.ModuleInfo getModuleInfo()
From Class | Methods |
---|---|
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 |