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

RelocationRequester

@ExperimentalComposeUiApi
public final class RelocationRequester


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

Summary

Public constructors

Public methods

final void

This method is deprecated. Please use BringIntoViewRequester instead.

Public constructors

RelocationRequester

public RelocationRequester()

Public methods

bringIntoView

public final void bringIntoView(Rect rect)

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

Parameters
Rect rect

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.