public static enum FlutterView.RenderMode extends Enum<FlutterView.RenderMode>
FlutterView
.Enum Constant and Description |
---|
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 FlutterView.RenderMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FlutterView.RenderMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlutterView.RenderMode surface
RenderMode
, which paints a Flutter UI to a SurfaceView
.
This mode has the best performance, but a FlutterView
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 SurfaceTexture
are required,
developers should strongly prefer this render mode.public static final FlutterView.RenderMode texture
RenderMode
, which paints a Flutter UI to a SurfaceTexture
.
This mode is not as performant as surface
, but a FlutterView
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 FlutterView.RenderMode[] values()
for (FlutterView.RenderMode c : FlutterView.RenderMode.values()) System.out.println(c);
public static FlutterView.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