Search in sources :

Example 16 with ListenOptions

use of com.google.firebase.firestore.core.EventManager.ListenOptions in project firebase-android-sdk by firebase.

the class QueryListenerTest method queryListener.

private static QueryListener queryListener(Query query, List<ViewSnapshot> accumulator) {
    ListenOptions options = new ListenOptions();
    options.includeDocumentMetadataChanges = true;
    options.includeQueryMetadataChanges = true;
    return queryListener(query, options, accumulator);
}
Also used : ListenOptions(com.google.firebase.firestore.core.EventManager.ListenOptions)

Aggregations

ListenOptions (com.google.firebase.firestore.core.EventManager.ListenOptions)16 Test (org.junit.Test)9 ArrayList (java.util.ArrayList)8 MutableDocument (com.google.firebase.firestore.model.MutableDocument)6 TaskCompletionSource (com.google.android.gms.tasks.TaskCompletionSource)3 ExecutionException (java.util.concurrent.ExecutionException)3 NonNull (androidx.annotation.NonNull)2 QueryListener (com.google.firebase.firestore.core.QueryListener)2 Activity (android.app.Activity)1 Nullable (androidx.annotation.Nullable)1 Task (com.google.android.gms.tasks.Task)1 Tasks (com.google.android.gms.tasks.Tasks)1 FirebaseFirestoreException (com.google.firebase.firestore.FirebaseFirestoreException)1 Code (com.google.firebase.firestore.FirebaseFirestoreException.Code)1 ActivityScope (com.google.firebase.firestore.core.ActivityScope)1 AsyncEventListener (com.google.firebase.firestore.core.AsyncEventListener)1 ListenerRegistrationImpl (com.google.firebase.firestore.core.ListenerRegistrationImpl)1 Query (com.google.firebase.firestore.core.Query)1 ParsedSetData (com.google.firebase.firestore.core.UserData.ParsedSetData)1 ParsedUpdateData (com.google.firebase.firestore.core.UserData.ParsedUpdateData)1