Flutter Engine
 
Loading...
Searching...
No Matches
ScreenBeforeFlutter Class Reference

#include <ScreenBeforeFlutter.h>

Inheritance diagram for ScreenBeforeFlutter:

Instance Methods

(id- initWithEngineRunCompletion:
 
(FlutterViewController *) - showFlutter:
 

Properties

FlutterEngineengine
 

Detailed Description

Definition at line 10 of file ScreenBeforeFlutter.h.

Method Documentation

◆ initWithEngineRunCompletion:

- (id) initWithEngineRunCompletion: (dispatch_block_t)  engineRunCompletion

Definition at line 1 of file ScreenBeforeFlutter.m.

12 :(dispatch_block_t)engineRunCompletion {
13 self = [super init];
14 _engine = [[FlutterEngine alloc] initWithScenario:@"poppable_screen"
15 withCompletion:engineRunCompletion];
16 return self;
17}

◆ showFlutter:

- (FlutterViewController *) showFlutter: (dispatch_block_t)  showCompletion

Definition at line 1 of file ScreenBeforeFlutter.m.

42 :(dispatch_block_t)showCompletion {
43 FlutterViewController* flutterVC = [[FlutterViewController alloc] initWithEngine:_engine
44 nibName:nil
45 bundle:nil];
46 [self presentViewController:flutterVC animated:NO completion:showCompletion];
47 return flutterVC;
48}

Property Documentation

◆ engine

- (FlutterEngine *) engine
readnonatomicassign

Definition at line 15 of file ScreenBeforeFlutter.h.


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