Flutter Engine
The Flutter Engine
Classes | Functions | Variables
FlutterViewController.mm File Reference
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController_Internal.h"
#include <Carbon/Carbon.h>
#import <objc/message.h>
#include "flutter/common/constants.h"
#include "flutter/shell/platform/embedder/embedder.h"
#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterChannels.h"
#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterCodecs.h"
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterEngine.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterEngine_Internal.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyPrimaryResponder.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManager.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterRenderer.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputSemanticsObject.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterView.h"

Go to the source code of this file.

Classes

class  FlutterViewWrapper
 

Functions

static void OnKeyboardLayoutChanged (CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo)
 

Variables

__weak FlutterViewController_controller
 
std::shared_ptr< flutter::AccessibilityBridgeMac_bridge
 
FlutterThreadSynchronizer_threadSynchronizer
 

Function Documentation

◆ OnKeyboardLayoutChanged()

static void OnKeyboardLayoutChanged ( CFNotificationCenterRef  center,
void *  observer,
CFStringRef  name,
const void *  object,
CFDictionaryRef  userInfo 
)
static

NotificationCenter callback invoked on kTISNotifySelectedKeyboardInputSourceChanged events.

Definition at line 239 of file FlutterViewController.mm.

243 {
244 FlutterViewController* controller = (__bridge FlutterViewController*)observer;
245 if (controller != nil) {
246 [controller onKeyboardLayoutChanged];
247 }
248}

Variable Documentation

◆ _bridge

std::shared_ptr<flutter::AccessibilityBridgeMac> _bridge
Initial value:

Definition at line 325 of file FlutterViewController.mm.

◆ _controller

__weak FlutterViewController* _controller
Initial value:
{
fml::scoped_nsobject< FlutterView > _flutterView

Definition at line 252 of file FlutterViewController.mm.

◆ _threadSynchronizer

FlutterThreadSynchronizer* _threadSynchronizer

Definition at line 329 of file FlutterViewController.mm.