Package io.flutter.embedding.android
Enum RenderMode
- All Implemented Interfaces:
Serializable
,Comparable<RenderMode>
,java.lang.constant.Constable
Render modes for a Flutter UI.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRenderMode
, which paints a Flutter UI to aSurfaceView
.RenderMode
, which paints a Flutter UI to aSurfaceTexture
. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderMode
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 Details
-
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
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
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 Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-