Package 

Class ZoomableImageKt

    • Method Summary

      Modifier and Type Method Description
      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) A drop-in replacement for async Image() composables featuring support for pan & zoom gestures and automatic sub-sampling of large images.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • ZoomableImage

        @Composable() 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)

        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 any OutOfMemory exceptions.

        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:
        gesturesEnabled - whether or not gestures are enabled.
        clipToBounds - defaults to true to act as a reminder that this layout should probably fill all available space.