| Flutter macOS Embedder |

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

## Instance Methods
(instancetype) | - initWithPlugin:flutterEngine:
(nullable NSView *) | - viewForId:
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

## Detailed Description

`FlutterPluginRegistrar` implementation handling a single plugin.

Definition at line 281 of file FlutterEngine.mm.

## Method Documentation

## ◆ initWithPlugin:flutterEngine:

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

## ◆ viewForId:

- (NSView *) viewForId: |  | (FlutterViewId) | viewId |

Definition at line 326 of file FlutterEngine.mm.

326 :(FlutterViewId)viewId {
327 FlutterViewController* controller = [_flutterEngine viewControllerForId:viewId];
328 if (controller == nil) {
329 return nil;
330 }
331 if (!controller.viewLoaded) {
332 [controller loadView];
333 }
334 return controller.flutterView;
335 }

## 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 292 of file FlutterEngine.mm.

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

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

FlutterViewController
Definition: FlutterViewController.h:62
FlutterViewId
int64_t FlutterViewId
Definition: FlutterView.h:12