DisplayFeature
public
interface
DisplayFeature
| androidx.window.DisplayFeature |
Description of a physical feature on the display.
A display feature is a distinctive physical attribute located within the display panel of the device. It can intrude into the application window space and create a visual distortion, visual or touch discontinuity, make some area invisible or create a logical divider or separation in the screen space.
Summary
Nested classes | |
|---|---|
class |
DisplayFeature.Builder
This class is deprecated. Will be removed in the next alpha. |
Constants | |
|---|---|
int |
TYPE_FOLD
This constant is deprecated.
Will be removed in the next alpha. See |
int |
TYPE_HINGE
This constant is deprecated.
Will be removed in the next alpha. See |
Public methods | |
|---|---|
abstract
Rect
|
getBounds()
The bounding rectangle of the feature within the application window in the window coordinate space. |
abstract
int
|
getType()
This method is deprecated.
Will be removed in the next alpha. Cast to a |
Constants
TYPE_FOLD
public static final int TYPE_FOLD
This constant is deprecated.
Will be removed in the next alpha. See FoldingFeature.
Constant Value: 1 (0x00000001)
TYPE_HINGE
public static final int TYPE_HINGE
This constant is deprecated.
Will be removed in the next alpha. See FoldingFeature
Constant Value: 2 (0x00000002)
Public methods
getBounds
public abstract Rect getBounds ()
The bounding rectangle of the feature within the application window in the window coordinate space.
| Returns | |
|---|---|
Rect |
bounds of display feature. |
getType
public abstract int getType ()
This method is deprecated.
Will be removed in the next alpha. Cast to a FoldingFeature.
| Returns | |
|---|---|
int |
TYPE_FOLD or TYPE_HINGE depending on the feature returned. |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-02 UTC.