T - Type of data you expecting to getpublic interface DataCallback<T>
| Modifier and Type | Method and Description |
|---|---|
void |
onData(T data)
Calls when everything was done without issues.
|
void |
onError(java.lang.Exception e)
Calls when something goes wrong.
|
void onData(T data)
data - Fetched data from Firebase - data was processed and transformed to specified generic type <T>, not null.void onError(java.lang.Exception e)
e - Exception with description what was wrong.