| Flutter iOS Embedder |

FlutterUIPressProxy.mm
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 #import <UIKit/UIKit.h>
6
7 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterUIPressProxy.h"
8
9 @interface FlutterUIPressProxy ()
10 @property(nonatomic, readonly) UIPress* press;
11 @property(nonatomic, readonly) UIEvent* event;
12 @end
13
14 @implementation FlutterUIPressProxy
15
16 - (instancetype)initWithPress:(UIPress*)press withEvent:(UIEvent*)event API_AVAILABLE(ios(13.4)) {
17 self = [super init];
18 if (self) {
19 _press = press;
20 _event = event;
21 }
22 return self;
23 }
24
25 - (UIPressPhase)phase API_AVAILABLE(ios(13.4)) {
26 return _press.phase;
27 }
28
29 - (UIKey*)key API_AVAILABLE(ios(13.4)) {
30 return _press.key;
31 }
32
33 - (UIEventType)type API_AVAILABLE(ios(13.4)) {
34 return _event.type;
35 }
36
37 - (NSTimeInterval)timestamp API_AVAILABLE(ios(13.4)) {
38 return _event.timestamp;
39 }
40
41 @end
API_AVAILABLE
UITextSmartQuotesType smartQuotesType API_AVAILABLE(ios(11.0))
FlutterUIPressProxy
Definition: FlutterUIPressProxy.h:17
FlutterUIPressProxy.h