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 ConstantsEnum ConstantDescriptionRenderMode, which paints a Flutter UI to aSurfaceView.RenderMode, which paints a Flutter UI to aSurfaceTexture. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderModeReturns 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 AndroidViews in the z-index, nor can it be animated/transformed. Unless the special capabilities of aSurfaceTextureare 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 aSurfaceTextureare required, developers should strongly prefer thesurfacerender mode. -
image
RenderMode, which paints Paints a Flutter UI provided by anImageReaderonto aCanvas. This mode is not as performant assurface, but aFlutterViewin this mode can handle full interactivity with aPlatformView. UnlessPlatformViews are required developers should strongly prefer thesurfacerender 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
-