java.lang.Object | |
↳ | com.google.firebase.firestore.QuerySnapshot |
A QuerySnapshot contains the results of a query. It can contain zero or more DocumentSnapshot objects.
Subclassing Note: 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 Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the list of documents that changed since the last snapshot.
| |||||||||||
Returns the documents in this QuerySnapshot as a List in order of the query.
| |||||||||||
Returns true if there are no documents in the QuerySnapshot.
| |||||||||||
Returns the number of documents in the QuerySnapshot.
| |||||||||||
Returns the contents of the documents in the QuerySnapshot, converted to the provided class, as
a list.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Parameters | |
---|---|
obj |
Object |
Returns | |
---|---|
boolean |
Returns the list of documents that changed since the last snapshot. If it's the first snapshot all documents will be in the list as added changes.
Returns | |
---|---|
List<DocumentChange> |
The list of documents that changed since the last snapshot. |
Returns the documents in this QuerySnapshot as a List in order of the query.
Returns | |
---|---|
List<DocumentSnapshot> |
The list of documents. |
Returns | |
---|---|
SnapshotMetadata |
The metadata for this document snapshot. |
Returns | |
---|---|
int |
Returns true if there are no documents in the QuerySnapshot.
Returns | |
---|---|
boolean |
Returns the number of documents in the QuerySnapshot.
Returns | |
---|---|
int |
Returns the contents of the documents in the QuerySnapshot, converted to the provided class, as a list.
Parameters | |
---|---|
clazz |
Class : The POJO type used to convert the documents in the list.
|
Returns | |
---|---|
List<T> |