| Flutter macOS Embedder |

Instance Methods | Properties | List of all members
FlutterEngineRegistrar Class Reference
Inheritance diagram for FlutterEngineRegistrar:

## Instance Methods
(instancetype) | - initWithPlugin:flutterEngine:
(nullable NSView *) | - viewForIdentifier:
Instance Methods inherited from <FlutterPluginRegistrar>
(void) | - addMethodCallDelegate:channel:
(void) | - addApplicationDelegate:
(void) | - registerViewFactory:withId:
(void) | - publish:
(nonnull NSString *) | - lookupKeyForAsset:
(nonnull NSString *) | - lookupKeyForAsset:fromPackage:

## Properties
NSObject * | publishedValue
Properties inherited from <FlutterPluginRegistrar>
id< FlutterBinaryMessenger > | messenger
id< FlutterTextureRegistry > | textures
NSView * | view
NSViewController * | viewController

## Detailed Description

`FlutterPluginRegistrar` implementation handling a single plugin.

Definition at line 309 of file FlutterEngine.mm.

## Method Documentation

## ◆ initWithPlugin:flutterEngine:

- (instancetype) initWithPlugin: |  | (nonnull NSString *) | pluginKey
flutterEngine: |  | (nonnull FlutterEngine *) | flutterEngine

## ◆ viewForIdentifier:

- (NSView *) viewForIdentifier: |  | (FlutterViewIdentifier) | viewIdentifier |

Definition at line 325 of file FlutterEngine.mm.

354 :(FlutterViewIdentifier)viewIdentifier {
355 FlutterViewController* controller = [_flutterEngine viewControllerForIdentifier:viewIdentifier];
356 if (controller == nil) {
357 return nil;
358 }
359 if (!controller.viewLoaded) {
360 [controller loadView];
361 }
362 return controller.flutterView;
363 }
FlutterViewIdentifier
int64_t FlutterViewIdentifier
Definition: FlutterViewController.h:21
FlutterViewController
Definition: FlutterViewController.h:73

## Property Documentation

## ◆ publishedValue

- (NSObject*) publishedValue
| read nonatomic assign

The value published by this plugin, or NSNull if nothing has been published.

The unusual NSNull is for the documented behavior of valuePublishedByPlugin:.

Definition at line 320 of file FlutterEngine.mm.

The documentation for this class was generated from the following file:

- shell/platform/darwin/macos/framework/Source/FlutterEngine.mm