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
Documentation
TouchCoord

TouchCoord Class Reference

Constructors

Instance Methods

Constructors

new TouchCoord(parameters)

Initalizes an instance of TouchCoord.

Instance Methods

touchCoord.getX() ⇒ Number

Get the X

Kind: Instance method of TouchCoord
Returns: Number - the KEY_X value

touchCoord.getY() ⇒ Number

Get the Y

Kind: Instance method of TouchCoord
Returns: Number - the KEY_Y value

touchCoord.setX(x) ⇒ TouchCoord

Set the X

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

ParamTypeDescription
x Number The x coordinate of the touch. - The desired X. {'num_min_value': 0, 'num_max_value': 10000}

touchCoord.setY(y) ⇒ TouchCoord

Set the Y

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

ParamTypeDescription
y Number The y coordinate of the touch. - The desired Y. {'num_min_value': 0, 'num_max_value': 10000}
View on GitHub.com
Previous Section Next Section