animate Scroll To Page
suspend fun animateScrollToPage(@IntRange(from = 0.toLong() ) page: Int, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble() ) pageOffset: Float = 0f, animationSpec: AnimationSpec<Float> = spring(), initialVelocity: Float = 0f, skipPages: Boolean = true)
Content copied to clipboard
suspend fun animateScrollToPage(@IntRange(from = 0.toLong() ) page: Int, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble() ) pageOffset: Float = 0f)
Content copied to clipboard
Animate (smooth scroll) to the given page to the middle of the viewport.
Cancels the currently running scroll, if any, and suspends until the cancellation is complete.