Package-level declarations
Types
Link copied to clipboard
class GalleryGestureScope(var onTap: () -> Unit = {}, var onDoubleTap: () -> Boolean = { false }, var onLongPress: () -> Unit = {})
gallery手势对象
Link copied to clipboard
class GalleryLayerScope(var viewerContainer: @Composable (page: Int, viewerState: ImageViewerState, viewer: @Composable () -> Unit) -> Unit = { _, _, viewer -> viewer() }, var background: @Composable (Int) -> Unit = {}, var foreground: @Composable (Int) -> Unit = {})
gallery图层对象
Link copied to clipboard
gallery状态
Functions
Link copied to clipboard
fun ImageGallery(modifier: Modifier = Modifier, state: ImageGalleryState, imageLoader: @Composable (Int) -> Any?, itemSpacing: Dp = DEFAULT_ITEM_SPACE, detectGesture: GalleryGestureScope.() -> Unit = {}, galleryLayer: GalleryLayerScope.() -> Unit = {})
图片gallery,基于Pager实现的一个图片查看列表组件
Link copied to clipboard
fun rememberImageGalleryState(@IntRange(from = 0) initialPage: Int = 0, pageCount: () -> Int): ImageGalleryState
记录gallery状态