Package com.example.breeze_seas
Interface ImageDB.ImagesChangedCallback
- Enclosing class:
ImageDB
public static interface ImageDB.ImagesChangedCallback
Callback interface for real-time image collection updates.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the Firestore listener encounters an error.voidonImageAdded(Image image) Called when a new image document is added.voidonImageModified(Image image) Called when an existing image document is modified.voidonImageRemoved(Image image) Called when an image document is removed.
-
Method Details
-
onImageAdded
Called when a new image document is added.- Parameters:
image- the added image
-
onImageModified
Called when an existing image document is modified.- Parameters:
image- the modified image
-
onImageRemoved
Called when an image document is removed.- Parameters:
image- the removed image
-
onFailure
Called when the Firestore listener encounters an error.- Parameters:
e- the exception describing the failure
-