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>
24 #pragma mark - Typedefs
28 #pragma mark - Enumerations
36 typedef NS_ENUM(NSInteger, FlutterAppExitType) {
37 kFlutterAppExitTypeCancelable = 0,
38 kFlutterAppExitTypeRequired = 1,
47 typedef NS_ENUM(NSInteger, FlutterAppExitResponse) {
48 kFlutterAppExitResponseCancel = 0,
49 kFlutterAppExitResponseExit = 1,
52 #pragma mark - FlutterEngineTerminationHandler
66 - (void)handleRequestAppExitMethodCall:(NSDictionary<NSString*,
id>*)data
68 - (void)requestApplicationTermination:(NSApplication*)sender
69 exitType:(FlutterAppExitType)type
78 - (NSString*)stringForType:(NSPasteboardType)dataType;
79 - (BOOL)setString:(NSString*)string forType:(NSPasteboardType)dataType;
87 @property(nonatomic, readonly) BOOL running;
98 @property(nonatomic) FlutterEngineProcTable& embedderAPI;
104 @property(nonatomic) BOOL semanticsEnabled;
109 @property(nonatomic, readonly, nonnull) NSString* executableName;
119 @property(nonatomic, readonly) std::vector<std::string> switches;
168 - (void)sendPointerEvent:(const FlutterPointerEvent&)event;
173 - (BOOL)registerTextureWithID:(int64_t)textureId;
178 - (BOOL)markTextureFrameAvailable:(int64_t)textureID;
183 - (BOOL)unregisterTextureWithID:(int64_t)textureID;
201 - (void)dispatchSemanticsAction:(FlutterSemanticsAction)action
202 toTarget:(uint16_t)target
203 withData:(fml::MallocMapping)data;
208 - (void)handleAccessibilityEvent:(NSDictionary<NSString*,
id>*)annotatedEvent;
213 - (void)announceAccessibilityMessage:(NSString*)message
214 withPriority:(NSAccessibilityPriorityLevel)priority;
229 - (NSArray<NSScreen*>*)screens;
240 + (nullable
FlutterEngine*)engineForIdentifier:(int64_t)identifier;
void(^ FlutterResult)(id _Nullable result)
NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterTerminationCallback)(id _Nullable sender)
typedef NS_ENUM(NSInteger, FlutterAppExitType)
#define NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_END
int64_t FlutterViewIdentifier
NSInteger clearContents()