androidx.compose.ui.relocation

Interfaces

BringIntoViewModifierNode

A node that can respond to bringIntoView requests from its children by moving or adjusting its content.

Cmn

Extension functions summary

suspend Unit
DelegatableNode.bringIntoView(bounds: (() -> Rect?)?)

Bring this node into visible bounds.

Cmn

Extension functions

bringIntoView

suspend fun DelegatableNode.bringIntoView(bounds: (() -> Rect?)? = null): Unit

Bring this node into visible bounds. Does nothing if the node is not attached.

This method will not return until this request is satisfied or a newer request interrupts it. If this call is interrupted by a newer call, this method will throw a CancellationException.

Parameters
bounds: (() -> Rect?)? = null

provides the bounds (In local coordinates) that should be brought into view. The function may return a different value over time, if the bounds of the request change while the request is being processed. If you don't provide bounds, the whole node bounds will be used.