Scrollable State
interface ScrollableState : AggregatedState, ComposableProperties<ERROR CLASS: Symbol not found for androidx.compose.foundation.gestures.ScrollableState>
表示可滚动对象的状态。
此接口由可滚动容器(如 LazyListState 或 ScrollState)的状态实现, 以便通过 scroll 方法提供低级别的滚动控制。
Author
M8Test, [email protected], https://m8test.com
See also
androidx. compose. foundation. gestures. Scrollable State
Inheritors
Functions
Link copied to clipboard
分发原始滚动增量(以像素为单位),绕过所有与滚动相关的机制。
Link copied to clipboard
Link copied to clipboard
获取一个只读状态,该状态表示此 ScrollableState 当前是否正在通过手势、惯性滑动或程序化方式滚动。
Link copied to clipboard
abstract fun scroll(scope: CoroutineScope, priority: (MutatePriorities) -> MutatePriority, scrollScopeBuilder: ScrollScope.() -> Unit): Job
调用此函数来控制滚动,并通过 ScrollScope 发送滚动事件。 所有改变逻辑滚动位置的操作都必须在 scroll 代码块内执行,以保证互斥性。