java.lang.Object
com.smartdevicelink.proxy.RPCStruct
For touchscreen interactions, the mode of how the choices are presented.
Parameter List
Name | Type | Description | Reg. | Notes | Version |
---|---|---|---|---|---|
id | Integer | A touch's unique identifier. The application can track the current touch events by id. If a touch event has type begin, the id should be added to the set of touches. If a touch event has type end, the id should be removed from the set of touches. | N | Min Value: 0; Max Value: 9 | SmartDeviceLink 3.0 |
ts | Float | The time that the touch was recorded. This number can the time since the beginning of the session or something else as long as the units are in milliseconds. The timestamp is used to determined the rate of change of position of a touch. The application also uses the time to verify whether two touches,with different ids, are part of a single action by the user. If there is only a single timestamp in this array, it is the same for every coordinate in the coordinates array. |
Y | minvalue="0" maxvalue="5000000000" minsize="1" maxsize="1000" | SmartDeviceLink 3.0 |
c | Integer | The coordinates of the screen area where the touch event occurred. | Y | SmartDeviceLink 3.0 |
public static final java.lang.String KEY_ID
public static final java.lang.String KEY_TS
public static final java.lang.String KEY_C
From Class | Fields |
---|---|
com.smartdevicelink.proxy.RPCStruct | KEY_BULK_DATA, KEY_PROTECTED, store |
public TouchEvent()
Constructs a new TouchEvent object indicated by the Hashtable parameter
public TouchEvent(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a new TouchEvent object
public TouchEvent(Integer id,java.util.List<java.lang.Long> ts,java.util.List<com.smartdevicelink.proxy.rpc.TouchCoord> c)
public com.smartdevicelink.proxy.rpc.TouchEvent setId(Integer id)
public java.lang.Integer getId()
Deprecated
Use getTimestamps
public java.util.List getTs()
public java.util.List getTimestamps()
public com.smartdevicelink.proxy.rpc.TouchEvent setTimestamps(java.util.List<java.lang.Long> ts)
Deprecated
Use setTimestamps.
public com.smartdevicelink.proxy.rpc.TouchEvent setTs(java.util.List<java.lang.Long> ts)
Deprecated
Use getTouchCoordinates
public java.util.List getC()
public java.util.List getTouchCoordinates()
Deprecated
Use setTouchCoordinates
public com.smartdevicelink.proxy.rpc.TouchEvent setC(java.util.List<com.smartdevicelink.proxy.rpc.TouchCoord> c)
public com.smartdevicelink.proxy.rpc.TouchEvent setTouchCoordinates(java.util.List<com.smartdevicelink.proxy.rpc.TouchCoord> c)
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 |