Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
io.flutter.embedding.engine.renderer.FlutterRenderer.DisplayFeatureType Enum Reference

Public Member Functions

 DisplayFeatureType (int encodedValue)
 

Public Attributes

 UNKNOWN =(0)
 
 FOLD =(1)
 
 HINGE =(2)
 
 CUTOUT =(3)
 
final int encodedValue
 

Detailed Description

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 DisplayFeature#bounds can be 0-width in such cases.

Definition at line 1306 of file FlutterRenderer.java.

Constructor & Destructor Documentation

◆ DisplayFeatureType()

io.flutter.embedding.engine.renderer.FlutterRenderer.DisplayFeatureType.DisplayFeatureType ( int  encodedValue)
inline

Definition at line 1333 of file FlutterRenderer.java.

Member Data Documentation

◆ CUTOUT

io.flutter.embedding.engine.renderer.FlutterRenderer.DisplayFeatureType.CUTOUT =(3)

Area of the screen that usually houses cameras or sensors. Occludes the screen. Corresponds to android.view.DisplayCutout

Definition at line 1329 of file FlutterRenderer.java.

◆ encodedValue

final int io.flutter.embedding.engine.renderer.FlutterRenderer.DisplayFeatureType.encodedValue

Definition at line 1331 of file FlutterRenderer.java.

◆ FOLD

io.flutter.embedding.engine.renderer.FlutterRenderer.DisplayFeatureType.FOLD =(1)

A fold in the flexible display that does not occlude the screen. Corresponds to androidx.window.layout.FoldingFeature.OcclusionType#NONE

Definition at line 1317 of file FlutterRenderer.java.

◆ HINGE

io.flutter.embedding.engine.renderer.FlutterRenderer.DisplayFeatureType.HINGE =(2)

Splits the display in two separate panels that can fold. Occludes the screen. Corresponds to androidx.window.layout.FoldingFeature.OcclusionType#FULL

Definition at line 1323 of file FlutterRenderer.java.

◆ UNKNOWN

io.flutter.embedding.engine.renderer.FlutterRenderer.DisplayFeatureType.UNKNOWN =(0)

Type of display feature not yet known to Flutter. This can happen if WindowManager is updated with new types. The DisplayFeature#bounds is the only known property.

Definition at line 1311 of file FlutterRenderer.java.


The documentation for this enum was generated from the following file: