Describes a touch location
@abstract Initializes a touch.
- (nonnull instancetype)initWithTouchEvent:(nonnull SDLTouchEvent *)touchEvent;
init(touchEvent: SDLTouchEvent)
Incoming touch event from onOnTouchEvent notification.
SDLTouch Instance of SDLTouch.
@abstract Identifier of the touch’s finger. Refer to SDLTouchIdentifier for valid identifiers.
@property (nonatomic, readonly) NSInteger identifier;
var identifier: Int { get }
@abstract Location of touch point, in the head unit’s coordinate system.
@property (nonatomic, readonly) CGPoint location;
var location: CGPoint { get }
@abstract Timestamp in which the touch occurred.
@property (nonatomic, readonly) NSUInteger timeStamp;
var timeStamp: UInt { get }
@abstract Returns whether or not this touch is a first finger.
@property (nonatomic, readonly) BOOL isFirstFinger;
var isFirstFinger: Bool { get }
@abstract Returns whether or not this touch is a second finger.
@property (nonatomic, readonly) BOOL isSecondFinger;
var isSecondFinger: Bool { get }