Enum FlutterRenderer.DisplayFeatureType
- java.lang.Object
-
- java.lang.Enum<FlutterRenderer.DisplayFeatureType>
-
- io.flutter.embedding.engine.renderer.FlutterRenderer.DisplayFeatureType
-
- All Implemented Interfaces:
Serializable,Comparable<FlutterRenderer.DisplayFeatureType>
- Enclosing class:
- FlutterRenderer
public static enum FlutterRenderer.DisplayFeatureType extends Enum<FlutterRenderer.DisplayFeatureType>
Types of display features that can appear on the viewport.Some, like
FOLD, can be reported without actually occluding the screen. They are useful for knowing where the display is bent or has a crease. TheFlutterRenderer.DisplayFeature.boundscan be 0-width in such cases.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUTOUTArea of the screen that usually houses cameras or sensors.FOLDA fold in the flexible display that does not occlude the screen.HINGESplits the display in two separate panels that can fold.UNKNOWNType of display feature not yet known to Flutter.
-
Field Summary
Fields Modifier and Type Field Description intencodedValue
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlutterRenderer.DisplayFeatureTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FlutterRenderer.DisplayFeatureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final FlutterRenderer.DisplayFeatureType UNKNOWN
Type of display feature not yet known to Flutter. This can happen if WindowManager is updated with new types. TheFlutterRenderer.DisplayFeature.boundsis the only known property.
-
FOLD
public static final FlutterRenderer.DisplayFeatureType FOLD
A fold in the flexible display that does not occlude the screen. Corresponds toFoldingFeature.OcclusionType.NONE
-
HINGE
public static final FlutterRenderer.DisplayFeatureType HINGE
Splits the display in two separate panels that can fold. Occludes the screen. Corresponds toFoldingFeature.OcclusionType.FULL
-
CUTOUT
public static final FlutterRenderer.DisplayFeatureType CUTOUT
Area of the screen that usually houses cameras or sensors. Occludes the screen. Corresponds toDisplayCutout
-
-
Method Detail
-
values
public static FlutterRenderer.DisplayFeatureType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FlutterRenderer.DisplayFeatureType c : FlutterRenderer.DisplayFeatureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FlutterRenderer.DisplayFeatureType 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.)- 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
-
-