QuerySnapshot

The results of a Query, mirroring the Android SDK's QuerySnapshot: the documents and the changes since the previous snapshot.

Properties

Link copied to clipboard

The changes since the previous snapshot, or every document as added for the first snapshot.

Link copied to clipboard

The documents.

Link copied to clipboard
val ios: <Error class: unknown class>

The underlying Firebase iOS SDK object.

Link copied to clipboard
actual val isEmpty: Boolean
actual val isEmpty: Boolean
expect val isEmpty: Boolean

Whether there are no documents.

actual val isEmpty: Boolean
actual val isEmpty: Boolean
actual val isEmpty: Boolean
Link copied to clipboard

The underlying Firebase JS SDK object.

The underlying Firebase JS SDK object.

Link copied to clipboard

Whether the snapshot is from the cache or has pending writes.

Link copied to clipboard
actual val query: Query
actual val query: Query
expect val query: Query

The query the results belong to.

actual val query: Query
actual val query: Query
actual val query: Query

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
actual fun getDocumentChanges(metadataChanges: MetadataChanges): List<DocumentChange>
actual fun getDocumentChanges(metadataChanges: <Error class: unknown class>): List<DocumentChange>
expect fun getDocumentChanges(metadataChanges: MetadataChanges): List<DocumentChange>

The changes since the previous snapshot, including metadata-only changes when metadataChanges is INCLUDE.

actual fun getDocumentChanges(metadataChanges: <Error class: unknown class>): List<DocumentChange>
actual fun getDocumentChanges(metadataChanges: MetadataChanges): List<DocumentChange>
actual fun getDocumentChanges(metadataChanges: <Error class: unknown class>): List<DocumentChange>
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
actual open operator override fun iterator(): Iterator<QueryDocumentSnapshot>
actual open operator override fun iterator(): Iterator<QueryDocumentSnapshot>
expect open operator override fun iterator(): Iterator<QueryDocumentSnapshot>
actual open operator override fun iterator(): Iterator<QueryDocumentSnapshot>
actual open operator override fun iterator(): Iterator<QueryDocumentSnapshot>
actual open operator override fun iterator(): Iterator<QueryDocumentSnapshot>
Link copied to clipboard
actual fun size(): Int
actual fun size(): Int
expect fun size(): Int

The number of documents.

actual fun size(): Int
actual fun size(): Int
actual fun size(): Int
Link copied to clipboard
fun <T> toObjects(clazz: Class<T>): List<T>
fun <T> toObjects(clazz: Class<T>, serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): List<T>
fun <T> toObjects(clazz: Class<T>): List<T>
fun <T> toObjects(clazz: Class<T>, serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): List<T>
Link copied to clipboard
inline fun <T> QuerySnapshot.toObjects(): List<T>
inline fun <T> QuerySnapshot.toObjects(serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): List<T>

The SDK's reified toObjects; deprecated towards com.google.firebase.serialization.toObjects.

inline fun <T> QuerySnapshot.toObjects(): List<T>

The documents as T (see DocumentSnapshot.toObject), as the Android SDK's reified toObjects.

inline fun <T> QuerySnapshot.toObjects(serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): List<T>

The documents as T (see DocumentSnapshot.toObject), with the server timestamps resolved as serverTimestampBehavior says.

Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String