Flutter Engine
The Flutter Engine
|
Classes | |
interface | ViewFactory |
Public Member Functions | |
FlutterActivityDelegate (Activity activity, ViewFactory viewFactory) | |
FlutterView | getFlutterView () |
boolean | hasPlugin (String key) |
Registrar | registrarFor (String pluginKey) |
boolean | onRequestPermissionsResult (int requestCode, String[] permissions, int[] grantResults) |
boolean | onActivityResult (int requestCode, int resultCode, Intent data) |
void | onCreate (Bundle savedInstanceState) |
void | onNewIntent (Intent intent) |
void | onPause () |
void | onStart () |
void | onResume () |
void | onStop () |
void | onPostResume () |
void | onDestroy () |
boolean | onBackPressed () |
void | onUserLeaveHint () |
void | onWindowFocusChanged (boolean hasFocus) |
void | onTrimMemory (int level) |
void | onLowMemory () |
void | onConfigurationChanged (Configuration newConfig) |
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) |
FlutterView | getFlutterView () |
Public Member Functions inherited from io.flutter.plugin.common.PluginRegistry | |
Registrar | registrarFor (@NonNull String pluginKey) |
boolean | hasPlugin (@NonNull String pluginKey) |
< T > T | valuePublishedByPlugin (@NonNull String pluginKey) |
Package Functions | |
public< T > T | valuePublishedByPlugin (String pluginKey) |
Deprecated class that performs the actual work of tying Android android.app.Activity
instances to Flutter.
This exists as a dedicated class (as opposed to being integrated directly into FlutterActivity
) to facilitate applications that don't wish to subclass FlutterActivity
. The most obvious example of when this may come in handy is if an application wishes to subclass the Android v4 support library's FragmentActivity
.
Usage:
To wire this class up to your activity, simply forward the events defined in FlutterActivityEvents
from your activity to an instance of this class. Optionally, you can make your activity implement PluginRegistry
and/or io.flutter.view.FlutterView.Provider
and forward those methods to this class as well.
io.flutter.embedding.android.FlutterActivity
is the new API that now replaces this class and io.flutter.app.FlutterActivity
. See https://flutter.dev/go/android-project-migration for more migration details. Definition at line 57 of file FlutterActivityDelegate.java.
|
inline |
Definition at line 97 of file FlutterActivityDelegate.java.
|
inline |
Returns a reference to the Flutter view maintained by this object. This may be null
.
Implements io.flutter.view.FlutterView.Provider.
Definition at line 103 of file FlutterActivityDelegate.java.
|
inline |
Definition at line 109 of file FlutterActivityDelegate.java.
|
inline |
Definition at line 133 of file FlutterActivityDelegate.java.
|
inline |
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. Implements io.flutter.app.FlutterActivityEvents.
Definition at line 247 of file FlutterActivityDelegate.java.
|
inline |
Definition at line 280 of file FlutterActivityDelegate.java.
|
inline |
savedInstanceState | If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in . |
Implements io.flutter.app.FlutterActivityEvents.
Definition at line 138 of file FlutterActivityDelegate.java.
|
inline |
Implements io.flutter.app.FlutterActivityEvents.
Definition at line 225 of file FlutterActivityDelegate.java.
|
inline |
Definition at line 275 of file FlutterActivityDelegate.java.
|
inline |
intent | The new intent that was started for the activity. |
Implements io.flutter.app.FlutterActivityEvents.
Definition at line 170 of file FlutterActivityDelegate.java.
|
inline |
Implements io.flutter.app.FlutterActivityEvents.
Definition at line 183 of file FlutterActivityDelegate.java.
|
inline |
Implements io.flutter.app.FlutterActivityEvents.
Definition at line 218 of file FlutterActivityDelegate.java.
|
inline |
Definition at line 125 of file FlutterActivityDelegate.java.
|
inline |
Implements io.flutter.app.FlutterActivityEvents.
Definition at line 204 of file FlutterActivityDelegate.java.
|
inline |
Implements io.flutter.app.FlutterActivityEvents.
Definition at line 197 of file FlutterActivityDelegate.java.
|
inline |
Implements io.flutter.app.FlutterActivityEvents.
Definition at line 213 of file FlutterActivityDelegate.java.
|
inline |
Definition at line 266 of file FlutterActivityDelegate.java.
|
inline |
Implements io.flutter.app.FlutterActivityEvents.
Definition at line 256 of file FlutterActivityDelegate.java.
|
inline |
hasFocus | True if the current activity window has focus. |
Implements io.flutter.app.FlutterActivityEvents.
Definition at line 261 of file FlutterActivityDelegate.java.
|
inline |
Definition at line 120 of file FlutterActivityDelegate.java.
|
inlinepackage |
Definition at line 115 of file FlutterActivityDelegate.java.