summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLTouchManagerDelegate.h
blob: f23a4ec6db8e37fd66855642a4c22c126a87cd5a (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
//
//  SDLTouchManagerDelegate.h
//  SmartDeviceLink-iOS
//
//  Created by Muller, Alexander (A.) on 6/14/16.
//  Copyright © 2016 smartdevicelink. All rights reserved.
//

@class SDLTouchManager;

NS_ASSUME_NONNULL_BEGIN

@protocol SDLTouchManagerDelegate <NSObject>

@optional

/**
 *  @abstract
 *      Single tap was received.
 *  @param manager
 *      Current initalized SDLTouchManager issuing the callback.
 *  @param point
 *      Location of the single tap in the head unit's coordinate system.
 */
- (void)touchManager:(SDLTouchManager*)manager didReceiveSingleTapAtPoint:(CGPoint)point;

/**
 *  @abstract
 *      Double tap was received.
 *  @param manager
 *      Current initalized SDLTouchManager issuing the callback.
 *  @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 didReceiveDoubleTapAtPoint:(CGPoint)point;

/**
 *  @abstract
 *      Panning did start.
 *  @param manager
 *      Current initalized SDLTouchManager issuing the callback.
 *  @param point
 *      Location of the panning start point in the head unit's coordinate system.
 */
- (void)touchManager:(SDLTouchManager*)manager panningDidStartAtPoint:(CGPoint)point;

/**
 *  @abstract
 *      Panning did move.
 *  @param manager
 *      Current initalized 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;

/**
 *  @abstract
 *      Panning did end.
 *  @param manager
 *      Current initalized SDLTouchManager issuing the callback.
 *  @param point
 *      Location of the panning's end point in the head unit's coordinate system.
 */
- (void)touchManager:(SDLTouchManager*)manager panningDidEndAtPoint:(CGPoint)point;

/**
 *  @abstract
 *      Pinch did start.
 *  @param manager
 *      Current initalized SDLTouchManager issuing the callback.
 *  @param point
 *      Center point of the pinch in the head unit's coordinate system.
 */
- (void)touchManager:(SDLTouchManager*)manager pinchDidStartAtCenterPoint:(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;

/**
 *  @abstract
 *      Pinch did end.
 *  @param manager
 *      Current initalized SDLTouchManager issuing the callback.
 *  @param point
 *      Center point of the pinch in the head unit's coordinate system.
 */
- (void)touchManager:(SDLTouchManager*)manager pinchDidEndAtCenterPoint:(CGPoint)point;

@end

NS_ASSUME_NONNULL_END