rememberPreviewerState
fun rememberPreviewerState(scope: CoroutineScope = rememberCoroutineScope(), defaultAnimationSpec: AnimationSpec<Float> = DEFAULT_SOFT_ANIMATION_SPEC, @IntRange(from = 0) initialPage: Int = 0, verticalDragType: VerticalDragType = VerticalDragType.Down, transformItemStateMap: ItemStateMap = LocalTransformItemStateMap.current, pageCount: () -> Int, getKey: (Int) -> Any = {}): PreviewerState
获取一个图片预览的状态与控制对象
Return
返回一个PreviewerState
Parameters
scope
协程作用域
defaultAnimationSpec
默认动画窗格
initialPage
初始化页码
verticalDragType
垂直手势类型
pageCount
总页数
getKey
获取某一页的key的方法