FormFactor

Viewing posture and input model. Not derivable from width — it comes from the platform, via rememberFormFactor.

Entries

Link copied to clipboard

Wear OS. ~192–227dp wide, viewed at ~30cm, rotary/touch input.

Link copied to clipboard

Phone, foldable, tablet. Arm's length, touch-first.

Link copied to clipboard

Desktop JVM window, browser. ~50cm, mouse and keyboard.

Link copied to clipboard

Android TV / leanback. ~3m ("10-foot"), D-pad focus, overscan-unsafe edges.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int