by @alexstyl
✉️ Leave your feedback

← Back to Foundation

bringIntoViewRequester

Modifier
in
Foundation
. Since 1.1.0

Overview

Examples

Community Notes

Modifier that can be used to send bringIntoViewBringIntoViewRequester.bringIntoView requests.

The following example uses a bringIntoViewRequester to bring an item into the parent bounds. The example demonstrates how a composable can ask its parents to scroll so that the component using this modifier is brought into the bounds of all its parents.

Overloads

bringIntoViewRequester

@Suppress("ModifierInspectorInfo")
@ExperimentalFoundationApi
fun Modifier.bringIntoViewRequester(
    bringIntoViewRequester: BringIntoViewRequester
)

Parameters

NameDescription
bringIntoViewRequesterAn instance of BringIntoViewRequester. This hoisted object can be used to send bringIntoViewBringIntoViewRequester.bringIntoView requests to parents of the current composable. Note: this API is experimental while we optimise the performance and find the right API shape for i
Next ComponentBaseTextField