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

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

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


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