onFocusedBoundsChanged
Source set: Common
@Deprecated(
message =
"onFocusedBoundsChanged doesn't reliably observe focus bounds changes through layout " +
"coordinate changes and focus changes. The existing best-effort " +
"implementation has been removed, resulting in this becoming a no-op Modifier where " +
"onPositioned will never be called. Use FocusTargetModifierNode.getFocusedRect() " +
"instead to query this information on demand as needed.",
level = DeprecationLevel.ERROR,
)
public 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.