Function

stopScroll

Stop and suspend until any ongoing animation, smooth scrolling, fling, or any other scroll occurring via ScrollableState.scroll is terminated.

stopScroll

Source set: Common
public suspend fun ScrollableState.stopScroll(
    scrollPriority: MutatePriority = MutatePriority.Default
)

Stop and suspend until any ongoing animation, smooth scrolling, fling, or any other scroll occurring via ScrollableState.scroll is terminated.

Parameters

scrollPriority scrolls that run with this priority or lower will be stopped

stopScroll

Source set: Common
public suspend fun Scrollable2DState.stopScroll(
    scrollPriority: MutatePriority = MutatePriority.Default
)

Stop and suspend until any ongoing animation, smooth scrolling, fling, or any other scroll occurring via ScrollableState.scroll is terminated.

Parameters

scrollPriority scrolls that run with this priority or lower will be stopped
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: