5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERFAKEKEYEVENTS_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERFAKEKEYEVENTS_H_
8#import <Foundation/Foundation.h>
9#import <OCMock/OCMock.h>
10#import <UIKit/UIKit.h>
12#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterUIPressProxy.h"
16- (instancetype)initWithData:(UIPressPhase)phase
18 type:(UIEventType)type
19 timestamp:(NSTimeInterval)timestamp API_AVAILABLE(
ios(13.4));
26@property(nonatomic, readonly) UIPressPhase
dataPhase;
27@property(nonatomic, readonly) UIKey*
dataKey;
28@property(nonatomic, readonly) UIEventType
dataType;
34- (instancetype)initWithData:(UIKeyboardHIDUsage)keyCode
35 modifierFlags:(UIKeyModifierFlags)modifierFlags
36 characters:(NSString*)characters
37 charactersIgnoringModifiers:(NSString*)charactersIgnoringModifiers API_AVAILABLE(
ios(13.4));
53 UIKeyModifierFlags modifierFlags = 0x0,
54 NSTimeInterval timestamp = 0.0f,
55 const char* characters =
"",
56 const char* charactersIgnoringModifiers =
"")
60 UIKeyModifierFlags modifierFlags = 0x0,
61 NSTimeInterval timestamp = 0.0f,
62 const char* characters =
"",
63 const char* charactersIgnoringModifiers =
"")
67 UIKeyboardHIDUsage keyCode,
68 UIKeyModifierFlags modifierFlags = 0x0,
69 NSTimeInterval timestamp = 0.0f,
70 const char* characters =
"",
71 const char* charactersIgnoringModifiers =
"")
UIKeyModifierFlags dataModifierFlags
NSString * dataCharacters
UIKeyboardHIDUsage keyCode()
UIKeyModifierFlags modifierFlags()
NSString * dataCharactersIgnoringModifiers
UIKeyboardHIDUsage dataKeyCode
NSString * charactersIgnoringModifiers()
NSTimeInterval dataTimestamp
SK_API sk_sp< SkSurface > ios(9.0)
FlutterUIPressProxy * keyEventWithPhase(UIPressPhase phase, UIKeyboardHIDUsage keyCode, UIKeyModifierFlags modifierFlags=0x0, NSTimeInterval timestamp=0.0f, const char *characters="", const char *charactersIgnoringModifiers="") API_AVAILABLE(ios(13.4))
FlutterUIPressProxy * keyUpEvent(UIKeyboardHIDUsage keyCode, UIKeyModifierFlags modifierFlags=0x0, NSTimeInterval timestamp=0.0f, const char *characters="", const char *charactersIgnoringModifiers="") API_AVAILABLE(ios(13.4))
FlutterUIPressProxy * keyDownEvent(UIKeyboardHIDUsage keyCode, UIKeyModifierFlags modifierFlags=0x0, NSTimeInterval timestamp=0.0f, const char *characters="", const char *charactersIgnoringModifiers="") API_AVAILABLE(ios(13.4))
API_AVAILABLE(ios(14.0), macos(11.0)) static NSString *MTLCommandEncoderErrorStateToString(MTLCommandEncoderErrorState state)