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>
25 #pragma mark - Typedefs
29 #pragma mark - Enumerations
37 typedef NS_ENUM(NSInteger, FlutterAppExitType) {
38 kFlutterAppExitTypeCancelable = 0,
39 kFlutterAppExitTypeRequired = 1,
48 typedef NS_ENUM(NSInteger, FlutterAppExitResponse) {
49 kFlutterAppExitResponseCancel = 0,
50 kFlutterAppExitResponseExit = 1,
53 #pragma mark - FlutterEngineTerminationHandler
67 - (void)handleRequestAppExitMethodCall:(NSDictionary<NSString*,
id>*)data
69 - (void)requestApplicationTermination:(NSApplication*)sender
70 exitType:(FlutterAppExitType)type
79 - (NSString*)stringForType:(NSPasteboardType)dataType;
80 - (BOOL)setString:(NSString*)string forType:(NSPasteboardType)dataType;
88 @property(nonatomic, readonly) BOOL running;
99 @property(nonatomic) FlutterEngineProcTable& embedderAPI;
105 @property(nonatomic) BOOL semanticsEnabled;
110 @property(nonatomic, readonly, nonnull) NSString* executableName;
120 @property(nonatomic, readonly) std::vector<std::string> switches;
169 - (void)sendPointerEvent:(const FlutterPointerEvent&)event;
174 - (BOOL)registerTextureWithID:(int64_t)textureId;
179 - (BOOL)markTextureFrameAvailable:(int64_t)textureID;
184 - (BOOL)unregisterTextureWithID:(int64_t)textureID;
202 - (void)dispatchSemanticsAction:(FlutterSemanticsAction)action
203 toTarget:(uint16_t)target
204 withData:(fml::MallocMapping)data;
209 - (void)handleAccessibilityEvent:(NSDictionary<NSString*,
id>*)annotatedEvent;
214 - (void)announceAccessibilityMessage:(NSString*)message
215 withPriority:(NSAccessibilityPriorityLevel)priority;
243 - (void)enableMultiView;
258 - (NSArray<NSScreen*>*)screens;
269 + (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()