Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
io.flutter.app.FlutterActivityEvents Interface Reference
Inheritance diagram for io.flutter.app.FlutterActivityEvents:
io.flutter.app.FlutterActivityDelegate

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)
 

Detailed Description

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.

Member Function Documentation

◆ onBackPressed()

boolean io.flutter.app.FlutterActivityEvents.onBackPressed ( )

Invoked when the activity has detected the user's press of the back key.

Returns
true if the listener handled the event; false to let the activity continue with its default back button handling.
See also
android.app.Activity::onBackPressed()

Implemented in io.flutter.app.FlutterActivityDelegate.

◆ onCreate()

void io.flutter.app.FlutterActivityEvents.onCreate ( Bundle  savedInstanceState)
Parameters
savedInstanceStateIf the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in
onSaveInstanceState(Bundle)
.
See also
android.app.Activity::onCreate(android.os.Bundle)

Implemented in io.flutter.app.FlutterActivityDelegate.

◆ onDestroy()

void io.flutter.app.FlutterActivityEvents.onDestroy ( )
See also
android.app.Activity::onDestroy()

Implemented in io.flutter.app.FlutterActivityDelegate.

◆ onNewIntent()

void io.flutter.app.FlutterActivityEvents.onNewIntent ( Intent  intent)
Parameters
intentThe new intent that was started for the activity.
See also
android.app.Activity::onNewIntent(Intent)

Implemented in io.flutter.app.FlutterActivityDelegate.

◆ onPause()

void io.flutter.app.FlutterActivityEvents.onPause ( )
See also
android.app.Activity::onPause()

Implemented in io.flutter.app.FlutterActivityDelegate.

◆ onPostResume()

void io.flutter.app.FlutterActivityEvents.onPostResume ( )
See also
android.app.Activity::onPostResume()

Implemented in io.flutter.app.FlutterActivityDelegate.

◆ onResume()

void io.flutter.app.FlutterActivityEvents.onResume ( )
See also
android.app.Activity::onResume()

Implemented in io.flutter.app.FlutterActivityDelegate.

◆ onStart()

void io.flutter.app.FlutterActivityEvents.onStart ( )
See also
android.app.Activity::onStart()

Implemented in io.flutter.app.FlutterActivityDelegate.

◆ onStop()

void io.flutter.app.FlutterActivityEvents.onStop ( )
See also
android.app.Activity::onStop()

Implemented in io.flutter.app.FlutterActivityDelegate.

◆ onUserLeaveHint()

void io.flutter.app.FlutterActivityEvents.onUserLeaveHint ( )
See also
android.app.Activity::onUserLeaveHint()

Implemented in io.flutter.app.FlutterActivityDelegate.

◆ onWindowFocusChanged()

void io.flutter.app.FlutterActivityEvents.onWindowFocusChanged ( boolean  hasFocus)
Parameters
hasFocusTrue if the current activity window has focus.
See also
android.app.Activity::onWindowFocusChanged(boolean)

Implemented in io.flutter.app.FlutterActivityDelegate.


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