Package com.naver.ads.image
Class ImageLoader
-
- All Implemented Interfaces:
public final class ImageLoader
-
-
Method Summary
Modifier and Type Method Description final static Bitmapexecute(ImageRequest $self, Long timeoutMillis, Boolean enableDiskCache)Asynchronously execute the request in the current thread. final static Unitenqueue(ImageRequest $self, ImageCallback callback, Boolean enableDiskCache)Synchronously execute the request. final static Unitenqueue(Collection<ImageRequest> $self, ImageCallback callback, Boolean enableDiskCache)Synchronously execute the multiple requests. -
-
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 millisecondsenableDiskCache- 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
-
-
-
-