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:
 
(nullable NSObject *) - valuePublishedByPlugin:
 
(nonnull NSString *) - lookupKeyForAsset:
 
(nonnull NSString *) - lookupKeyForAsset:fromPackage:
 

Properties

NSObject * publishedValue
 
- Properties inherited from <FlutterPluginRegistrar>
int64_t engineIdentifier
 
id< FlutterBinaryMessenger > messenger
 
id< FlutterTextureRegistry > textures
 
NSView * view
 
NSViewController * viewController
 

Detailed Description

FlutterPluginRegistrar implementation handling a single plugin.

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

359  :(FlutterViewIdentifier)viewIdentifier {
360  FlutterViewController* controller = [_flutterEngine viewControllerForIdentifier:viewIdentifier];
361  if (controller == nil) {
362  return nil;
363  }
364  if (!controller.viewLoaded) {
365  [controller loadView];
366  }
367  return controller.flutterView;
368 }
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 321 of file FlutterEngine.mm.


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