Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLTouch Class Reference

Section Contents

Overview

Undocumented

-initWithTouchEvent:

@abstract Initializes a touch.

Objective-C

- (nonnull instancetype)initWithTouchEvent:(nonnull SDLTouchEvent *)touchEvent;

Swift

init(touchEvent: SDLTouchEvent)

Parameters

touchEvent

Incoming touch event from onOnTouchEvent notification.

Return Value

SDLTouch Instance of SDLTouch.

identifier

@abstract Identifier of the touch’s finger. Refer to SDLTouchIdentifier for valid identifiers.

Objective-C

@property (readonly, assign, nonatomic) NSInteger identifier;

Swift

var identifier: Int { get }

location

@abstract Location of touch point, in the head unit’s coordinate system.

Objective-C

@property (readonly, assign, nonatomic) CGPoint location;

Swift

var location: CGPoint { get }

timeStamp

@abstract Timestamp in which the touch occured.

Objective-C

@property (readonly, assign, nonatomic) NSUInteger timeStamp;

Swift

var timeStamp: UInt { get }

isFirstFinger

@abstract Returns whether or not this touch is a first finger.

Objective-C

@property (readonly, assign, nonatomic) BOOL isFirstFinger;

Swift

var isFirstFinger: Bool { get }

isSecondFinger

@abstract Returns whether or not this touch is a second finger.

Objective-C

@property (readonly, assign, nonatomic) BOOL isSecondFinger;

Swift

var isSecondFinger: Bool { get }
View on GitHub.com
Previous Section Next Section