T - Type of data you expecting to getpublic interface DataChangeListener<T>
| Modifier and Type | Method and Description |
|---|---|
void |
onCanceled(java.lang.Exception e)
Calls when something goes wrong.
|
void |
onChange(T newValue)
Calls when everything was done without issues.
|
void onChange(T newValue)
newValue - New value of listened database referencevoid onCanceled(java.lang.Exception e)
e - Exception with description what was wrong.