-
public final class -SingletonExtensions
-
-
Field Summary
Fields Modifier and Type Field Description private final static ImageLoaderimageLoaderprivate final static ImageResultresultprivate final static ImageResultmetadata
-
Method Summary
Modifier and Type Method Description final ImageLoadergetImageLoader()final ImageResultgetResult()final ImageResultgetMetadata()final static Disposableload(ImageView $self, Object data, ImageLoader imageLoader, Function1<ImageRequest.Builder, Unit> builder)Load the image referenced by data and set it on this ImageView. final static Unitdispose(ImageView $self)Dispose the request that's attached to this view (if there is one). final static DisposableloadAny(ImageView $self, Object data, ImageLoader imageLoader, Function1<ImageRequest.Builder, Unit> builder)final static Unitclear(ImageView $self)-
-
Method Detail
-
getImageLoader
final ImageLoader getImageLoader()
-
getResult
final ImageResult getResult()
-
getMetadata
final ImageResult getMetadata()
-
load
final static Disposable load(ImageView $self, Object data, ImageLoader imageLoader, Function1<ImageRequest.Builder, Unit> builder)
Load the image referenced by data and set it on this ImageView.
Example:
imageView.load("https://example.com/image.jpg") { crossfade(true) transformations(CircleCropTransformation()) }The default supported data types are:
Uri (
android.resource,content,file,http, andhttpsschemes)HttpUrl
- Parameters:
data- The data to load.imageLoader- The ImageLoader that will be used to enqueue the ImageRequest.builder- An optional lambda to configure the ImageRequest.
-
dispose
final static Unit dispose(ImageView $self)
Dispose the request that's attached to this view (if there is one).
-
loadAny
final static Disposable loadAny(ImageView $self, Object data, ImageLoader imageLoader, Function1<ImageRequest.Builder, Unit> builder)
-
-
-
-