SDLTouchEvent Class Reference

Section Contents

Overview

A touch which occurred on the IVI system during projection

touchEventId

A touch’s unique identifier. The application can track the current touch events by id.

If a touch event has type begin, the id should be added to the set of touches.

If a touch event has type end, the id should be removed from the set of touches.

Required, 0-9

Objective-C

@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull touchEventId;

Swift

var touchEventId: NSNumber & SDLInt { get set }

timeStamp

The time that the touch was recorded. This number can the time since the beginning of the session or something else as long as the units are in milliseconds.

The timestamp is used to determined the rate of change of position of a touch.

The application also uses the time to verify whether two touches, with different ids, are part of a single action by the user.

If there is only a single timestamp in this array, it is the same for every coordinate in the coordinates array.

Required, array size 1-1000, contains integer value 0-2000000000

Objective-C

@property (nonatomic, strong) NSArray<NSNumber *> *_Nonnull timeStamp;

Swift

var timeStamp: [NSNumber] { get set }

coord

The touch’s coordinate

Required, array size 1-1000

Objective-C

@property (nonatomic, strong) NSArray<SDLTouchCoord *> *_Nonnull coord;

Swift

var coord: [SDLTouchCoord] { get set }