{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

RelocationRequester


This class can be used to send relocation requests. Pass it as a parameter to Modifier.relocationRequester().

Summary

Public constructors

Cmn

Public functions

suspend Unit

This function is deprecated. Please use BringIntoViewRequester instead.

Cmn

Public constructors

RelocationRequester

RelocationRequester()

Public functions

bringIntoView

suspend fun bringIntoView(rect: Rect? = null): Unit

Bring this item into bounds by making all the scrollable parents scroll appropriately.

Parameters
rect: Rect? = null

The rectangle (In local coordinates) that should be brought into view. If you don't specify the coordinates, the coordinates of the Modifier.relocationRequester() associated with this RelocationRequester will be used.