Package-level declarations

Types

Link copied to clipboard
typealias ImageItemContent = @Composable (Any) -> Unit

用于解析图像数据给TransformItemView显示的方法

Properties

Link copied to clipboard

默认处理,当前model仅支持Painter、ImageBitmap、ImageVector、AnyComposable

Link copied to clipboard

默认的容器背景

Functions

Link copied to clipboard
fun ImagePreviewer(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(), processor: ModelProcessor = ModelProcessor(), imageLoader: @Composable (Int) -> Pair<Any?, Size?>, imageLoading: ImageLoading? = defaultImageLoading, proceedPresentation: ProceedPresentation = defaultProceedPresentation, previewerLayer: TransformLayerScope = TransformLayerScope( background = defaultPreviewBackground ), pageDecoration: @Composable (page: Int, innerPage: @Composable () -> Boolean) -> Boolean = { _, innerPage -> innerPage() })

图片弹出预览组件

Link copied to clipboard
fun TransformImageView(modifier: Modifier = Modifier, imageLoader: @Composable () -> Triple<Any, Any, Size>, imageItemContent: ImageItemContent = defaultImageItemContent, transformState: TransformPreviewerState)

支持图片变换效果的ImageView,简单理解为:小图转换为大图动效中的小图 此接口的目的是方便开发者直接调用,如需更深入的定制化,推荐直接使用TransformItemView