Interface

FocusEventModifierNode

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

Source set: Common
public interface FocusEventModifierNode : DelegatableNode

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

Functions

onFocusEvent

Source set: Common
public fun onFocusEvent(focusState: FocusState)

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: