PreviewerState

constructor(scope: CoroutineScope, defaultAnimationSpec: AnimationSpec<Float> = DEFAULT_SOFT_ANIMATION_SPEC, verticalDragType: VerticalDragType = VerticalDragType.None, scaleToCloseMinValue: Float = DEFAULT_SCALE_TO_CLOSE_MIN_VALUE, pagerState: SupportedPagerState, itemStateMap: ItemStateMap, getKey: (Int) -> Any)

Parameters

scope

协程作用域

defaultAnimationSpec

默认动画窗格

verticalDragType

垂直手势类型

scaleToCloseMinValue

下拉关闭的缩小的阈值

pagerState

预览状态

itemStateMap

用于获取transformItemState

getKey

获取当前key的方法