WindowLayoutInfo
public
final
class
WindowLayoutInfo
extends Object
| java.lang.Object | |
| ↳ | androidx.window.WindowLayoutInfo |
Contains the list of DisplayFeature-s located within the window. For example, a hinge or
display fold can go across the window, in which case it might make sense to separate the
visual content and interactive elements into two groups, e.g. master-detail or view-controls.
Only the features that are present within the current window bounds are reported. Their positions and sizes can change if the window is moved or resized on screen.
Summary
Nested classes | |
|---|---|
class |
WindowLayoutInfo.Builder
Builder for |
Public methods | |
|---|---|
List<DisplayFeature>
|
getDisplayFeatures()
Get the list of physical display features within the window. |
String
|
toString()
|
Inherited methods | |
|---|---|
Public methods
getDisplayFeatures
public List<DisplayFeature> getDisplayFeatures ()
Get the list of physical display features within the window.
| Returns | |
|---|---|
List<DisplayFeature> |
|
toString
public String toString ()
| Returns | |
|---|---|
String |
|
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 2020-02-27 UTC.