Posture

sealed class Posture(val size: Size)

Represent the posture of the foldable device.

  • Posture.TableTop - Device posture is in tabletop mode (half open with the hinge horizontal).

  • Posture.Book - Device posture is in book mode (half open with the hinge vertical).

  • Posture.Normal - Device posture is in normal mode.

Since

1.0.0

See also

Inheritors

Constructors

Link copied to clipboard
protected constructor(size: Size)

Types

Link copied to clipboard
class Book(windowSize: Size) : Posture

Device posture is in book mode (half open with the hinge vertical).

Link copied to clipboard
data object Normal : Posture

Device posture is in normal mode.

Link copied to clipboard
class TableTop(windowSize: Size) : Posture

Device posture is in tabletop mode (half open with the hinge horizontal).

Properties

Link copied to clipboard
val size: Size