Posture

Class

Common
@ExperimentalMaterial3AdaptiveApi
class Posture(
    val isTabletop: Boolean = false,
    val hingeList: List<HingeInfo> = emptyList()
)

Posture info that can help make layout adaptation decisions. For example when Posture.separatingVerticalHingeBounds is not empty, the layout may want to avoid putting any content over those hinge area. We suggest to use calculatePosture to retrieve instances of this class in applications, unless you have a strong need of customization that cannot be fulfilled by the default implementation.

Note that the hinge bounds will be represent as Rect with window coordinates, instead of layout coordinate.