| Flutter macOS Embedder |

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>`
`#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"`
`#import "flutter/shell/platform/embedder/embedder.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
FlutterViewId | _id
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 238 of file FlutterViewController.mm.

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

## Variable Documentation

## ◆ _bridge

std::shared_ptr<flutter::AccessibilityBridgeMac> _bridge

Initial value:
{
FlutterDartProject* _project

Definition at line 320 of file FlutterViewController.mm.

## ◆ _controller

__weak FlutterViewController* _controller

Initial value:
{
FlutterView* _flutterView

Definition at line 249 of file FlutterViewController.mm.

## ◆ _id

FlutterViewId _id

Definition at line 326 of file FlutterViewController.mm.

## ◆ _threadSynchronizer

FlutterThreadSynchronizer* _threadSynchronizer

Definition at line 330 of file FlutterViewController.mm.

FlutterViewController
Definition: FlutterViewController.h:65
_project
FlutterDartProject * _project
Definition: FlutterEngine.mm:403
FlutterView
Definition: FlutterView.h:48
FlutterDartProject
Definition: FlutterDartProject.mm:24