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

HapticRect Class Reference

Constructors

Instance Methods

Constructors

new HapticRect(parameters)

Initializes an instance of HapticRect.

Instance Methods

hapticRect.getIdParam() ⇒ Number

Get the IdParam

Kind: Instance method of HapticRect
Returns: Number - the KEY_ID value

hapticRect.getRect() ⇒ Rectangle

Get the Rect

Kind: Instance method of HapticRect
Returns: Rectangle - the KEY_RECT value

hapticRect.setIdParam(id) ⇒ HapticRect

Set the IdParam

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

ParamTypeDescription
id Number A user control spatial identifier - The desired IdParam. {'num_min_value': 0, 'num_max_value': 2000000000}

hapticRect.setRect(rect) ⇒ HapticRect

Set the Rect

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

ParamTypeDescription
rect Rectangle The position of the haptic rectangle to be highlighted. The center of this rectangle will be "touched" when a press occurs. - The desired Rect.
View on GitHub.com