7 #import <Cocoa/Cocoa.h>
20 #pragma mark - Typedefs
24 #pragma mark - Enumerations
32 typedef NS_ENUM(NSInteger, FlutterAppExitType) {
33 kFlutterAppExitTypeCancelable = 0,
34 kFlutterAppExitTypeRequired = 1,
43 typedef NS_ENUM(NSInteger, FlutterAppExitResponse) {
44 kFlutterAppExitResponseCancel = 0,
45 kFlutterAppExitResponseExit = 1,
48 #pragma mark - FlutterEngineTerminationHandler
62 - (void)handleRequestAppExitMethodCall:(NSDictionary<NSString*,
id>*)data
64 - (void)requestApplicationTermination:(NSApplication*)sender
65 exitType:(FlutterAppExitType)type
74 - (NSString*)stringForType:(NSPasteboardType)dataType;
75 - (BOOL)setString:(NSString*)string forType:(NSPasteboardType)dataType;
83 @property(nonatomic, readonly) BOOL running;
94 @property(nonatomic) FlutterEngineProcTable& embedderAPI;
100 @property(nonatomic) BOOL semanticsEnabled;
105 @property(nonatomic, readonly, nonnull) NSString* executableName;
115 @property(nonatomic, readonly) std::vector<std::string> switches;
160 - (void)sendPointerEvent:(const FlutterPointerEvent&)event;
165 - (void)sendKeyEvent:(const FlutterKeyEvent&)event
166 callback:(nullable FlutterKeyEventCallback)callback
167 userData:(nullable
void*)userData;
172 - (BOOL)registerTextureWithID:(int64_t)textureId;
177 - (BOOL)markTextureFrameAvailable:(int64_t)textureID;
182 - (BOOL)unregisterTextureWithID:(int64_t)textureID;
200 - (void)dispatchSemanticsAction:(FlutterSemanticsAction)action
201 toTarget:(uint16_t)target
202 withData:(fml::MallocMapping)data;
207 - (void)handleAccessibilityEvent:(NSDictionary<NSString*,
id>*)annotatedEvent;
212 - (void)announceAccessibilityMessage:(NSString*)message
213 withPriority:(NSAccessibilityPriorityLevel)priority;