Interface ImageDB.ImagesChangedCallback

Enclosing class:
ImageDB

public static interface ImageDB.ImagesChangedCallback
Callback interface for real-time image collection updates.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the Firestore listener encounters an error.
    void
    Called when a new image document is added.
    void
    Called when an existing image document is modified.
    void
    Called when an image document is removed.
  • Method Details

    • onImageAdded

      void onImageAdded(Image image)
      Called when a new image document is added.
      Parameters:
      image - the added image
    • onImageModified

      void onImageModified(Image image)
      Called when an existing image document is modified.
      Parameters:
      image - the modified image
    • onImageRemoved

      void onImageRemoved(Image image)
      Called when an image document is removed.
      Parameters:
      image - the removed image
    • onFailure

      void onFailure(Exception e)
      Called when the Firestore listener encounters an error.
      Parameters:
      e - the exception describing the failure