@Deprecated public static enum FlutterView.RenderMode extends Enum<FlutterView.RenderMode>
FlutterView
.
Deprecated - please use RenderMode
instead.
Enum Constant and Description |
---|
image
Deprecated.
|
surface
Deprecated.
RenderMode , which paints a Flutter UI to a SurfaceView . |
texture
Deprecated.
RenderMode , which paints a Flutter UI to a SurfaceTexture . |
Modifier and Type | Method and Description |
---|---|
static FlutterView.RenderMode |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static FlutterView.RenderMode[] |
values()
Deprecated.
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 RenderMode.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 RenderMode.surface
render mode.public static final FlutterView.RenderMode image
RenderMode
, which paints Paints a Flutter UI provided by an ImageReader
onto a Canvas
. This mode is not as
performant as RenderMode.surface
, but a FlutterView
in this mode can handle
full interactivity with a PlatformView
. Unless PlatformView
s are required developers should strongly prefer the
RenderMode.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