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

SDLPinchGesture Class Reference

Section Contents

Overview

Undocumented

-initWithFirstTouch:secondTouch:

@abstract Initializes a pinch gesture.

Objective-C

- (nonnull instancetype)initWithFirstTouch:(nonnull SDLTouch *)firstTouch
                               secondTouch:(nonnull SDLTouch *)secondTouch;

Swift

init(firstTouch: SDLTouch, secondTouch: SDLTouch)

Parameters

firstTouch

First touch of the gesture

secondTouch

Second touch of the gesture

Return Value

SDLPinchGesture Instance of SDLPinchGesture.

firstTouch

@abstract First touch of a pinch gesture.

Objective-C

@property (readwrite, strong, nonatomic) SDLTouch *_Nonnull firstTouch;

Swift

var firstTouch: SDLTouch { get set }

secondTouch

@abstract Second touch of a pinch gesture.

Objective-C

@property (readwrite, strong, nonatomic) SDLTouch *_Nonnull secondTouch;

Swift

var secondTouch: SDLTouch { get set }

distance

@abstract Distance between first and second touches.

Objective-C

@property (readonly, assign, nonatomic) CGFloat distance;

Swift

var distance: CGFloat { get }

center

@abstract Center point between first and second touches.

Objective-C

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

Swift

var center: CGPoint { get }

isValid

@abstract Returns whether or not the pinch gesture is valid. This is true if both touches are non null.

Objective-C

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

Swift

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