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>
,java.lang.constant.Constable
- 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. The FlutterRenderer.DisplayFeature.bounds
can be 0-width in such cases.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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 Details
-
UNKNOWN
Type of display feature not yet known to Flutter. This can happen if WindowManager is updated with new types. TheFlutterRenderer.DisplayFeature.bounds
is the only known property. -
FOLD
A fold in the flexible display that does not occlude the screen. Corresponds toFoldingFeature.OcclusionType.NONE
-
HINGE
Splits the display in two separate panels that can fold. Occludes the screen. Corresponds toFoldingFeature.OcclusionType.FULL
-
CUTOUT
Area of the screen that usually houses cameras or sensors. Occludes the screen. Corresponds toDisplayCutout
-
-
Field Details
-
encodedValue
public final int encodedValue
-
-
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
-