blob: 29f53bc02359282ea4a250cf0f736159a4b6143b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
//
// SDLTouchManagerDelegate.h
// SmartDeviceLink-iOS
//
// Created by Muller, Alexander (A.) on 6/14/16.
// Copyright © 2016 smartdevicelink. All rights reserved.
//
#import <UIKit/UIKit.h>
@class SDLTouchManager;
NS_ASSUME_NONNULL_BEGIN
@protocol SDLTouchManagerDelegate <NSObject>
@optional
/**
A single tap was received
@param manager The SDLTouchManager issuing the callback
@param view The view under the touch if it could be determined
@param point The point at which the touch occurred in the head unit's coordinate system
*/
- (void)touchManager:(SDLTouchManager *)manager didReceiveSingleTapForView:(UIView *_Nullable)view atPoint:(CGPoint)point;
/**
A double tap was received
@param manager The SDLTouchManager issuing the callback
@param view The view under the touch if it could be determined
@param point Location of the double tap in the head unit's coordinate system. This is the average of the first and second tap.
*/
- (void)touchManager:(SDLTouchManager *)manager didReceiveDoubleTapForView:(UIView *_Nullable)view atPoint:(CGPoint)point;
/**
Panning started
@param manager The SDLTouchManager issuing the callback
@param view The view under where the panning started if it could be determined
@param point Location of the panning start point in the head unit's coordinate system.
*/
- (void)touchManager:(SDLTouchManager *)manager panningDidStartInView:(UIView *_Nullable)view atPoint:(CGPoint)point;
/**
Panning moved between points
@param manager The SDLTouchManager issuing the callback
@param fromPoint Location of the panning's previous point in the head unit's coordinate system
@param toPoint Location of the panning's new point in the head unit's coordinate system
*/
- (void)touchManager:(SDLTouchManager *)manager didReceivePanningFromPoint:(CGPoint)fromPoint toPoint:(CGPoint)toPoint;
/**
Panning ended
@param manager The SDLTouchManager issuing the callback
@param view The view under where the panning ended if it could be determined
@param point Location of the panning's end point in the head unit's coordinate system
*/
- (void)touchManager:(SDLTouchManager *)manager panningDidEndInView:(UIView *_Nullable)view atPoint:(CGPoint)point;
/**
Panning canceled
@param manager The SDLTouchManager issuing the callback
@param point Location of the panning's end point in the head unit's coordinate system
*/
- (void)touchManager:(SDLTouchManager *)manager panningCanceledAtPoint:(CGPoint)point;
/**
Pinch did start
@param manager The SDLTouchManager issuing the callback
@param view The view under the center of the pinch start
@param point Center point of the pinch in the head unit's coordinate system
*/
- (void)touchManager:(SDLTouchManager *)manager pinchDidStartInView:(UIView *_Nullable)view atCenterPoint:(CGPoint)point;
/**
* @abstract
* Pinch did move.
* @param manager
* Current initalized SDLTouchManager issuing the callback.
* @param point
* Center point of the pinch in the head unit's coordinate system.
* @param scale
* Scale relative to the distance between touch points.
*/
- (void)touchManager:(SDLTouchManager *)manager didReceivePinchAtCenterPoint:(CGPoint)point withScale:(CGFloat)scale;
/**
Pinch moved and changed scale
@param manager The SDLTouchManager issuing the callback
@param view The view under the center of the pinch
@param point Center point of the pinch in the head unit's coordinate system
@param scale Scale relative to the distance between touch points
*/
- (void)touchManager:(SDLTouchManager *)manager didReceivePinchInView:(UIView *_Nullable)view atCenterPoint:(CGPoint)point withScale:(CGFloat)scale;
/**
Pinch did end
@param manager The SDLTouchManager issuing the callback
@param view The view under the center of the pinch
@param point Center point of the pinch in the head unit's coordinate system
*/
- (void)touchManager:(SDLTouchManager *)manager pinchDidEndInView:(UIView *_Nullable)view atCenterPoint:(CGPoint)point;
/**
Pinch canceled
@param manager The SDLTouchManager issuing the callback
@param point Center point of the pinch in the head unit's coordinate system
*/
- (void)touchManager:(SDLTouchManager *)manager pinchCanceledAtCenterPoint:(CGPoint)point;
@end
NS_ASSUME_NONNULL_END
|