Flutter Engine
The Flutter Engine
|
Public Member Functions | |
FlutterView | createFlutterView (Context context) |
FlutterNativeView | createFlutterNativeView () |
boolean | retainFlutterNativeView () |
Specifies the mechanism by which Flutter views are created during the operation of a
.
FlutterActivityDelegate
A delegate's view factory will be consulted during onCreate(Bundle)
. If it returns null
, then the delegate will fall back to instantiating a new full-screen
.
FlutterView
A delegate's native view factory will be consulted during onCreate(Bundle)
. If it returns null
, then the delegate will fall back to instantiating a new
. This is useful for applications to override to reuse the FlutterNativeView held e.g. by a pre-existing background service.
FlutterNativeView
Definition at line 78 of file FlutterActivityDelegate.java.
FlutterNativeView io.flutter.app.FlutterActivityDelegate.ViewFactory.createFlutterNativeView | ( | ) |
Implemented in io.flutter.app.FlutterActivity, and io.flutter.app.FlutterFragmentActivity.
FlutterView io.flutter.app.FlutterActivityDelegate.ViewFactory.createFlutterView | ( | Context | context | ) |
Implemented in io.flutter.app.FlutterActivity, and io.flutter.app.FlutterFragmentActivity.
boolean io.flutter.app.FlutterActivityDelegate.ViewFactory.retainFlutterNativeView | ( | ) |
Hook for subclasses to indicate that the FlutterNativeView
returned by createFlutterNativeView()
should not be destroyed when this activity is destroyed.
Implemented in io.flutter.app.FlutterActivity, and io.flutter.app.FlutterFragmentActivity.