Package 

Interface BaseChangeEventListener

    • Method Summary

      Modifier and Type Method Description
      abstract void onChildChanged(@NonNull() ChangeEventType type, @NonNull() S snapshot, int newIndex, int oldIndex) A callback for when a child event occurs.
      abstract void onDataChanged() Callback triggered after all child events in a particular snapshot have beenprocessed.
      abstract void onError(@NonNull() E e) Callback when an error has been detected in the underlying listener.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onChildChanged

         abstract void onChildChanged(@NonNull() ChangeEventType type, @NonNull() S snapshot, int newIndex, int oldIndex)

        A callback for when a child event occurs.

        Parameters:
        type - The type of the event.
        snapshot - The snapshot of the changed child.
        newIndex - The new index of the element, or -1 of it is no longer present
        oldIndex - The previous index of the element, or -1 if it was notpreviously tracked.
      • onDataChanged

         abstract void onDataChanged()

        Callback triggered after all child events in a particular snapshot have beenprocessed.

        Useful for batch events, such as removing a loading indicator after initial loador a large update batch.

      • onError

         abstract void onError(@NonNull() E e)

        Callback when an error has been detected in the underlying listener.

        Parameters:
        e - the error that occurred.