Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shell
platform
darwin
ios
framework
Source
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 "flutter/shell/platform/darwin/ios/framework/Source/FlutterUIPressProxy.h"
6
7
#import <UIKit/UIKit.h>
8
9
#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterMacros.h"
10
11
FLUTTER_ASSERT_ARC
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
self
return self
Definition
FlutterTextureRegistryRelay.mm:19
event
FlKeyEvent * event
Definition
fl_key_channel_responder.cc:118
type
uint8_t type
Definition
fl_standard_message_codec_test.cc:1115
FlutterUIPressProxy
Definition
FlutterUIPressProxy.h:18
-[FlutterUIPressProxy ios]
ios(13.4 API_AVAILABLE()
Definition
FlutterUIPressProxy.mm:29
FlutterUIPressProxy::press
UIPress * press
Definition
FlutterUIPressProxy.mm:14
UIEvent
Definition
dart.idl:646
API_AVAILABLE
UITextSmartQuotesType smartQuotesType API_AVAILABLE(ios(11.0))
key
int key
Definition
keyboard_key_handler_unittests.cc:114
FLUTTER_ASSERT_ARC
Definition
FlutterChannelKeyResponder.mm:13
Generated on Fri Apr 26 2024 06:14:25 for Flutter Engine by
1.9.8