WindowLayoutInfo

public final class 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. list-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.

See also
windowLayoutInfo

Summary

Nested types

WindowLayoutInfo.Builder

Builder for WindowLayoutInfo objects.

Public fields

final @NonNull List<@NonNull DisplayFeature>

displayFeatures all the DisplayFeature within the window.

Public methods

boolean
int
@NonNull String

Public fields

displayFeatures

@NonNull
public final @NonNull List<@NonNull DisplayFeaturedisplayFeatures

displayFeatures all the DisplayFeature within the window.

Public methods

equals

@NonNull
public boolean equals(@Nullable Object other)

hashCode

@NonNull
public int hashCode()

toString

@NonNull
public String toString()