WindowLayoutInfo
class WindowLayoutInfo
Contains the list of DisplayFeature-s present in the window and the window's engagement mode.
Summary
Nested types |
|---|
|
This class is deprecated. Use WindowEngagementInfo.EngagementMode instead |
Public functions |
|
|---|---|
open operator Boolean |
|
Boolean |
This function is deprecated. Use WindowEngagementInfo#hasEngagementMode instead |
Boolean |
This function is deprecated. Use WindowEngagementInfo#hasEngagementModes instead |
open Int |
hashCode() |
open String |
toString() |
Public properties |
|
|---|---|
List<DisplayFeature> |
The display features that are present in the window. |
Set<WindowLayoutInfo.EngagementMode> |
This property is deprecated. Use WindowEngagementInfo#engagementModes instead |
Public functions
hasEngagementMode
funhasEngagementMode(mode: WindowLayoutInfo.EngagementMode): Boolean
Checks if a specific engagement mode is currently active.
| Parameters | |
|---|---|
mode: WindowLayoutInfo.EngagementMode |
The |
| Returns | |
|---|---|
Boolean |
true if the mode is present in the |
hasEngagementModes
funhasEngagementModes(vararg modes: WindowLayoutInfo.EngagementMode): Boolean
Checks if all specified engagement modes are currently active.
| Parameters | |
|---|---|
vararg modes: WindowLayoutInfo.EngagementMode |
The |
| Returns | |
|---|---|
Boolean |
true if all specified modes are in the |
Public properties
displayFeatures
val displayFeatures: List<DisplayFeature>
The display features that are present in the window. It is an empty list if there are no display features.
engagementModes
val engagementModes: Set<WindowLayoutInfo.EngagementMode>
The current user engagement modes, indicating how the user is interacting with the app.