Join us for ⁠#Android11: The Beta Launch Show on June 3!

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.

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