Interface EventCommentsDB.CommentsUpdatedCallback

Enclosing class:
EventCommentsDB

public static interface EventCommentsDB.CommentsUpdatedCallback
Callback used when the current event's comments change in realtime.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Reports a realtime-listener failure.
    void
    Returns the latest ordered comments for the current event.
  • Method Details

    • onUpdated

      void onUpdated(@NonNull List<EventComment> comments)
      Returns the latest ordered comments for the current event.
      Parameters:
      comments - Latest comments snapshot for the active event.
    • onFailure

      void onFailure(@NonNull Exception e)
      Reports a realtime-listener failure.
      Parameters:
      e - Firestore failure encountered while listening.