Focusability
-
Cmn
value class Focusability
Focusability configures whether a focus target can be focused.
| See also | |
|---|---|
Always |
|
SystemDefined |
|
Never |
Summary
Public companion properties |
||
|---|---|---|
Focusability |
This focus target can always gain focus. |
Cmn
|
Focusability |
This focus target can not gain focus. |
Cmn
|
Focusability |
Focusability of this focus target will be defined by the system. |
Cmn
|
Public companion properties
Always
val Always: Focusability
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.
Never
val Never: Focusability
This focus target can not gain focus. This should be used for disabled components / components that are currently not interactive.
SystemDefined
val SystemDefined: Focusability
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.