Interface EventListener<T> (3.27.2)

public interface EventListener<T>

An interface for event listeners.

Type Parameter

Name Description
T

Methods

onEvent(T value, FirestoreException error)

public abstract void onEvent(T value, FirestoreException error)

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
Name Description
value T

The value of the event. null if there was an error.

error FirestoreException

The error if there was error. null otherwise.