Flutter Engine
The Flutter Engine
|
Classes | |
interface | FirstFrameListener |
interface | Provider |
class | SurfaceTextureRegistryEntry |
class | ViewportMetrics |
Public Member Functions | |
FlutterView (Context context) | |
FlutterView (Context context, AttributeSet attrs) | |
FlutterView (Context context, AttributeSet attrs, FlutterNativeView nativeView) | |
DartExecutor | getDartExecutor () |
boolean | dispatchKeyEvent (KeyEvent event) |
FlutterNativeView | getFlutterNativeView () |
FlutterPluginRegistry | getPluginRegistry () |
String | getLookupKeyForAsset (String asset) |
String | getLookupKeyForAsset (String asset, String packageName) |
void | addActivityLifecycleListener (ActivityLifecycleListener listener) |
void | onStart () |
void | onPause () |
void | onPostResume () |
void | onStop () |
void | onMemoryPressure () |
boolean | hasRenderedFirstFrame () |
void | addFirstFrameListener (FirstFrameListener listener) |
void | removeFirstFrameListener (FirstFrameListener listener) |
void | enableBufferingIncomingMessages () |
void | disableBufferingIncomingMessages () |
void | disableTransparentBackground () |
void | setInitialRoute (String route) |
void | pushRoute (String route) |
void | popRoute () |
void | startBackGesture (@NonNull BackEvent backEvent) |
void | updateBackGestureProgress (@NonNull BackEvent backEvent) |
void | commitBackGesture () |
void | cancelBackGesture () |
FlutterNativeView | detach () |
void | destroy () |
InputConnection | onCreateInputConnection (EditorInfo outAttrs) |
boolean | checkInputConnectionProxy (View view) |
void | onProvideAutofillVirtualStructure (ViewStructure structure, int flags) |
void | autofill (SparseArray< AutofillValue > values) |
boolean | onTouchEvent (MotionEvent event) |
boolean | onHoverEvent (MotionEvent event) |
boolean | onGenericMotionEvent (MotionEvent event) |
final WindowInsets | onApplyWindowInsets (WindowInsets insets) |
void | runFromBundle (FlutterRunArguments args) |
Bitmap | getBitmap () |
void | onFirstFrame () |
AccessibilityNodeProvider | getAccessibilityNodeProvider () |
PointerIcon | getSystemPointerIcon (int type) |
BinaryMessenger | getBinaryMessenger () |
boolean | onTextInputKeyEvent (@NonNull KeyEvent keyEvent) |
void | redispatch (@NonNull KeyEvent keyEvent) |
TaskQueue | makeBackgroundTaskQueue (TaskQueueOptions options) |
void | send (String channel, ByteBuffer message) |
void | send (String channel, ByteBuffer message, BinaryReply callback) |
void | setMessageHandler (@NonNull String channel, @NonNull BinaryMessageHandler handler) |
void | setMessageHandler ( @NonNull String channel, @NonNull BinaryMessageHandler handler, @NonNull TaskQueue taskQueue) |
TextureRegistry.SurfaceTextureEntry | createSurfaceTexture () |
ImageTextureEntry | createImageTexture () |
SurfaceProducer | createSurfaceProducer () |
TextureRegistry.SurfaceTextureEntry | registerSurfaceTexture ( @NonNull SurfaceTexture surfaceTexture) |
Public Member Functions inherited from io.flutter.view.TextureRegistry | |
default void | onTrimMemory (int level) |
Protected Member Functions | |
void | onConfigurationChanged (Configuration newConfig) |
void | onSizeChanged (int width, int height, int oldWidth, int oldHeight) |
void | onAttachedToWindow () |
void | onDetachedFromWindow () |
Package Functions | |
float | getDevicePixelRatio () |
void | assertAttached () |
void | resetAccessibilityTree () |
Deprecated Android view containing a Flutter app.
io.flutter.embedding.android.FlutterView
is the new API that now replaces this class. See https://flutter.dev/go/android-project-migration for more migration details. Definition at line 82 of file FlutterView.java.
|
inline |
Definition at line 160 of file FlutterView.java.
|
inline |
Definition at line 164 of file FlutterView.java.
|
inline |
Definition at line 168 of file FlutterView.java.
|
inline |
Definition at line 301 of file FlutterView.java.
|
inline |
Provide a listener that will be called once when the FlutterView renders its first frame to the underlaying SurfaceView.
Definition at line 341 of file FlutterView.java.
|
inlinepackage |
Definition at line 694 of file FlutterView.java.
|
inline |
Definition at line 469 of file FlutterView.java.
|
inline |
Definition at line 396 of file FlutterView.java.
|
inline |
Definition at line 455 of file FlutterView.java.
|
inline |
Definition at line 390 of file FlutterView.java.
|
inline |
Creates and registers a texture managed by the Flutter engine.
Implements io.flutter.view.TextureRegistry.
Definition at line 901 of file FlutterView.java.
|
inline |
Creates and registers a SurfaceProducer texture managed by the Flutter engine.
Implements io.flutter.view.TextureRegistry.
Definition at line 906 of file FlutterView.java.
|
inline |
Creates and registers a SurfaceTexture managed by the Flutter engine.
Implements io.flutter.view.TextureRegistry.
Definition at line 894 of file FlutterView.java.
|
inline |
Definition at line 439 of file FlutterView.java.
|
inline |
Definition at line 429 of file FlutterView.java.
|
inline |
Definition at line 354 of file FlutterView.java.
|
inline |
Reverts this back to the SurfaceView
defaults, at the back of its window and opaque.
Definition at line 359 of file FlutterView.java.
|
inline |
Definition at line 269 of file FlutterView.java.
|
inline |
Definition at line 351 of file FlutterView.java.
|
inline |
Definition at line 801 of file FlutterView.java.
|
inline |
Definition at line 834 of file FlutterView.java.
|
inline |
Return the most recent frame as a bitmap.
Definition at line 722 of file FlutterView.java.
|
inline |
Definition at line 264 of file FlutterView.java.
|
inlinepackage |
Definition at line 425 of file FlutterView.java.
|
inline |
Definition at line 285 of file FlutterView.java.
|
inline |
Definition at line 293 of file FlutterView.java.
|
inline |
Definition at line 297 of file FlutterView.java.
|
inline |
Definition at line 289 of file FlutterView.java.
|
inline |
Definition at line 825 of file FlutterView.java.
|
inline |
Returns true if the Flutter experience associated with this FlutterView
has rendered its first frame, or false otherwise.
Definition at line 333 of file FlutterView.java.
|
inline |
Definition at line 852 of file FlutterView.java.
|
inline |
Definition at line 591 of file FlutterView.java.
|
inlineprotected |
Definition at line 765 of file FlutterView.java.
|
inlineprotected |
Definition at line 419 of file FlutterView.java.
|
inline |
Definition at line 450 of file FlutterView.java.
|
inlineprotected |
Definition at line 785 of file FlutterView.java.
|
inline |
Definition at line 754 of file FlutterView.java.
|
inline |
Invoked by Android when a generic motion event occurs, e.g., joystick movement, mouse hover, track pad touches, scroll wheel movements, etc.
Flutter handles all of its own gesture detection and processing, therefore this method forwards all MotionEvent
data from Android to Flutter.
Definition at line 506 of file FlutterView.java.
|
inline |
Definition at line 485 of file FlutterView.java.
|
inline |
Definition at line 324 of file FlutterView.java.
|
inline |
Definition at line 309 of file FlutterView.java.
|
inline |
Definition at line 313 of file FlutterView.java.
|
inline |
Definition at line 463 of file FlutterView.java.
|
inline |
Definition at line 305 of file FlutterView.java.
|
inline |
Definition at line 320 of file FlutterView.java.
|
inline |
Definition at line 839 of file FlutterView.java.
|
inline |
Definition at line 474 of file FlutterView.java.
|
inline |
Definition at line 372 of file FlutterView.java.
|
inline |
Definition at line 368 of file FlutterView.java.
|
inline |
Definition at line 844 of file FlutterView.java.
|
inline |
Registers a SurfaceTexture managed by the Flutter engine.
Implements io.flutter.view.TextureRegistry.
Definition at line 913 of file FlutterView.java.
|
inline |
Remove an existing first frame listener.
Definition at line 346 of file FlutterView.java.
|
inlinepackage |
Definition at line 702 of file FlutterView.java.
|
inline |
Definition at line 710 of file FlutterView.java.
|
inline |
Definition at line 858 of file FlutterView.java.
|
inline |
Definition at line 864 of file FlutterView.java.
|
inline |
Definition at line 364 of file FlutterView.java.
|
inline |
Definition at line 880 of file FlutterView.java.
|
inline |
Definition at line 874 of file FlutterView.java.
|
inline |
Definition at line 378 of file FlutterView.java.
|
inline |
Definition at line 384 of file FlutterView.java.