Flutter Engine
The Flutter Engine
|
Public Attributes | |
surface | |
texture | |
image | |
Render modes for a Flutter UI.
Definition at line 8 of file RenderMode.java.
io.flutter.embedding.android.RenderMode.image |
RenderMode
, which paints Paints a Flutter UI provided by an android.media.ImageReader
onto a android.graphics.Canvas
. This mode is not as performant as RenderMode#surface
, but a FlutterView
in this mode can handle full interactivity with a io.flutter.plugin.platform.PlatformView
. Unless io.flutter.plugin.platform.PlatformView
s are required developers should strongly prefer the RenderMode#surface
render mode.
Definition at line 34 of file RenderMode.java.
io.flutter.embedding.android.RenderMode.surface |
RenderMode
, which paints a Flutter UI to a android.view.SurfaceView
. This mode has the best performance, but a Flutter UI in this mode cannot be positioned between 2 other Android View
s in the z-index, nor can it be animated/transformed. Unless the special capabilities of a android.graphics.SurfaceTexture
are required, developers should strongly prefer this render mode.
Definition at line 16 of file RenderMode.java.
io.flutter.embedding.android.RenderMode.texture |
RenderMode
, which paints a Flutter UI to a android.graphics.SurfaceTexture
. This mode is not as performant as surface
, but a Flutter UI in this mode can be animated and transformed, as well as positioned in the z-index between 2+ other Android
. Unless the special capabilities of a
Viewsandroid.graphics.SurfaceTexture
are required, developers should strongly prefer the surface
render mode.
Definition at line 24 of file RenderMode.java.