Flutter iOS Embedder
FlutterViewResponder.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVIEWRESPONDER_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVIEWRESPONDER_H_
7 
8 #import <Foundation/Foundation.h>
9 
11 
12 /**
13  * Protocol to send touch events, typically a `FlutterViewController`.
14  */
15 @protocol FlutterViewResponder <NSObject>
16 
17 @property(nonatomic, strong) UIView* view;
18 
19 /**
20  * See `-[UIResponder touchesBegan:withEvent:]`
21  */
22 - (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event;
23 
24 /**
25  * See `-[UIResponder touchesMoved:withEvent:]`
26  */
27 - (void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event;
28 
29 /**
30  * See `-[UIResponder touchesEnded:withEvent:]`
31  */
32 - (void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event;
33 
34 /**
35  * See `-[UIResponder touchesCancelled:withEvent:]`
36  */
37 - (void)touchesCancelled:(NSSet*)touches withEvent:(UIEvent*)event;
38 
39 /**
40  * See `-[UIResponder touchesEstimatedPropertiesUpdated:]`
41  */
42 - (void)touchesEstimatedPropertiesUpdated:(NSSet*)touches;
43 
44 /**
45  * Send touches to the Flutter Engine while forcing the change type to be cancelled.
46  * The `phase`s in `touches` are ignored.
47  */
48 - (void)forceTouchesCancelled:(NSSet*)touches;
49 
50 @end
52 
53 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVIEWRESPONDER_H_
NS_ASSUME_NONNULL_END
#define NS_ASSUME_NONNULL_END
Definition: FlutterMacros.h:20
FlutterViewResponder-p::view
UIView * view
Definition: FlutterViewResponder.h:17
NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_BEGIN
Definition: FlutterMacros.h:19
FlutterViewResponder-p
Definition: FlutterViewResponder.h:15