Package com.bumptech.glide.load.data
Interface DataFetcher.DataCallback<T>
- Type Parameters:
T- The type of data that will be loaded.
- Enclosing interface:
- DataFetcher<T>
public static interface DataFetcher.DataCallback<T>
Callback that must be called when data has been loaded and is available, or when the load
fails.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonDataReady(T data) Called with the loaded data if the load succeeded, or withnullif the load failed.voidCalled when the load fails.
-
Method Details
-
onDataReady
Called with the loaded data if the load succeeded, or withnullif the load failed. -
onLoadFailed
Called when the load fails.- Parameters:
e- a non-nullExceptionindicating why the load failed.
-