कंसोल पर जाएं

QuerySnapshot

public class QuerySnapshot extends Object
implements Iterable<QueryDocumentSnapshot>

A QuerySnapshot contains the results of a query. It can contain zero or more DocumentSnapshot objects.

Subclassing Note: Cloud Firestore classes are not meant to be subclassed except for use in test mocks. Subclassing is not supported in production code and new SDK releases may break code that does so.

Public Method Summary

boolean
List<DocumentChange>
getDocumentChanges()
Returns the list of documents that changed since the last snapshot.
List<DocumentChange>
getDocumentChanges(MetadataChanges metadataChanges)
Returns the list of documents that changed since the last snapshot.
List<DocumentSnapshot>
getDocuments()
Returns the documents in this QuerySnapshot as a List in order of the query.
SnapshotMetadata
Query
int
boolean
isEmpty()
Returns true if there are no documents in the QuerySnapshot.
Iterator<QueryDocumentSnapshot>
int
size()
Returns the number of documents in the QuerySnapshot.
<T> List<T>