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

RelocationModifierKt

public final class RelocationModifierKt


Summary

Public methods

static final @NonNull Modifier
@ExperimentalComposeUiApi
onRelocationRequest(
    @NonNull Modifier receiver,
    @NonNull Function2<@NonNull Rect, @NonNull LayoutCoordinates, @NonNull Rect> onProvideDestination,
    @NonNull SuspendFunction2<@NonNull Rect, @NonNull RectUnit> onPerformRelocation
)

This method is deprecated. Please use BringIntoViewResponder instead.

Public methods

onRelocationRequest

@ExperimentalComposeUiApi
public static final @NonNull Modifier onRelocationRequest(
    @NonNull Modifier receiver,
    @NonNull Function2<@NonNull Rect, @NonNull LayoutCoordinates, @NonNull Rect> onProvideDestination,
    @NonNull SuspendFunction2<@NonNull Rect, @NonNull RectUnit> onPerformRelocation
)

Add this modifier to respond to requests to bring an item into view.