{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

FocusEventModifierNode

public interface FocusEventModifierNode extends DelegatableNode


Implement this interface create a modifier node that can be used to observe focus state changes to a FocusTargetNode down the hierarchy.

Summary

Public methods

abstract void

A parent FocusEventNode is notified of FocusState changes to the FocusTargetNode associated with this FocusEventModifierNode.

Inherited methods

From androidx.compose.ui.node.DelegatableNode
abstract @NonNull Modifier.Node

A reference of the Modifier.Node that holds this node's position in the node hierarchy.

Public methods

onFocusEvent

abstract void onFocusEvent(@NonNull FocusState focusState)

A parent FocusEventNode is notified of FocusState changes to the FocusTargetNode associated with this FocusEventModifierNode.