Package 

Class ImageUtilsKt

    • Method Summary

      Modifier and Type Method Description
      final static Disposable load(ImageView $self, Object data, @DrawableRes() Integer placeholderResId, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete)
      final static Disposable load(ImageView $self, Object data, Drawable placeholderDrawable, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete)
      final static Unit loadAndResize(ImageView $self, Object data, Drawable placeholderDrawable, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete) Loads an image into a drawable and then applies the drawable to the container, resizing it based on the scale types and the given configuration.
      final static Disposable loadVideoThumbnail(ImageView $self, Uri uri, @DrawableRes() Integer placeholderResId, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete)
      • Methods inherited from class java.lang.Object

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

      • load

         final static Disposable load(ImageView $self, Object data, Drawable placeholderDrawable, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete)
      • loadAndResize

         final static Unit loadAndResize(ImageView $self, Object data, Drawable placeholderDrawable, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete)

        Loads an image into a drawable and then applies the drawable to the container, resizing it based on the scale types and the given configuration.

        Parameters:
        data - The data to load.
        placeholderDrawable - Drawable that's shown while the image is loading.
        transformation - The transformation for the image before applying to the target.
        onStart - The callback when the load has started.
        onComplete - The callback when the load has finished.