Flutter Engine
The Flutter Engine
|
Classes | |
enum | SurfaceKind |
Public Member Functions | |
ImageReader | getImageReader () |
FlutterImageView (@NonNull Context context, int width, int height, SurfaceKind kind) | |
FlutterImageView (@NonNull Context context) | |
FlutterImageView (@NonNull Context context, @NonNull AttributeSet attrs) | |
Surface | getSurface () |
FlutterRenderer | getAttachedRenderer () |
void | attachToRenderer (@NonNull FlutterRenderer flutterRenderer) |
void | detachFromRenderer () |
void | pause () |
void | resume () |
boolean | acquireLatestImage () |
void | resizeIfNeeded (int width, int height) |
void | closeImageReader () |
FlutterRenderer | getAttachedRenderer () |
void | attachToRenderer (@NonNull FlutterRenderer renderer) |
void | detachFromRenderer () |
void | pause () |
void | resume () |
Protected Member Functions | |
void | onDraw (Canvas canvas) |
void | onSizeChanged (int width, int height, int oldWidth, int oldHeight) |
Package Functions | |
FlutterImageView ( @NonNull Context context, @NonNull ImageReader imageReader, SurfaceKind kind) | |
Paints a Flutter UI provided by an android.media.ImageReader
onto a android.graphics.Canvas
.
A FlutterImageView
is intended for situations where a developer needs to render a Flutter UI, but also needs to render an interactive io.flutter.plugin.platform.PlatformView
.
This View
takes an android.media.ImageReader
that provides the Flutter UI in an android.media.Image
and renders it to the android.graphics.Canvas
in
.
onDraw
Definition at line 44 of file FlutterImageView.java.
|
inline |
Constructs a FlutterImageView
with an android.media.ImageReader
that provides the Flutter UI.
Definition at line 74 of file FlutterImageView.java.
|
inline |
Definition at line 78 of file FlutterImageView.java.
|
inline |
Definition at line 82 of file FlutterImageView.java.
|
inlinepackage |
Definition at line 87 of file FlutterImageView.java.
|
inline |
Acquires the next image to be drawn to the android.graphics.Canvas
. Returns true if there's an image available in the queue.
Definition at line 190 of file FlutterImageView.java.
|
inline |
Invoked by the owner of this FlutterImageView
when it wants to begin rendering a Flutter UI to this FlutterImageView
.
Implements io.flutter.embedding.engine.renderer.RenderSurface.
Definition at line 142 of file FlutterImageView.java.
|
inline |
Closes the image reader associated with the current FlutterImageView
.
Once the image reader is closed, calling acquireLatestImage
will result in an
.
IllegalStateException
Definition at line 233 of file FlutterImageView.java.
|
inline |
Invoked by the owner of this FlutterImageView
when it no longer wants to render a Flutter UI to this FlutterImageView
.
Implements io.flutter.embedding.engine.renderer.RenderSurface.
Definition at line 161 of file FlutterImageView.java.
|
inline |
Returns the FlutterRenderer
that is attached to this RenderSurface
, or null if no FlutterRenderer
is currently attached.
Implements io.flutter.embedding.engine.renderer.RenderSurface.
Definition at line 133 of file FlutterImageView.java.
|
inline |
Definition at line 52 of file FlutterImageView.java.
|
inline |
Definition at line 127 of file FlutterImageView.java.
|
inlineprotected |
Definition at line 238 of file FlutterImageView.java.
|
inlineprotected |
Definition at line 286 of file FlutterImageView.java.
|
inline |
Instructs this RenderSurface
to stop forwarding Surface
notifications to the FlutterRenderer
that was previously connected with attachToRenderer(FlutterRenderer)
.
Implements io.flutter.embedding.engine.renderer.RenderSurface.
Definition at line 178 of file FlutterImageView.java.
Creates a new image reader with the provided size.
Definition at line 211 of file FlutterImageView.java.
|
inline |
Instructs this RenderSurface
to resume forwarding Surface
notifications to the FlutterRenderer
that was previously connected with attachToRenderer(FlutterRenderer)
.
Implements io.flutter.embedding.engine.renderer.RenderSurface.
Definition at line 182 of file FlutterImageView.java.