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

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

Detailed Description

FlutterPluginRegistrar implementation handling a single plugin.

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

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

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


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