Package com.google.cloud.firestore
Interface EventListener<T>
public interface EventListener<T>
An interface for event listeners.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonEvent(T value, FirestoreException error) onEvent will be called with the new value or the error if an error occurred.
-
Method Details
-
onEvent
onEvent will be called with the new value or the error if an error occurred. It's guaranteed that exactly one of value or error will be non-null.- Parameters:
value- The value of the event. null if there was an error.error- The error if there was error. null otherwise.
-