java.lang.Object
            
            
        
                
            
            com.smartdevicelink.proxy.RPCStruct
            
            
        
    
Contains information about a SoftButton's capabilities.
Parameter List
| Name | Type | Description | SmartDeviceLink Ver. Available | 
|---|---|---|---|
| shortPressAvailable | Boolean | The button supports a short press. Whenever the button is pressed short, onButtonPressed( SHORT) will be invoked. | SmartDeviceLink 2.0 | 
| longPressAvailable | Boolean | The button supports a LONG press. Whenever the button is pressed long, onButtonPressed( LONG) will be invoked. | SmartDeviceLink 2.0 | 
| upDownAvailable | Boolean | The button supports "button down" and "button up". Whenever the button is pressed, onButtonEvent( DOWN) will be invoked. Whenever the button is released, onButtonEvent( UP) will be invoked. * | SmartDeviceLink 2.0 | 
| imageSupported | Boolean | The button supports referencing a static or dynamic image. | SmartDeviceLink 2.0 | 
public static final java.lang.String KEY_IMAGE_SUPPORTED
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_TEXT_SUPPORTED
| From Class | Fields | 
|---|---|
| com.smartdevicelink.proxy.RPCStruct | KEY_BULK_DATA, KEY_PROTECTED, store | 
Constructs a newly allocated SoftButtonCapabilities object
public SoftButtonCapabilities()
Constructs a newly allocated SoftButtonCapabilities object indicated by the Hashtable parameter
public SoftButtonCapabilities(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a newly allocated SoftButtonCapabilities object
public SoftButtonCapabilities(Boolean shortPressAvailable,Boolean longPressAvailable,Boolean upDownAvailable,Boolean imageSupported)
public void format(Version rpcVersion,boolean formatParams)
set the button supports a short press.
public com.smartdevicelink.proxy.rpc.SoftButtonCapabilities setShortPressAvailable(Boolean shortPressAvailable)
get whether the button supports a short press.
public java.lang.Boolean getShortPressAvailable()
set the button supports a LONG press.
public com.smartdevicelink.proxy.rpc.SoftButtonCapabilities setLongPressAvailable(Boolean longPressAvailable)
get whether the button supports a LONG press.
public java.lang.Boolean getLongPressAvailable()
set the button supports "button down" and "button up".
public com.smartdevicelink.proxy.rpc.SoftButtonCapabilities setUpDownAvailable(Boolean upDownAvailable)
get the button supports "button down" and "button up".
public java.lang.Boolean getUpDownAvailable()
set the button supports referencing a static or dynamic image.
public com.smartdevicelink.proxy.rpc.SoftButtonCapabilities setImageSupported(Boolean imageSupported)
get the button supports referencing a static or dynamic image.
public java.lang.Boolean getImageSupported()
set the text support. If not included, the default value should be considered true that the button will support text.
public com.smartdevicelink.proxy.rpc.SoftButtonCapabilities setTextSupported(Boolean textSupported)
get the text support.
public java.lang.Boolean getTextSupported()
| 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 |