Interface SnapshotListener


public interface SnapshotListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called on the EDT when a request fails.
    void
    Called on the EDT with the current state.
  • Method Details

    • onSnapshot

      void onSnapshot(QuerySnapshot snapshot)

      Called on the EDT with the current state. A document listener sees a list of one document, whose DocumentSnapshot.exists() is false when the document is missing.

      Parameters
      • snapshot: the state and its changes
    • onError

      void onError(Throwable error)

      Called on the EDT when a request fails. The listener keeps running and retries.

      Parameters
      • error: the failure