Package-level declarations

Types

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

图像未完成加载时的占位

Link copied to clipboard
typealias ProceedPresentation = @Composable PagerZoomablePolicyScope.(model: Any?, size: Size?, processor: ModelProcessor, imageLoading: ImageLoading?) -> Boolean

用于控制ZoomableView、Loading等图层的切换

Properties

Link copied to clipboard

默认ImageLoading

Link copied to clipboard

默认ImageModelProcessor

Functions

Link copied to clipboard
fun ImagePager(modifier: Modifier = Modifier, pagerState: ZoomablePagerState, itemSpacing: Dp = DEFAULT_ITEM_SPACE, beyondViewportPageCount: Int = DEFAULT_BEYOND_VIEWPORT_ITEM_COUNT, userScrollEnabled: Boolean = true, detectGesture: PagerGestureScope = PagerGestureScope(), processor: ModelProcessor = ModelProcessor(), imageLoader: @Composable (Int) -> Pair<Any?, Size?>, imageLoading: ImageLoading? = defaultImageLoading, proceedPresentation: ProceedPresentation = defaultProceedPresentation, pageDecoration: @Composable (page: Int, innerPage: @Composable () -> Unit) -> Unit = { _, innerPage -> innerPage() })

基于Pager实现的图片浏览器