#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterEngine_Internal.h"
#include <algorithm>
#include <iostream>
#include <vector>
#include "flutter/common/constants.h"
#include "flutter/shell/platform/common/app_lifecycle_state.h"
#include "flutter/shell/platform/common/engine_switches.h"
#include "flutter/shell/platform/embedder/embedder.h"
#import "flutter/shell/platform/darwin/common/framework/Source/FlutterBinaryMessengerRelay.h"
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterAppDelegate.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterAppDelegate_Internal.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterCompositor.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterDartProject_Internal.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterDisplayLink.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterMenuPlugin.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterMouseCursorPlugin.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterPlatformViewController.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterRenderer.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterTimeConverter.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterVSyncWaiter.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController_Internal.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterViewEngineProvider.h"
Go to the source code of this file.
◆ FlutterLocaleFromNSLocale()
static FlutterLocale FlutterLocaleFromNSLocale |
( |
NSLocale * |
locale | ) |
|
|
static |
Constructs and returns a FlutterLocale struct corresponding to |locale|, which must outlive the returned struct.
Definition at line 44 of file FlutterEngine.mm.
44 {
47 flutterLocale.
language_code = [[locale objectForKey:NSLocaleLanguageCode] UTF8String];
48 flutterLocale.
country_code = [[locale objectForKey:NSLocaleCountryCode] UTF8String];
49 flutterLocale.
script_code = [[locale objectForKey:NSLocaleScriptCode] UTF8String];
50 flutterLocale.
variant_code = [[locale objectForKey:NSLocaleVariantCode] UTF8String];
51 return flutterLocale;
52}
const char * language_code
size_t struct_size
This size of this struct. Must be sizeof(FlutterLocale).
const char * country_code
const char * variant_code
◆ OnPlatformMessage()
◆ _accessibilityChannel
◆ _active
◆ _allowHeadlessExecution
BOOL _allowHeadlessExecution |
◆ _aotData
◆ _binaryMessenger
◆ _compositor
◆ _currentMessengerConnection
◆ _flutterEngine
◆ _lastViewWithPointerEvent
◆ _macOSCompositor
◆ _messengerHandlers
◆ _platformChannel
◆ _platformViewController
◆ _platformViewsChannel
◆ _project
Initial value:{
struct _FlutterEngine * FLUTTER_API_SYMBOL(FlutterEngine)
fml::scoped_nsobject< FlutterEngine > _engine
Definition at line 414 of file FlutterEngine.mm.
◆ _settingsChannel
◆ _terminator
◆ _threadSynchronizer
◆ _viewControllers
NSMapTable* _viewControllers |
◆ _visible
◆ _vsyncWaiters
◆ kEnhancedUserInterfaceKey
NSString* const kEnhancedUserInterfaceKey = @"@"AXEnhancedUserInterface" |
|
static |
◆ kEnhancedUserInterfaceNotification
NSString* const kEnhancedUserInterfaceNotification |
|
static |
Initial value:=
@"@"NSApplicationDidChangeAccessibilityEnhancedUserInterfaceNotification"
The private notification for voice over.
Definition at line 55 of file FlutterEngine.mm.
◆ kFlutterLifecycleChannel
NSString* const kFlutterLifecycleChannel = @"@"flutter/lifecycle" |
◆ kFlutterPlatformChannel
NSString* const kFlutterPlatformChannel = @"@"flutter/platform" |
◆ kFlutterSettingsChannel
NSString* const kFlutterSettingsChannel = @"@"flutter/settings" |
◆ kMainThreadPriority
const int kMainThreadPriority = 47 |
|
static |
◆ kTextPlainFormat
constexpr char kTextPlainFormat[] = "text/plain" |
|
constexpr |