onFocusedBoundsChanged

Functions summary

Modifier

This function is deprecated. onFocusedBoundsChanged doesn't reliably observe focus bounds changes through layout coordinate changes and focus changes.

Cmn

Functions

Modifier.onFocusedBoundsChanged

fun Modifier.onFocusedBoundsChanged(
    onPositioned: (LayoutCoordinates?) -> Unit
): Modifier

Modifier.onFocusedBoundsChanged has been deprecated, and its implementation has been removed. This modifier now no-ops. To retrieve the position of a focused node, use androidx.compose.ui.focus.getFocusedRect to query this information as needed.