-
public final class ZoomableImageKt
-
-
Method Summary
Modifier and Type Method Description final static UnitZoomableImage(ZoomableImageSource image, String contentDescription, EnabledZoomGestures gestures, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, DoubleClickToZoomListener onDoubleClick, Boolean clipToBounds, PaddingValues contentPadding, MutableInteractionSource interactionSource)A drop-in replacement for async Image()composables featuring support for pan & zoom gestures and automatic sub-sampling of large images.final static UnitZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds, DoubleClickToZoomListener onDoubleClick, PaddingValues contentPadding, MutableInteractionSource interactionSource)final static UnitZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Boolean gesturesEnabled, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds, DoubleClickToZoomListener onDoubleClick, PaddingValues contentPadding, MutableInteractionSource interactionSource)final static UnitZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Boolean gesturesEnabled, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds, DoubleClickToZoomListener onDoubleClick)final static UnitZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Boolean gesturesEnabled, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds)final static UnitZoomableImage(ZoomableImageSource image, String contentDescription, EnabledZoomGestures gestures, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, DoubleClickToZoomListener onDoubleClick, Boolean clipToBounds, PaddingValues contentPadding)final static UnitZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds, DoubleClickToZoomListener onDoubleClick, PaddingValues contentPadding)final static UnitZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Boolean gesturesEnabled, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds, DoubleClickToZoomListener onDoubleClick, PaddingValues contentPadding)-
-
Method Detail
-
ZoomableImage
final static Unit ZoomableImage(ZoomableImageSource image, String contentDescription, EnabledZoomGestures gestures, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, DoubleClickToZoomListener onDoubleClick, Boolean clipToBounds, PaddingValues contentPadding, MutableInteractionSource interactionSource)
A drop-in replacement for async
Image()composables featuring support for pan & zoom gestures and automatic sub-sampling of large images. This ensures that images maintain their intricate details even when fully zoomed in, without causing anyOutOfMemoryexceptions.Because
Modifier.zoomable()consumes all gestures including double-taps, Modifier.clickable and Modifier.combinedClickable will not work on this composable. As an alternative, onClick and onLongClick parameters can be used instead.- Parameters:
clipToBounds- defaults to true to act as a reminder that this layout should probably fill all available space.
-
ZoomableImage
final static Unit ZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds, DoubleClickToZoomListener onDoubleClick, PaddingValues contentPadding, MutableInteractionSource interactionSource)
-
ZoomableImage
final static Unit ZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Boolean gesturesEnabled, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds, DoubleClickToZoomListener onDoubleClick, PaddingValues contentPadding, MutableInteractionSource interactionSource)
-
ZoomableImage
final static Unit ZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Boolean gesturesEnabled, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds, DoubleClickToZoomListener onDoubleClick)
-
ZoomableImage
final static Unit ZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Boolean gesturesEnabled, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds)
-
ZoomableImage
final static Unit ZoomableImage(ZoomableImageSource image, String contentDescription, EnabledZoomGestures gestures, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, DoubleClickToZoomListener onDoubleClick, Boolean clipToBounds, PaddingValues contentPadding)
-
ZoomableImage
final static Unit ZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds, DoubleClickToZoomListener onDoubleClick, PaddingValues contentPadding)
-
ZoomableImage
final static Unit ZoomableImage(ZoomableImageSource image, String contentDescription, Modifier modifier, ZoomableImageState state, Float alpha, ColorFilter colorFilter, Alignment alignment, ContentScale contentScale, Boolean gesturesEnabled, Function1<Offset, Unit> onClick, Function1<Offset, Unit> onLongClick, Boolean clipToBounds, DoubleClickToZoomListener onDoubleClick, PaddingValues contentPadding)
-
-
-
-