ScrollScope

interface ScrollScope

在可挂起的滚动代码块 (suspending scroll blocks) 中使用的作用域。

这个作用域提供了在协程中以编程方式控制滚动的方法,通常在 LazyListState.scroll 等函数的 Lambda 中提供。

Author

M8Test, [email protected], https://m8test.com

See also

androidx.compose.foundation.gestures.ScrollScope

Functions

Link copied to clipboard
abstract fun scrollBy(pixels: Float): Float

尝试按 pixels 指定的像素值进行滚动。