-
public class ImageDownloader
com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of any of the classes in this package is unsupported, and they may be modified or removed without warning at any time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ImageDownloader.RequestKey
public final class
ImageDownloader.DownloaderContext
-
Field Summary
Fields Modifier and Type Field Description public final static ImageDownloader
INSTANCE
-
Method Summary
Modifier and Type Method Description final static Unit
downloadAsync(ImageRequest request)
Downloads the image specified in the passed in request. final static Boolean
cancelRequest(ImageRequest request)
final static Unit
prioritizeRequest(ImageRequest request)
final static Unit
clearCache()
final Map<ImageDownloader.RequestKey, ImageDownloader.DownloaderContext>
getPendingRequests()
-
-
Method Detail
-
downloadAsync
final static Unit downloadAsync(ImageRequest request)
Downloads the image specified in the passed in request. If a callback is specified, it is guaranteed to be invoked on the calling thread.
- Parameters:
request
- Request to process
-
cancelRequest
final static Boolean cancelRequest(ImageRequest request)
-
prioritizeRequest
final static Unit prioritizeRequest(ImageRequest request)
-
clearCache
final static Unit clearCache()
-
getPendingRequests
final Map<ImageDownloader.RequestKey, ImageDownloader.DownloaderContext> getPendingRequests()
-
-
-
-