Package 

Class ZoomableGlideImageKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ZoomableGlideImage(Object model, 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, Function1<RequestBuilder<Drawable>, RequestBuilder<Drawable>> requestBuilderTransform) A zoomable image that can be loaded by Glide and displayed using me.saket.telephoto.zoomable.
      final static ZoomableImageSource glide(ZoomableImageSource.Companion $self, Object model, Function1<RequestBuilder<Drawable>, RequestBuilder<Drawable>> requestBuilder) A zoomable image that can be loaded by Glide and displayed using ZoomableImage().
      • Methods inherited from class java.lang.Object

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

      • ZoomableGlideImage

        @Composable() final static Unit ZoomableGlideImage(Object model, 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, Function1<RequestBuilder<Drawable>, RequestBuilder<Drawable>> requestBuilderTransform)

        A zoomable image that can be loaded by Glide and displayed using me.saket.telephoto.zoomable.ZoomableImage.

        Example usages:

        ZoomableGlideImage(
          model = "https://example.com/image.jpg",
          contentDescription = …
        )
        
        ZoomableGlideImage(
          model = "https://example.com/image.jpg",
          contentDescription = …
        ) {
          it.thumbnail(…)
            .error(…)
            .transition(withCrossFade(1_000))
            .addListener(…)
        }

        See me.saket.telephoto.zoomable.ZoomableImage for full documentation of parameters.

        Parameters:
        requestBuilderTransform - Used for applying image options to this composable's RequestBuilder.
      • glide

        @Composable() final static ZoomableImageSource glide(ZoomableImageSource.Companion $self, Object model, Function1<RequestBuilder<Drawable>, RequestBuilder<Drawable>> requestBuilder)

        A zoomable image that can be loaded by Glide and displayed using ZoomableImage().

        Example usage:

        ZoomableImage(
          image = ZoomableImageSource.glide("https://example.com/image.jpg"),
          contentDescription = …
        )
        
        ZoomableImage(
          image = ZoomableImageSource.glide("https://example.com/image.jpg") {
            it.thumbnail(…)
              .error(…)
              .transition(withCrossFade(1_000))
              .addListener(…)
          },
          contentDescription = …
        )