Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shell
platform
darwin
ios
framework
Source
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_
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
UIEvent
Definition
dart.idl:646
API_AVAILABLE
UITextSmartQuotesType smartQuotesType API_AVAILABLE(ios(11.0))
key
int key
Definition
keyboard_key_handler_unittests.cc:114
Generated on Fri Apr 26 2024 06:14:25 for Flutter Engine by
1.9.8