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
SDLTouch

SDLTouch Class Reference

Section Contents

Overview

Describes a touch location

-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 (nonatomic, readonly) NSInteger identifier;

Swift

var identifier: Int { get }

location

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

Objective-C

@property (nonatomic, readonly) CGPoint location;

Swift

var location: CGPoint { get }

timeStamp

@abstract Timestamp in which the touch occurred.

Objective-C

@property (nonatomic, readonly) NSUInteger timeStamp;

Swift

var timeStamp: UInt { get }

isFirstFinger

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

Objective-C

@property (nonatomic, readonly) BOOL isFirstFinger;

Swift

var isFirstFinger: Bool { get }

isSecondFinger

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

Objective-C

@property (nonatomic, readonly) BOOL isSecondFinger;

Swift

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