Function

bringIntoView

Bring this node into visible bounds.

bringIntoView

Source set: Common
suspend fun DelegatableNode.bringIntoView(bounds: (() -> Rect?)? = null)

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]kotlinx.coroutines.CancellationException.

Parameters

bounds 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.

Last updated: