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>
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 =
"")
75 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERFAKEKEYEVENTS_H_