🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

Posture

Posture info that can help make layout adaptation decisions.

Source set: Common
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.

Functions

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

toString

Source set: Common
override fun toString(): String

Content updated: