The Developer Preview for Android 11 is now available; test it out and share your feedback.

FocusDetailedState

enum class FocusDetailedState
kotlin.Any
   ↳ kotlin.Enum<androidx.ui.focus.FocusDetailedState>
   ↳ androidx.ui.focus.FocusDetailedState

Different states of the focus system. These are the detailed states used by the Focus Nodes. If you need higher level states, eg Focused or NotFocused, use the states in FocusState.

Active: The focusable component is currently active (i.e. it receives key events). ActiveParent : One of the descendants of the focusable component is Active. Captured: The focusable component is currently active (has focus), and is in a state where it does not want to give up focus. (Eg. a text field with an invalid phone number). Disabled: The focusable component is not currently focusable. (eg. A disabled button). Inactive: The focusable component does not receive any key events. (ie it is not active, nor are any of its descendants active).

Summary

Enum values

Extension functions

From androidx.ui.focus
FocusState

Converts a FocusDetailedState to a FocusState.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Enum values

Active

enum val Active : FocusDetailedState

ActiveParent

enum val ActiveParent : FocusDetailedState

Captured

enum val Captured : FocusDetailedState

Disabled

enum val Disabled : FocusDetailedState

Inactive

enum val Inactive : FocusDetailedState