Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | Protected Attributes | List of all members
FlutterViewEngineProvider Class Reference

#include <FlutterViewEngineProvider.h>

Inheritance diagram for FlutterViewEngineProvider:
<FlutterViewProvider>

Instance Methods

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

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
fml::scoped_nsobject< FlutterEngine > _engine

◆ 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

Provided by category FlutterViewEngineProvider().

Definition at line 10 of file FlutterViewEngineProvider.mm.


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