5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
8#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h"
10#import <Cocoa/Cocoa.h>
14#include "flutter/shell/platform/common/app_lifecycle_state.h"
16#import "flutter/shell/platform/darwin/macos/framework/Source/AccessibilityBridgeMac.h"
17#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterPlatformViewController.h"
18#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterRenderer.h"
22#pragma mark - Typedefs
26#pragma mark - Enumerations
34typedef NS_ENUM(NSInteger, FlutterAppExitType) {
35 kFlutterAppExitTypeCancelable = 0,
36 kFlutterAppExitTypeRequired = 1,
45typedef 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;
117@property(nonatomic, readonly) std::vector<std::string>
switches;
173 userData:(nullable
void*)userData;
178- (
BOOL)registerTextureWithID:(int64_t)textureId;
183- (
BOOL)markTextureFrameAvailable:(int64_t)textureID;
188- (
BOOL)unregisterTextureWithID:(int64_t)textureID;
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;
void(^ FlutterResult)(id _Nullable result)
#define NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_END
FlutterEngineProcTable & embedderAPI
NSInteger clearContents()
void(* FlutterKeyEventCallback)(bool, void *)
nonnull NSString * executableName()
NSArray< NSScreen * > * screens()
std::vector< std::string > switches()
FlutterPlatformViewController * platformViewController()
FlutterPasteboard * pasteboard
FlutterEngineTerminationHandler * terminationHandler
NS_ASSUME_NONNULL_BEGIN typedef void(^ FlutterTerminationCallback)(id _Nullable sender)
typedef NS_ENUM(NSInteger, FlutterAppExitType)
Function-pointer-based versions of the APIs above.