HingeInfo

Class
Common
@ExperimentalMaterial3AdaptiveApi
class HingeInfo(
    val bounds: Rect,
    val isVertical: Boolean,
    val isSeparating: Boolean,
    val isOccluding: Boolean
)

A class that contains the info of a hinge relevant to a Posture.

Parameters

bounds the bounds of the hinge in the relevant viewport.
isVertical true if the hinge is a vertical one, i.e., it separates the viewport into left and right; false if the hinge is horizontal, i.e., it separates the viewport into top and bottom.
isSeparating true if the hinge creates two logical display areas.
isOccluding true if the hinge conceals part of the display.