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>
22 #pragma mark - Typedefs
26 #pragma mark - Enumerations
34 typedef NS_ENUM(NSInteger, FlutterAppExitType) {
35 kFlutterAppExitTypeCancelable = 0,
36 kFlutterAppExitTypeRequired = 1,
45 typedef NS_ENUM(NSInteger, FlutterAppExitResponse) {
46 kFlutterAppExitResponseCancel = 0,
47 kFlutterAppExitResponseExit = 1,
50 #pragma mark - FlutterEngineTerminationHandler
64 - (void)handleRequestAppExitMethodCall:(NSDictionary<NSString*,
id>*)data
66 - (void)requestApplicationTermination:(NSApplication*)sender
67 exitType:(FlutterAppExitType)type
76 - (NSString*)stringForType:(NSPasteboardType)dataType;
77 - (BOOL)setString:(NSString*)string forType:(NSPasteboardType)dataType;
85 @property(nonatomic, readonly) BOOL running;
96 @property(nonatomic) FlutterEngineProcTable& embedderAPI;
102 @property(nonatomic) BOOL semanticsEnabled;
107 @property(nonatomic, readonly, nonnull) NSString* executableName;
117 @property(nonatomic, readonly) std::vector<std::string> switches;
166 - (void)sendPointerEvent:(const FlutterPointerEvent&)event;
171 - (void)sendKeyEvent:(const FlutterKeyEvent&)event
172 callback:(nullable FlutterKeyEventCallback)callback
173 userData:(nullable
void*)userData;
178 - (BOOL)registerTextureWithID:(int64_t)textureId;
183 - (BOOL)markTextureFrameAvailable:(int64_t)textureID;
188 - (BOOL)unregisterTextureWithID:(int64_t)textureID;
206 - (void)dispatchSemanticsAction:(FlutterSemanticsAction)action
207 toTarget:(uint16_t)target
208 withData:(fml::MallocMapping)data;
213 - (void)handleAccessibilityEvent:(NSDictionary<NSString*,
id>*)annotatedEvent;
218 - (void)announceAccessibilityMessage:(NSString*)message
219 withPriority:(NSAccessibilityPriorityLevel)priority;
224 - (NSArray<NSScreen*>*)screens;
233 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_