Previewer

fun Previewer(modifier: Modifier = Modifier, state: PreviewerState, itemSpacing: Dp = DEFAULT_ITEM_SPACE, beyondViewportPageCount: Int = DEFAULT_BEYOND_VIEWPORT_ITEM_COUNT, enter: EnterTransition = DEFAULT_PREVIEWER_ENTER_TRANSITION, exit: ExitTransition = DEFAULT_PREVIEWER_EXIT_TRANSITION, debugMode: Boolean = false, detectGesture: PagerGestureScope = PagerGestureScope(), previewerLayer: TransformLayerScope = TransformLayerScope(), zoomablePolicy: @Composable PagerZoomablePolicyScope.(page: Int) -> Boolean)

带转换效果的图片弹出预览组件

Parameters

modifier

图层修饰

state

状态对象

itemSpacing

图片间的间隔

beyondViewportPageCount

页面外缓存个数

enter

调用open时的进入动画

exit

调用close时的退出动画

debugMode

调试模式

detectGesture

检测手势

previewerLayer

容器的图层修饰

zoomablePolicy

缩放图层的修饰