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

boundsthe bounds of the hinge in the relevant viewport.
isVerticaltrue 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.
isSeparatingtrue if the hinge creates two logical display areas.
isOccludingtrue if the hinge conceals part of the display.