5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
10 #import <Cocoa/Cocoa.h>
23 #pragma mark - Typedefs
27 #pragma mark - Enumerations
35 typedef NS_ENUM(NSInteger, FlutterAppExitType) {
36 kFlutterAppExitTypeCancelable = 0,
37 kFlutterAppExitTypeRequired = 1,
46 typedef NS_ENUM(NSInteger, FlutterAppExitResponse) {
47 kFlutterAppExitResponseCancel = 0,
48 kFlutterAppExitResponseExit = 1,
51 #pragma mark - FlutterEngineTerminationHandler
65 - (void)handleRequestAppExitMethodCall:(NSDictionary<NSString*,
id>*)data
67 - (void)requestApplicationTermination:(NSApplication*)sender
68 exitType:(FlutterAppExitType)type
77 - (NSString*)stringForType:(NSPasteboardType)dataType;
78 - (BOOL)setString:(NSString*)string forType:(NSPasteboardType)dataType;
86 @property(nonatomic, readonly) BOOL running;
97 @property(nonatomic) FlutterEngineProcTable& embedderAPI;
103 @property(nonatomic) BOOL semanticsEnabled;
108 @property(nonatomic, readonly, nonnull) NSString* executableName;
118 @property(nonatomic, readonly) std::vector<std::string> switches;
168 - (void)sendPointerEvent:(const FlutterPointerEvent&)event;
173 - (void)sendKeyEvent:(const FlutterKeyEvent&)event
174 callback:(nullable FlutterKeyEventCallback)callback
175 userData:(nullable
void*)userData;
180 - (BOOL)registerTextureWithID:(int64_t)textureId;
185 - (BOOL)markTextureFrameAvailable:(int64_t)textureID;
190 - (BOOL)unregisterTextureWithID:(int64_t)textureID;
208 - (void)dispatchSemanticsAction:(FlutterSemanticsAction)action
209 toTarget:(uint16_t)target
210 withData:(fml::MallocMapping)data;
215 - (void)handleAccessibilityEvent:(NSDictionary<NSString*,
id>*)annotatedEvent;
220 - (void)announceAccessibilityMessage:(NSString*)message
221 withPriority:(NSAccessibilityPriorityLevel)priority;
226 - (NSArray<NSScreen*>*)screens;
235 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_