public class ButtonCapabilities extends 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 ButtonPressMode for more information. | SmartDeviceLink 1.0 |
| longPressAvailable | Boolean | The button supports a LONG press. See 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.
ButtonName,
ButtonEventMode,
ButtonPressMode,
OnButtonEvent,
OnButtonPress| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_LONG_PRESS_AVAILABLE |
static String |
KEY_MODULE_INFO |
static String |
KEY_NAME |
static String |
KEY_SHORT_PRESS_AVAILABLE |
static String |
KEY_UP_DOWN_AVAILABLE |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
ButtonCapabilities()
Constructs a newly allocated ButtonCapabilities object
|
ButtonCapabilities(ButtonName name,
Boolean shortPressAvailable,
Boolean longPressAvailable,
Boolean upDownAvailable)
Constructs a newly allocated ButtonCapabilities object
|
ButtonCapabilities(Hashtable<String,Object> hash)
Constructs a newly allocated ButtonCapabilities object indicated by the Hashtable parameter
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getLongPressAvailable()
Whether the button supports a LONG press.
|
ModuleInfo |
getModuleInfo()
Gets a ModuleInfo of this capability
|
ButtonName |
getName()
Get the name of theSDL HMI button.
|
Boolean |
getShortPressAvailable()
Whether the button supports a SHORT press.
|
Boolean |
getUpDownAvailable()
Whether the button supports "button down" and "button up".
|
ButtonCapabilities |
setLongPressAvailable(Boolean longPressAvailable)
Set the button supports a LONG press.
|
ButtonCapabilities |
setModuleInfo(ModuleInfo info)
Sets ModuleInfo for this capability
|
ButtonCapabilities |
setName(ButtonName name)
Set the name of theSDL HMI button.
|
ButtonCapabilities |
setShortPressAvailable(Boolean shortPressAvailable)
Set the button supports a SHORT press.
|
ButtonCapabilities |
setUpDownAvailable(Boolean upDownAvailable)
Set the button supports "button down" and "button up".
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_NAME
public static final String KEY_SHORT_PRESS_AVAILABLE
public static final String KEY_LONG_PRESS_AVAILABLE
public static final String KEY_UP_DOWN_AVAILABLE
public static final String KEY_MODULE_INFO
public ButtonCapabilities()
public ButtonCapabilities(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic ButtonCapabilities(@NonNull
ButtonName name,
@NonNull
Boolean shortPressAvailable,
@NonNull
Boolean longPressAvailable,
@NonNull
Boolean upDownAvailable)
name - the name of buttonshortPressAvailable - True if support otherwise False.longPressAvailable - True if support otherwise False.upDownAvailable - True if support otherwise False.public ButtonName getName()
public ButtonCapabilities setName(@NonNull ButtonName name)
name - the name of buttonpublic Boolean getShortPressAvailable()
public ButtonCapabilities setShortPressAvailable(@NonNull Boolean shortPressAvailable)
shortPressAvailable - True if support otherwise False.public Boolean getLongPressAvailable()
public ButtonCapabilities setLongPressAvailable(@NonNull Boolean longPressAvailable)
longPressAvailable - True if support otherwise False.public Boolean getUpDownAvailable()
public ButtonCapabilities setUpDownAvailable(@NonNull Boolean upDownAvailable)
upDownAvailable - True if support otherwise False.public ButtonCapabilities setModuleInfo(ModuleInfo info)
info - the ModuleInfo to be setpublic ModuleInfo getModuleInfo()