public class

VolleyDataSource

extends AbstractDataSource<T>
java.lang.Object
   ↳ com.facebook.datasource.AbstractDataSource<T>
     ↳ com.facebook.drawee.backends.volley.VolleyDataSource

Class Overview

DataSource that wraps Volley ImageLoader.

Summary

Public Constructors
VolleyDataSource(ImageLoader imageLoader, Uri imageRequest, AbstractDraweeControllerBuilder.CacheLevel cacheLevel)
Public Methods
boolean close()
Cancels the ongoing request and releases all associated resources.
[Expand]
Inherited Methods
From class com.facebook.datasource.AbstractDataSource
From class java.lang.Object
From interface com.facebook.datasource.DataSource

Public Constructors

public VolleyDataSource (ImageLoader imageLoader, Uri imageRequest, AbstractDraweeControllerBuilder.CacheLevel cacheLevel)

Public Methods

public boolean close ()

Cancels the ongoing request and releases all associated resources.

Subsequent calls to getResult() will return null.

Returns
  • true if the data source is closed for the first time