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
iOS Documentation
SDLSendHapticData

SDLSendHapticData Class Reference

Section Contents

Overview

Sends the spatial data gathered from SDLCarWindow or VirtualDisplayEncoder to the HMI. This data will be utilized by the HMI to determine how and when haptic events should occur.

-initWithHapticRectData:

Constructs a new SDLSendHapticData object indicated by the hapticSpatialData parameter

Objective-C

- (nonnull instancetype)initWithHapticRectData:
    (nonnull NSArray<SDLHapticRect *> *)hapticRectData;

Swift

init(hapticRectData: [SDLHapticRect])

Parameters

hapticRectData

Array of spatial data structures

hapticRectData

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

Optional, Array of SDLHapticRect, Array size 0 - 1,000

Objective-C

@property (nonatomic, strong, nullable) NSArray<SDLHapticRect *> *hapticRectData;

Swift

var hapticRectData: [SDLHapticRect]? { get set }
View on GitHub.com
Previous Section Next Section