Class ImageLoader

  • All Implemented Interfaces:

    
    public final class ImageLoader
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • execute

         final static Bitmap execute(ImageRequest $self, Long timeoutMillis, Boolean enableDiskCache)

        Asynchronously execute the request in the current thread.

        Parameters:
        timeoutMillis - timeout in milliseconds
        enableDiskCache - whether to use disk cache in addition to memory cache
        Returns:

        the Bitmap if the request completes successfully.

      • enqueue

         final static Unit enqueue(ImageRequest $self, ImageCallback callback, Boolean enableDiskCache)

        Synchronously execute the request.

        Parameters:
        callback - the callback can be used to check the status of the request.
        enableDiskCache - whether to use disk cache in addition to memory cache
      • enqueue

         final static Unit enqueue(Collection<ImageRequest> $self, ImageCallback callback, Boolean enableDiskCache)

        Synchronously execute the multiple requests.

        Parameters:
        callback - the callback can be used to check the status of multiple requests.
        enableDiskCache - whether to use disk cache in addition to memory cache