Flutter Engine
ScreenBeforeFlutter Class Reference

#import <ScreenBeforeFlutter.h>

Inheritance diagram for ScreenBeforeFlutter:

Instance Methods

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

Properties

FlutterEngineengine
 

Detailed Description

Definition at line 7 of file ScreenBeforeFlutter.h.

Method Documentation

◆ initWithEngineRunCompletion:()

- (id) initWithEngineRunCompletion: (dispatch_block_t)  engineRunCompletion

Definition at line 12 of file ScreenBeforeFlutter.m.

References _engine.

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

◆ showFlutter:()

- (FlutterViewController *) showFlutter: (dispatch_block_t)  showCompletion

Definition at line 42 of file ScreenBeforeFlutter.m.

References _engine, and engine.

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 12 of file ScreenBeforeFlutter.h.

Referenced by showFlutter:.


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