Flutter Engine
The Flutter Engine
|
Public Member Functions | |
void | onCreate (Bundle savedInstanceState) |
void | onNewIntent (Intent intent) |
void | onPause () |
void | onStart () |
void | onResume () |
void | onPostResume () |
void | onDestroy () |
void | onStop () |
boolean | onBackPressed () |
void | onUserLeaveHint () |
void | onWindowFocusChanged (boolean hasFocus) |
Public Member Functions inherited from io.flutter.plugin.common.PluginRegistry.ActivityResultListener | |
boolean | onActivityResult (int requestCode, int resultCode, @Nullable Intent data) |
Public Member Functions inherited from io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener | |
boolean | onRequestPermissionsResult (int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) |
A collection of Android Activity
methods that are relevant to the core operation of Flutter applications.
Application authors that use an activity other than FlutterActivity
should forward all events herein from their activity to an instance of FlutterActivityDelegate
in order to wire the activity up to the Flutter framework. This forwarding is already provided in
.
FlutterActivity
Definition at line 22 of file FlutterActivityEvents.java.
boolean io.flutter.app.FlutterActivityEvents.onBackPressed | ( | ) |
Invoked when the activity has detected the user's press of the back key.
true
if the listener handled the event; false
to let the activity continue with its default back button handling. Implemented in io.flutter.app.FlutterActivityDelegate.
void io.flutter.app.FlutterActivityEvents.onCreate | ( | Bundle | savedInstanceState | ) |
savedInstanceState | If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in . |
Implemented in io.flutter.app.FlutterActivityDelegate.
void io.flutter.app.FlutterActivityEvents.onDestroy | ( | ) |
Implemented in io.flutter.app.FlutterActivityDelegate.
void io.flutter.app.FlutterActivityEvents.onNewIntent | ( | Intent | intent | ) |
intent | The new intent that was started for the activity. |
Implemented in io.flutter.app.FlutterActivityDelegate.
void io.flutter.app.FlutterActivityEvents.onPause | ( | ) |
Implemented in io.flutter.app.FlutterActivityDelegate.
void io.flutter.app.FlutterActivityEvents.onPostResume | ( | ) |
Implemented in io.flutter.app.FlutterActivityDelegate.
void io.flutter.app.FlutterActivityEvents.onResume | ( | ) |
Implemented in io.flutter.app.FlutterActivityDelegate.
void io.flutter.app.FlutterActivityEvents.onStart | ( | ) |
Implemented in io.flutter.app.FlutterActivityDelegate.
void io.flutter.app.FlutterActivityEvents.onStop | ( | ) |
Implemented in io.flutter.app.FlutterActivityDelegate.
void io.flutter.app.FlutterActivityEvents.onUserLeaveHint | ( | ) |
Implemented in io.flutter.app.FlutterActivityDelegate.
void io.flutter.app.FlutterActivityEvents.onWindowFocusChanged | ( | boolean | hasFocus | ) |
hasFocus | True if the current activity window has focus. |
Implemented in io.flutter.app.FlutterActivityDelegate.