Class VolleyStreamFetcher
java.lang.Object
com.bumptech.glide.integration.volley.VolleyStreamFetcher
- All Implemented Interfaces:
com.bumptech.glide.load.data.DataFetcher<InputStream>
public class VolleyStreamFetcher
extends Object
implements com.bumptech.glide.load.data.DataFetcher<InputStream>
A DataFetcher backed by volley for fetching images via http.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefaultRequestimplementation for Glide that receives errors and results on volley's background thread.Nested classes/interfaces inherited from interface com.bumptech.glide.load.data.DataFetcher
com.bumptech.glide.load.data.DataFetcher.DataCallback<T extends Object> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVolleyStreamFetcher(com.android.volley.RequestQueue requestQueue, com.bumptech.glide.load.model.GlideUrl url) VolleyStreamFetcher(com.android.volley.RequestQueue requestQueue, com.bumptech.glide.load.model.GlideUrl url, VolleyRequestFactory requestFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidcleanup()com.bumptech.glide.load.DataSourcevoidloadData(com.bumptech.glide.Priority priority, com.bumptech.glide.load.data.DataFetcher.DataCallback<? super InputStream> callback)
-
Field Details
-
DEFAULT_REQUEST_FACTORY
-
-
Constructor Details
-
VolleyStreamFetcher
public VolleyStreamFetcher(com.android.volley.RequestQueue requestQueue, com.bumptech.glide.load.model.GlideUrl url) -
VolleyStreamFetcher
public VolleyStreamFetcher(com.android.volley.RequestQueue requestQueue, com.bumptech.glide.load.model.GlideUrl url, VolleyRequestFactory requestFactory)
-
-
Method Details
-
loadData
public void loadData(@NonNull com.bumptech.glide.Priority priority, @NonNull com.bumptech.glide.load.data.DataFetcher.DataCallback<? super InputStream> callback) - Specified by:
loadDatain interfacecom.bumptech.glide.load.data.DataFetcher<InputStream>
-
cleanup
public void cleanup()- Specified by:
cleanupin interfacecom.bumptech.glide.load.data.DataFetcher<InputStream>
-
cancel
public void cancel()- Specified by:
cancelin interfacecom.bumptech.glide.load.data.DataFetcher<InputStream>
-
getDataClass
- Specified by:
getDataClassin interfacecom.bumptech.glide.load.data.DataFetcher<InputStream>
-
getDataSource
@NonNull public com.bumptech.glide.load.DataSource getDataSource()- Specified by:
getDataSourcein interfacecom.bumptech.glide.load.data.DataFetcher<InputStream>
-