Package 

Class -SingletonExtensions

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final static ImageLoader imageLoader
      private final static ImageResult result
      private final static ImageResult metadata
    • Method Summary

      Modifier and Type Method Description
      final ImageLoader getImageLoader()
      final ImageResult getResult()
      final ImageResult getMetadata()
      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.
      final static Unit dispose(ImageView $self) Dispose the request that's attached to this view (if there is one).
      final static Disposable loadAny(ImageView $self, Object data, ImageLoader imageLoader, Function1<ImageRequest.Builder, Unit> builder)
      final static Unit clear(ImageView $self)
      • 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, 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:

        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)