Flutter macOS Embedder
FlutterEngineRegistrar Class Reference
Inheritance diagram for FlutterEngineRegistrar:
<FlutterPluginRegistrar>

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< FlutterBinaryMessengermessenger
 
id< FlutterTextureRegistrytextures
 
NSView * view
 

Detailed Description

FlutterPluginRegistrar implementation handling a single plugin.

Definition at line 299 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 344 of file FlutterEngine.mm.

344  :(FlutterViewId)viewId {
345  FlutterViewController* controller = [_flutterEngine viewControllerForId:viewId];
346  if (controller == nil) {
347  return nil;
348  }
349  if (!controller.viewLoaded) {
350  [controller loadView];
351  }
352  return controller.flutterView;
353 }

Property Documentation

◆ publishedValue

- (NSObject*) publishedValue
readnonatomicassign

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


The documentation for this class was generated from the following file:
FlutterViewController
Definition: FlutterViewController.h:62
FlutterViewId
int64_t FlutterViewId
Definition: FlutterView.h:12