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