public enum RenderMode extends Enum<RenderMode>
| Enum Constant and Description |
|---|
image
|
surface
RenderMode, which paints a Flutter UI to a SurfaceView. |
texture
RenderMode, which paints a Flutter UI to a SurfaceTexture. |
| Modifier and Type | Method and Description |
|---|---|
static RenderMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RenderMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RenderMode surface
RenderMode, which paints a Flutter UI to a SurfaceView. This mode
has the best performance, but a Flutter UI in this mode cannot be positioned between 2 other
Android Views in the z-index, nor can it be animated/transformed. Unless the special
capabilities of a SurfaceTexture are required, developers should
strongly prefer this render mode.public static final RenderMode texture
RenderMode, which paints a Flutter UI to a 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 Views. Unless the special capabilities of a SurfaceTexture are
required, developers should strongly prefer the surface render mode.public static final RenderMode image
RenderMode, which paints Paints a Flutter UI provided by an ImageReader onto a Canvas. This mode is not as
performant as surface, but a FlutterView in this mode can handle
full interactivity with a PlatformView. Unless PlatformViews are required developers should strongly prefer the
surface render mode.public static RenderMode[] values()
for (RenderMode c : RenderMode.values()) System.out.println(c);
public static RenderMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null