| Flutter iOS Embedder |

FlutterUIPressProxy.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_FLUTTERUIPRESSPROXY_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERUIPRESSPROXY_H_
7
8 #import <UIKit/UIKit.h>
9 #include <functional>
10
11 /**
12 * A event class that is a wrapper around a UIPress and a UIEvent to allow
13 * overidding for testing purposes, since UIKit doesn't allow creation of
14 * UIEvent or UIPress directly.
15 */
16 API_AVAILABLE(ios(13.4))
17 @interface FlutterUIPressProxy : NSObject
18
19 - (instancetype)initWithPress:(UIPress*)press withEvent:(UIEvent*)event API_AVAILABLE(ios(13.4));
20
21 - (UIPressPhase)phase API_AVAILABLE(ios(13.4));
22 - (UIKey*)key API_AVAILABLE(ios(13.4));
23 - (UIEventType)type API_AVAILABLE(ios(13.4));
24 - (NSTimeInterval)timestamp API_AVAILABLE(ios(13.4));
25
26 @end
27
28 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERUIPRESSPROXY_H_
API_AVAILABLE
UITextSmartQuotesType smartQuotesType API_AVAILABLE(ios(11.0))
FlutterUIPressProxy
Definition: FlutterUIPressProxy.h:18