androidx.compose.ui.focus

FocusTargetModifierNode

Sealed interface · from org.jetbrains.compose.ui:ui:1.12.2

No hand-written docs yet.

This modifier node can be delegated to in order to create a modifier that makes a component focusable.

sealed interface FocusTargetModifierNode : DelegatableNode

Is a

How to get one

Create it

Properties

focusState

val focusState: FocusState

The FocusState associated with this FocusTargetModifierNode. When you delegate to a FocusTargetModifierNode, instead of implementing FocusEventModifierNode, you can get the state by accessing this variable.

focusabilitySince 1.8

val focusability: Focusability

The Focusability for this node.

Functions

requestFocusSince 1.8

fun requestFocus(
    focusDirection: FocusDirection = FocusDirection.Enter,
): Boolean

Request focus for this node.

Library docs

This modifier node can be delegated to in order to create a modifier that makes a component focusable.