Focusability

Class

Common
value class Focusability private constructor(private val value: Int)

Focusability configures whether a focus target can be focused.

Companion Object

Properties

Common
val Always = Focusability(1)

This focus target can always gain focus. This should be used for components that can be focused regardless of input device / system state, such as text fields.

Common
val SystemDefined = Focusability(0)

Focusability of this focus target will be defined by the system. This should be used for clickable components such as buttons and checkboxes: these components should only gain focus when they are used with certain types of input devices, such as keyboard / d-pad.

Common
val Never = Focusability(2)

This focus target can not gain focus. This should be used for disabled components / components that are currently not interactive.