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
HapticRect

HapticRect Class Reference

Constructors

Instance Methods

Constructors

new HapticRect(parameters)

Initalizes 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
Previous Section Next Section