public enum TransparencyMode extends Enum<TransparencyMode>
|Enum Constant and Description|
Renders a Flutter UI without any transparency.
Renders a Flutter UI with transparency.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final TransparencyMode opaque
RenderMode.surfaceby introducing a base color of black, and places the
Windowbehind all other content.
RenderMode.surface, this mode is the most performant and is a good choice for
fullscreen Flutter UIs that will not undergo
Fragment transactions. If this mode is
used within a
Fragment, and that
Fragment is replaced by another one, a brief
black flicker may be visible during the switch.
public static final TransparencyMode transparent
RenderMode.surfaceby allowing background transparency, and places the
Windowon top of all other content.
RenderMode.surface, this mode is less performant than
opaque, but this
mode avoids the black flicker problem that
opaque has when going through
Fragment transactions. Consider using this
TransparencyMode if you intend to switch
Fragments at runtime that contain a Flutter UI.
public static TransparencyMode values()
for (TransparencyMode c : TransparencyMode.values()) System.out.println(c);
public static TransparencyMode valueOf(String name)