Class ImageUtilsKt
-
- All Implemented Interfaces:
public final class ImageUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static Disposableload(ImageView $self, Object data, @DrawableRes() Integer placeholderResId, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete)final static Disposableload(ImageView $self, Object data, Drawable placeholderDrawable, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete)final static UnitloadAndResize(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 DisposableloadVideoThumbnail(ImageView $self, Uri uri, @DrawableRes() Integer placeholderResId, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete)-
-
Method Detail
-
load
final static Disposable load(ImageView $self, Object data, @DrawableRes() Integer placeholderResId, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete)
-
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.
-
loadVideoThumbnail
final static Disposable loadVideoThumbnail(ImageView $self, Uri uri, @DrawableRes() Integer placeholderResId, StreamImageLoader.ImageTransformation transformation, Function0<Unit> onStart, Function0<Unit> onComplete)
-
-
-
-