Enum FlutterRenderer.DisplayFeatureState

All Implemented Interfaces:
Serializable, Comparable<FlutterRenderer.DisplayFeatureState>, java.lang.constant.Constable
Enclosing class:

public static enum FlutterRenderer.DisplayFeatureState extends Enum<FlutterRenderer.DisplayFeatureState>
State of the display feature.

For foldables, the state is the posture. For cutouts, this property is UNKNOWN

  • Enum Constant Details


      public static final FlutterRenderer.DisplayFeatureState UNKNOWN
      The display feature is a cutout or this state is new and not yet known to Flutter.

      public static final FlutterRenderer.DisplayFeatureState POSTURE_FLAT
      The foldable device is completely open. The screen space that is presented to the user is flat. Corresponds to FoldingFeature.State.FLAT

      public static final FlutterRenderer.DisplayFeatureState POSTURE_HALF_OPENED
      The foldable device's hinge is in an intermediate position between opened and closed state. There is a non-flat angle between parts of the flexible screen or between physical display panels. Corresponds to FoldingFeature.State.HALF_OPENED
  • Field Details

    • encodedValue

      public final int encodedValue
  • Method Details

    • values

      public static FlutterRenderer.DisplayFeatureState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FlutterRenderer.DisplayFeatureState 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null