Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.app.FlutterApplication Class Reference
Inheritance diagram for io.flutter.app.FlutterApplication:

Public Member Functions

void onCreate ()
 
Activity getCurrentActivity ()
 
void setCurrentActivity (Activity mCurrentActivity)
 

Detailed Description

Flutter implementation of android.app.Application, managing application-level global initializations.

Using this android.app.Application is not required when using APIs in the package io.flutter.embedding.android since they self-initialize on first use.

Definition at line 19 of file FlutterApplication.java.

Member Function Documentation

◆ getCurrentActivity()

Activity io.flutter.app.FlutterApplication.getCurrentActivity ( )
inline

Definition at line 29 of file FlutterApplication.java.

29 {
30 return mCurrentActivity;
31 }

◆ onCreate()

void io.flutter.app.FlutterApplication.onCreate ( )
inline

Definition at line 22 of file FlutterApplication.java.

22 {
23 super.onCreate();
24 FlutterInjector.instance().flutterLoader().startInitialization(this);
25 }

◆ setCurrentActivity()

void io.flutter.app.FlutterApplication.setCurrentActivity ( Activity  mCurrentActivity)
inline

Definition at line 33 of file FlutterApplication.java.

33 {
34 this.mCurrentActivity = mCurrentActivity;
35 }

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