java.lang.Object
com.smartdevicelink.proxy.RPCStruct
A simulated button or keyboard key that is displayed on a touch screen.
Parameter List
Name | Type | Description | Reg. | Notes | Version |
---|---|---|---|---|---|
type | SoftButtonType | Describes, whether it is text, highlighted text, icon, or dynamic image. | SmartDeviceLink 2.0 | ||
text | String | Optional text to display (if defined as TEXT or BOTH) | N | Min: 0; Maxlength: 500 | SmartDeviceLink 2.0 |
image | Image | Optional image struct for SoftButton (if defined as IMAGE or BOTH). | SmartDeviceLink 2.0 | ||
isHighlighted | Boolean | True, if highlighted False, if not highlighted | N | SmartDeviceLink 2.0 | |
softButtonID | Integer | Value which is returned via OnButtonPress / OnButtonEvent | Min: 0; Max: 65535 | SmartDeviceLink 2.0 | |
systemAction | SystemAction | Parameter indicating whether selecting a SoftButton shall call a specific system action. This is intended to allow Notifications to bring the callee into full / focus; or in the case of persistent overlays, the overlay can persist when a SoftButton is pressed. | N | defvalue: DEFAULT_ACTION | SmartDeviceLink 2.0 |
public static final java.lang.String KEY_IS_HIGHLIGHTED
public static final java.lang.String KEY_SOFT_BUTTON_ID
public static final java.lang.String KEY_SYSTEM_ACTION
public static final java.lang.String KEY_TEXT
public static final java.lang.String KEY_TYPE
public static final java.lang.String KEY_IMAGE
From Class | Fields |
---|---|
com.smartdevicelink.proxy.RPCStruct | KEY_BULK_DATA, KEY_PROTECTED, store |
public SoftButton()
Constructs a new SoftButton object indicated by the Hashtable parameter
public SoftButton(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a new SoftButton object
public SoftButton(SoftButtonType type,Integer softButtonID)
public com.smartdevicelink.proxy.rpc.SoftButton setType(SoftButtonType type)
public com.smartdevicelink.proxy.rpc.enums.SoftButtonType getType()
public com.smartdevicelink.proxy.rpc.SoftButton setText(String text)
public java.lang.String getText()
public com.smartdevicelink.proxy.rpc.SoftButton setImage(Image image)
public com.smartdevicelink.proxy.rpc.Image getImage()
public com.smartdevicelink.proxy.rpc.SoftButton setIsHighlighted(Boolean isHighlighted)
public java.lang.Boolean getIsHighlighted()
public com.smartdevicelink.proxy.rpc.SoftButton setSoftButtonID(Integer softButtonID)
public java.lang.Integer getSoftButtonID()
public com.smartdevicelink.proxy.rpc.SoftButton setSystemAction(SystemAction systemAction)
public com.smartdevicelink.proxy.rpc.enums.SystemAction getSystemAction()
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 |