Package io.flutter.embedding.android
Enum RenderMode
- java.lang.Object
-
- java.lang.Enum<RenderMode>
-
- io.flutter.embedding.android.RenderMode
-
- All Implemented Interfaces:
Serializable
,Comparable<RenderMode>
public enum RenderMode extends Enum<RenderMode>
Render modes for a Flutter UI.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description image
surface
RenderMode
, which paints a Flutter UI to aSurfaceView
.texture
RenderMode
, which paints a Flutter UI to aSurfaceTexture
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
surface
public static final RenderMode surface
RenderMode
, which paints a Flutter UI to aSurfaceView
. This mode has the best performance, but a Flutter UI in this mode cannot be positioned between 2 other AndroidView
s in the z-index, nor can it be animated/transformed. Unless the special capabilities of aSurfaceTexture
are required, developers should strongly prefer this render mode.
-
texture
public static final RenderMode texture
RenderMode
, which paints a Flutter UI to aSurfaceTexture
. This mode is not as performant assurface
, but a Flutter UI in this mode can be animated and transformed, as well as positioned in the z-index between 2+ other AndroidViews
. Unless the special capabilities of aSurfaceTexture
are required, developers should strongly prefer thesurface
render mode.
-
image
public static final RenderMode image
RenderMode
, which paints Paints a Flutter UI provided by anImageReader
onto aCanvas
. This mode is not as performant assurface
, but aFlutterView
in this mode can handle full interactivity with aPlatformView
. UnlessPlatformView
s are required developers should strongly prefer thesurface
render mode.
-
-
Method Detail
-
values
public static RenderMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RenderMode c : RenderMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RenderMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-