T
- The type of data that will be loaded.public static interface DataFetcher.DataCallback<T>
Modifier and Type | Method and Description |
---|---|
void |
onDataReady(T data)
Called with the loaded data if the load succeeded, or with
null if the load failed. |
void |
onLoadFailed(java.lang.Exception e)
Called when the load fails.
|
void onDataReady(@Nullable T data)
null
if the load failed.void onLoadFailed(@NonNull java.lang.Exception e)
e
- a non-null Exception
indicating why the load failed.