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
JavaScript Suite Documentation
SendHapticData

SendHapticData Class Reference

Constructors

Instance Methods

Constructors

new SendHapticData(parameters)

Initalizes an instance of SendHapticData.

Instance Methods

sendHapticData.getHapticRectData() ⇒ Array.<HapticRect>

Get the HapticRectData

Kind: Instance method of SendHapticData
Returns: Array.<HapticRect> - the KEY_HAPTIC_RECT_DATA value

sendHapticData.setHapticRectData(data) ⇒ SendHapticData

Set the HapticRectData

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

ParamTypeDescription
data Array.<HapticRect> Array of spatial data structures that represent the locations of all user controls present on the HMI. This data should be updated if/when the application presents a new screen. When a request is sent, if successful, it will replace all spatial data previously sent through RPC. If an empty array is sent, the existing spatial data will be cleared - The desired HapticRectData. {'array_min_size': 0, 'array_max_size': 1000}
View on GitHub.com
Previous Section Next Section