Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | Package Attributes | List of all members
io.flutter.embedding.android.FlutterFragmentActivityTest.FlutterFragmentActivityWithProvidedEngine Class Reference
Inheritance diagram for io.flutter.embedding.android.FlutterFragmentActivityTest.FlutterFragmentActivityWithProvidedEngine:
io.flutter.embedding.android.FlutterFragmentActivity io.flutter.embedding.android.FlutterEngineProvider io.flutter.embedding.android.FlutterEngineConfigurator

Public Member Functions

FlutterEngine provideFlutterEngine (@NonNull Context context)
 
- Public Member Functions inherited from io.flutter.embedding.android.FlutterFragmentActivity
void onPostResume ()
 
void onRequestPermissionsResult (int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
 
void onUserLeaveHint ()
 
void onTrimMemory (int level)
 
boolean shouldDestroyEngineWithHost ()
 
FlutterEngine provideFlutterEngine (@NonNull Context context)
 
void configureFlutterEngine (@NonNull FlutterEngine flutterEngine)
 
void cleanUpFlutterEngine (@NonNull FlutterEngine flutterEngine)
 
String getDartEntrypointFunctionName ()
 
List< String > getDartEntrypointArgs ()
 
String getDartEntrypointLibraryUri ()
 
FlutterEngine provideFlutterEngine (@NonNull Context context)
 
void configureFlutterEngine (@NonNull FlutterEngine flutterEngine)
 
void cleanUpFlutterEngine (@NonNull FlutterEngine flutterEngine)
 

Protected Member Functions

FlutterFragment createFlutterFragment ()
 
- Protected Member Functions inherited from io.flutter.embedding.android.FlutterFragmentActivity
void onCreate (@Nullable Bundle savedInstanceState)
 
FlutterFragment createFlutterFragment ()
 
void onNewIntent (@NonNull Intent intent)
 
void onActivityResult (int requestCode, int resultCode, Intent data)
 
FlutterEngine getFlutterEngine ()
 
boolean shouldAttachEngineToActivity ()
 
boolean shouldHandleDeeplinking ()
 
String getAppBundlePath ()
 
Bundle getMetaData () throws PackageManager.NameNotFoundException
 
String getInitialRoute ()
 
String getCachedEngineId ()
 
String getCachedEngineGroupId ()
 
BackgroundMode getBackgroundMode ()
 
RenderMode getRenderMode ()
 
FrameLayout provideRootLayout (Context context)
 

Package Attributes

int numberOfEnginesCreated = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from io.flutter.embedding.android.FlutterFragmentActivity
static Intent createDefaultIntent (@NonNull Context launchContext)
 
static NewEngineIntentBuilder withNewEngine ()
 
static CachedEngineIntentBuilder withCachedEngine (@NonNull String cachedEngineId)
 
static NewEngineInGroupIntentBuilder withNewEngineInGroup (@NonNull String engineGroupId)
 
- Static Public Attributes inherited from io.flutter.embedding.android.FlutterFragmentActivity
static final int FRAGMENT_CONTAINER_ID = View.generateViewId()
 
- Package Functions inherited from io.flutter.embedding.android.FlutterFragmentActivity
FlutterFragment retrieveExistingFlutterFragmentIfPossible ()
 

Detailed Description

Definition at line 253 of file FlutterFragmentActivityTest.java.

Member Function Documentation

◆ createFlutterFragment()

FlutterFragment io.flutter.embedding.android.FlutterFragmentActivityTest.FlutterFragmentActivityWithProvidedEngine.createFlutterFragment ( )
inlineprotected

Creates the instance of the FlutterFragment that this FlutterFragmentActivity displays.

Subclasses may override this method to return a specialization of FlutterFragment.

Reimplemented from io.flutter.embedding.android.FlutterFragmentActivity.

Definition at line 257 of file FlutterFragmentActivityTest.java.

257 {
258 return FlutterFragment.createDefault();
259 }

◆ provideFlutterEngine()

FlutterEngine io.flutter.embedding.android.FlutterFragmentActivityTest.FlutterFragmentActivityWithProvidedEngine.provideFlutterEngine ( @NonNull Context  context)
inline

Hook for subclasses to easily provide a custom FlutterEngine.

Reimplemented from io.flutter.embedding.android.FlutterFragmentActivity.

Definition at line 263 of file FlutterFragmentActivityTest.java.

263 {
264 FlutterJNI flutterJNI = mock(FlutterJNI.class);
265 FlutterLoader flutterLoader = mock(FlutterLoader.class);
266 when(flutterJNI.isAttached()).thenReturn(true);
267 when(flutterLoader.automaticallyRegisterPlugins()).thenReturn(true);
268
270 return new FlutterEngine(context, flutterLoader, flutterJNI, new String[] {}, true);
271 }

Member Data Documentation

◆ numberOfEnginesCreated

int io.flutter.embedding.android.FlutterFragmentActivityTest.FlutterFragmentActivityWithProvidedEngine.numberOfEnginesCreated = 0
package

Definition at line 254 of file FlutterFragmentActivityTest.java.


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