ExtensionDisplayFeature
public
class
ExtensionDisplayFeature
extends Object
| java.lang.Object | |
| ↳ | androidx.window.extensions.ExtensionDisplayFeature |
Description of a physical feature on the display.
Summary
Constants | |
|---|---|
int |
TYPE_FOLD
A fold in the flexible screen without a physical gap. |
int |
TYPE_HINGE
A physical separation with a hinge that allows two display panels to fold. |
Public constructors | |
|---|---|
ExtensionDisplayFeature(Rect bounds, int type)
|
|
Public methods | |
|---|---|
boolean
|
equals(Object obj)
|
Rect
|
getBounds()
Get the bounding rect of the display feature in window coordinate space. |
int
|
getType()
Get the type of the display feature. |
int
|
hashCode()
|
Inherited methods | |
|---|---|
Constants
TYPE_FOLD
public static final int TYPE_FOLD
A fold in the flexible screen without a physical gap.
Constant Value: 1 (0x00000001)
TYPE_HINGE
public static final int TYPE_HINGE
A physical separation with a hinge that allows two display panels to fold.
Constant Value: 2 (0x00000002)
Public constructors
ExtensionDisplayFeature
public ExtensionDisplayFeature (Rect bounds, int type)
| Parameters | |
|---|---|
bounds |
Rect |
type |
int |
Public methods
equals
public boolean equals (Object obj)
| Parameters | |
|---|---|
obj |
Object |
| Returns | |
|---|---|
boolean |
|
getBounds
public Rect getBounds ()
Get the bounding rect of the display feature in window coordinate space.
| Returns | |
|---|---|
Rect |
|
getType
public int getType ()
Get the type of the display feature.
| Returns | |
|---|---|
int |
|
hashCode
public int hashCode ()
| Returns | |
|---|---|
int |
|