Flutter Engine
The Flutter Engine
Instance Methods | Protected Attributes | List of all members
FlutterViewEngineProvider Class Reference

#import <FlutterViewEngineProvider.h>

Inheritance diagram for FlutterViewEngineProvider:
<FlutterViewProvider>

Instance Methods

(nonnull instancetype) - initWithEngine:
 
(instancetype) - initWithEngine: [implementation]
 
(nullable FlutterView *) - viewForIdentifier: [implementation]
 
(nullable FlutterView *) - viewForIdentifier:
 

Protected Attributes

__weak FlutterEngine_engine
 

Detailed Description

A facade over FlutterEngine that allows FlutterEngine's children components to query FlutterView.

FlutterViewProvider only holds a weak reference to FlutterEngine.

Definition at line 18 of file FlutterViewEngineProvider.h.

Method Documentation

◆ initWithEngine: [1/2]

- (instancetype) initWithEngine: (FlutterEngine*)  engine
implementation

Definition at line 10 of file FlutterViewEngineProvider.mm.

18 self = [super init];
19 if (self != nil) {
21 }
22 return self;
23}
FlutterEngine engine
Definition: main.cc:68

◆ initWithEngine: [2/2]

- (nonnull instancetype) initWithEngine: (nonnull __weak FlutterEngine *)  engine

Create a FlutterViewProvider with the underlying engine.

◆ viewForIdentifier:

- (nullable FlutterView *) viewForIdentifier: (FlutterViewIdentifier id
implementation

Get the FlutterView with the given view ID.

Returns nil if the ID is invalid.

Reimplemented from <FlutterViewProvider>.

Definition at line 10 of file FlutterViewEngineProvider.mm.

25 :(FlutterViewIdentifier)viewIdentifier {
26 return [_engine viewControllerForIdentifier:viewIdentifier].flutterView;
27}
int64_t FlutterViewIdentifier

Member Data Documentation

◆ _engine

- (__weak FlutterEngine*) _engine
protected

Definition at line 10 of file FlutterViewEngineProvider.mm.


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