Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaScript Suite Documentation
OnTouchEvent

OnTouchEvent Class Reference

Constructors

Instance Methods

Constructors

new OnTouchEvent(parameters)

Initializes an instance of OnTouchEvent.

Instance Methods

onTouchEvent.getEvent() ⇒ Array.<TouchEvent>

Get the Event

Kind: Instance method of OnTouchEvent
Returns: Array.<TouchEvent> - the KEY_EVENT value

onTouchEvent.getType() ⇒ TouchType

Get the Type

Kind: Instance method of OnTouchEvent
Returns: TouchType - the KEY_TYPE value

onTouchEvent.setEvent(event) ⇒ OnTouchEvent

Set the Event

Kind: Instance method of OnTouchEvent
Returns: OnTouchEvent - The class instance for method chaining.

ParamTypeDescription
event Array.<TouchEvent> List of all individual touches involved in this event. - The desired Event. {'array_min_size': 1, 'array_max_size': 10}

onTouchEvent.setType(type) ⇒ OnTouchEvent

Set the Type

Kind: Instance method of OnTouchEvent
Returns: OnTouchEvent - The class instance for method chaining.

ParamTypeDescription
type TouchType The type of touch event. - The desired Type.
View on GitHub.com
Previous Section Next Section