Flutter Engine
The Flutter Engine
Classes | Public Member Functions | List of all members
io.flutter.FlutterInjector.Builder Class Reference

Public Member Functions

Builder setFlutterLoader (@NonNull FlutterLoader flutterLoader)
 
Builder setDeferredComponentManager ( @Nullable DeferredComponentManager deferredComponentManager)
 
Builder setFlutterJNIFactory (@NonNull FlutterJNI.Factory factory)
 
Builder setExecutorService (@NonNull ExecutorService executorService)
 
FlutterInjector build ()
 

Detailed Description

Builder used to supply a custom FlutterInjector instance to FlutterInjector#setInstance(FlutterInjector).

Non-overridden values have reasonable defaults.

Definition at line 118 of file FlutterInjector.java.

Member Function Documentation

◆ build()

FlutterInjector io.flutter.FlutterInjector.Builder.build ( )
inline

Builds a FlutterInjector from the builder. Unspecified properties will have reasonable defaults.

Definition at line 178 of file FlutterInjector.java.

178 {
179 fillDefaults();
180
181 return new FlutterInjector(
182 flutterLoader, deferredComponentManager, flutterJniFactory, executorService);
183 }

◆ setDeferredComponentManager()

Builder io.flutter.FlutterInjector.Builder.setDeferredComponentManager ( @Nullable DeferredComponentManager  deferredComponentManager)
inline

Definition at line 143 of file FlutterInjector.java.

144 {
145 this.deferredComponentManager = deferredComponentManager;
146 return this;
147 }

◆ setExecutorService()

Builder io.flutter.FlutterInjector.Builder.setExecutorService ( @NonNull ExecutorService  executorService)
inline

Definition at line 154 of file FlutterInjector.java.

154 {
155 this.executorService = executorService;
156 return this;
157 }

◆ setFlutterJNIFactory()

Builder io.flutter.FlutterInjector.Builder.setFlutterJNIFactory ( @NonNull FlutterJNI.Factory  factory)
inline

Definition at line 149 of file FlutterInjector.java.

149 {
150 this.flutterJniFactory = factory;
151 return this;
152 }

◆ setFlutterLoader()

Builder io.flutter.FlutterInjector.Builder.setFlutterLoader ( @NonNull FlutterLoader  flutterLoader)
inline

Sets a io.flutter.embedding.engine.loader.FlutterLoader override.

A reasonable default will be used if unspecified.

Definition at line 138 of file FlutterInjector.java.

138 {
139 this.flutterLoader = flutterLoader;
140 return this;
141 }

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