PopupPreviewerState

弹出预览状态与控制对象

Parameters

pagerState

封装的通用pagerState

Inheritors

Constructors

Link copied to clipboard
constructor(pagerState: SupportedPagerState)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

当前页码

Link copied to clipboard

interactionSource

Link copied to clipboard

底层SupportedPagerState

Link copied to clipboard

目标页码

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun animateScrollToPage(@IntRange(from = 0) page: Int, @FloatRange(from = 0.0, to = 1.0) pageOffset: Float = 0.0f)

动画滚动到指定页面

Link copied to clipboard
suspend fun close(exitTransition: ExitTransition? = null)
Link copied to clipboard
open suspend fun closeAction(exitTransition: ExitTransition? = null)
Link copied to clipboard
suspend fun open(index: Int = 0, enterTransition: EnterTransition? = null)
Link copied to clipboard
open suspend fun openAction(index: Int = 0, enterTransition: EnterTransition? = null)
Link copied to clipboard
suspend fun scrollToPage(@IntRange(from = 0) page: Int, @FloatRange(from = 0.0, to = 1.0) pageOffset: Float = 0.0f)

滚动到指定页面

Link copied to clipboard
suspend fun updateState(animating: Boolean, visible: Boolean, visibleTarget: Boolean?)

更新当前的标记状态