DraggablePreviewerState
open class DraggablePreviewerState(scope: CoroutineScope, var defaultAnimationSpec: AnimationSpec<Float> = DEFAULT_SOFT_ANIMATION_SPEC, verticalDragType: VerticalDragType = VerticalDragType.None, scaleToCloseMinValue: Float = DEFAULT_SCALE_TO_CLOSE_MIN_VALUE, val pagerState: SupportedPagerState, itemStateMap: ItemStateMap, val getKey: (Int) -> Any) : TransformPreviewerState
拖拉拽状态与控制
Parameters
defaultAnimationSpec
默认动画窗格
verticalDragType
开启垂直手势的类型
scaleToCloseMinValue
下拉关闭的缩小的阈值
pagerState
预览状态
itemStateMap
用于获取transformItemState
getKey
获取当前key
Inheritors
Constructors
Link copied to clipboard
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)
Properties
Link copied to clipboard
Link copied to clipboard
当前页码
Link copied to clipboard
Link copied to clipboard
默认动画窗格
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
底层SupportedPagerState
Link copied to clipboard
Link copied to clipboard
目标页码
Link copied to clipboard
Link copied to clipboard
当前viewer的状态
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
更新当前的标记状态
Link copied to clipboard