Enum TransparencyMode
- All Implemented Interfaces:
Serializable
,Comparable<TransparencyMode>
,java.lang.constant.Constable
TransparencyMode
impacts the visual behavior and performance of a FlutterSurfaceView
, which is displayed when a Flutter UI uses RenderMode.surface
.
TransparencyMode
does not impact FlutterTextureView
, which is displayed when a
Flutter UI uses RenderMode.texture
, because a FlutterTextureView
automatically
comes with transparency.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRenders a Flutter UI without any transparency.Renders a Flutter UI with transparency. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransparencyMode
Returns the enum constant of this type with the specified name.static TransparencyMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
opaque
Renders a Flutter UI without any transparency. This affects Flutter UI's withRenderMode.surface
by introducing a base color of black, and places theFlutterSurfaceView
'sWindow
behind all other content.In
RenderMode.surface
, this mode is the most performant and is a good choice for fullscreen Flutter UIs that will not undergoFragment
transactions. If this mode is used within aFragment
, and thatFragment
is replaced by another one, a brief black flicker may be visible during the switch. -
transparent
Renders a Flutter UI with transparency. This affects Flutter UI's inRenderMode.surface
by allowing background transparency, and places theFlutterSurfaceView
'sWindow
on top of all other content.In
RenderMode.surface
, this mode is less performant thanopaque
, but this mode avoids the black flicker problem thatopaque
has when going throughFragment
transactions. Consider using thisTransparencyMode
if you intend to switchFragment
s at runtime that contain a Flutter UI.
-
-
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
-