public interface FlutterActivityEvents extends ComponentCallbacks2, PluginRegistry.ActivityResultListener, PluginRegistry.RequestPermissionsResultListener
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
.
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
Modifier and Type | Method and Description |
---|---|
boolean |
onBackPressed()
Invoked when the activity has detected the user's press of the back key.
|
void |
onCreate(Bundle savedInstanceState) |
void |
onDestroy() |
void |
onNewIntent(Intent intent) |
void |
onPause() |
void |
onPostResume() |
void |
onResume() |
void |
onStart() |
void |
onStop() |
void |
onUserLeaveHint() |
onTrimMemory
onConfigurationChanged, onLowMemory
onActivityResult
onRequestPermissionsResult
void onCreate(Bundle savedInstanceState)
Activity.onCreate(android.os.Bundle)
void onNewIntent(Intent intent)
Activity.onNewIntent(Intent)
void onPause()
Activity.onPause()
void onStart()
Activity.onStart()
void onResume()
Activity.onResume()
void onPostResume()
Activity.onPostResume()
void onDestroy()
Activity.onDestroy()
void onStop()
Activity.onStop()
boolean onBackPressed()
true
if the listener handled the event; false
to let the activity continue with its default back button handling.Activity.onBackPressed()
void onUserLeaveHint()
Activity.onUserLeaveHint()