androidx.compose.ui.focus
onFocusChanged
Function · from org.jetbrains.compose.ui:ui:1.12.2
No hand-written docs yet.
Add this modifier to a component to observe focus state events. onFocusChanged is invoked when the focus state changes. The onFocusChanged modifier listens to the state of the first focusTarget following this modifier.
Parameters
fun Modifier.onFocusChanged(onFocusChanged: (FocusState) -> Unit): Modifier
onFocusChanged: (FocusState) -> UnitRequired
onFocusChanged: (FocusState) -> UnitRequiredNot described.
Library docs
Add this modifier to a component to observe focus state events. onFocusChanged is invoked when
the focus state changes. The onFocusChanged modifier listens to the state of the first
focusTarget following this modifier.