Package-level declarations

Types

Link copied to clipboard
actual abstract class AggregateField

An aggregation of a field, mirroring the Android SDK's AggregateField; created with count, sum and average.

expect abstract class AggregateField

An aggregation of a field, mirroring the Android SDK's AggregateField; created with count, sum and average.

actual abstract class AggregateField
Link copied to clipboard
actual class AggregateQuery

An aggregation over the results of a Query, mirroring the Android SDK's AggregateQuery.

actual class AggregateQuery

An aggregation over the results of a Query, mirroring the Android SDK's AggregateQuery.

expect class AggregateQuery

An aggregation over the results of a Query, mirroring the Android SDK's AggregateQuery.

actual class AggregateQuery

An aggregation over the results of a Query, mirroring the Android SDK's AggregateQuery.

actual class AggregateQuery

An aggregation over the results of a Query, mirroring the Android SDK's AggregateQuery.

Link copied to clipboard

The results of an AggregateQuery, mirroring the Android SDK's AggregateQuerySnapshot.

The results of an AggregateQuery, mirroring the Android SDK's AggregateQuerySnapshot.

Link copied to clipboard

Where an aggregation is computed.

Link copied to clipboard
class Blob : Comparable<Blob>

Binary data stored in a document, mirroring com.google.firebase.firestore.Blob from the Firebase Android SDK: plain bytes, or BSON binary data with a subType. A blob of subtype 0 is stored as plain bytes, as the SDKs do.

Link copied to clipboard
class BsonObjectId(val value: String)

A BSON ObjectId, mirroring com.google.firebase.firestore.BsonObjectId from the Firebase Android SDK.

Link copied to clipboard
class BsonTimestamp(val seconds: Long, val increment: Long)

A BSON Timestamp, mirroring com.google.firebase.firestore.BsonTimestamp from the Firebase Android SDK.

Link copied to clipboard
actual class CollectionReference : Query

A collection, mirroring the Android SDK's CollectionReference: a Query over its documents that can also add to it.

actual class CollectionReference : Query
expect class CollectionReference : Query

A collection, mirroring the Android SDK's CollectionReference: a Query over its documents that can also add to it.

actual class CollectionReference : Query
actual class CollectionReference : Query
Link copied to clipboard
class Decimal128Value(val stringValue: String)

A 128-bit decimal, mirroring com.google.firebase.firestore.Decimal128Value from the Firebase Android SDK. Values are equal when they are numerically equal (1.0 and 1, 0 and -0, NaN and NaN), as on Android, where the SDK compares them as 128-bit binary floating-point numbers; here they are compared exactly as decimals, which differs only for values beyond that precision or range.

Link copied to clipboard
actual class DocumentChange

A change to the results of a query, mirroring the Android SDK's DocumentChange.

actual class DocumentChange
expect class DocumentChange

A change to the results of a query, mirroring the Android SDK's DocumentChange.

actual class DocumentChange
actual class DocumentChange
Link copied to clipboard

Marks a property that receives the document id when a document is mapped to a custom class on Android.

Link copied to clipboard
actual class DocumentReference

A document location, mirroring com.google.firebase.firestore.DocumentReference from the Firebase Android SDK: the document may or may not exist; reads, writes and listeners are performed through it. Data is written as maps of field values (a custom class is only mapped by reflection on Android).

actual class DocumentReference
expect class DocumentReference

A document location, mirroring com.google.firebase.firestore.DocumentReference from the Firebase Android SDK: the document may or may not exist; reads, writes and listeners are performed through it. Data is written as maps of field values (a custom class is only mapped by reflection on Android).

actual class DocumentReference
actual class DocumentReference
Link copied to clipboard
actual open class DocumentSnapshot

The data of a document read from Firestore, mirroring com.google.firebase.firestore.DocumentSnapshot from the Firebase Android SDK. Field values are the Firestore types: Boolean, Long, Double, String, Timestamp, GeoPoint, Blob, DocumentReference, VectorValue, List and Map, and the BSON types BsonObjectId, BsonTimestamp, Decimal128Value, Int32Value, MaxKey, MinKey and RegexValue, as on Android; a document that does not exist has no data.

actual open class DocumentSnapshot
expect open class DocumentSnapshot

The data of a document read from Firestore, mirroring com.google.firebase.firestore.DocumentSnapshot from the Firebase Android SDK. Field values are the Firestore types: Boolean, Long, Double, String, Timestamp, GeoPoint, Blob, DocumentReference, VectorValue, List and Map, and the BSON types BsonObjectId, BsonTimestamp, Decimal128Value, Int32Value, MaxKey, MinKey and RegexValue, as on Android; a document that does not exist has no data.

actual open class DocumentSnapshot
actual open class DocumentSnapshot
Link copied to clipboard
fun interface EventListener<T>

Receives the snapshots of a document or query, or the error that ended the listener.

Link copied to clipboard

Excludes a property from the reflective mapping on Android.

Link copied to clipboard
actual class FieldPath

A path to a field of a document, mirroring com.google.firebase.firestore.FieldPath from the Firebase Android SDK.

expect class FieldPath

A path to a field of a document, mirroring com.google.firebase.firestore.FieldPath from the Firebase Android SDK.

actual class FieldPath
Link copied to clipboard
actual abstract class FieldValue

A sentinel written in place of a field value, mirroring com.google.firebase.firestore.FieldValue from the Firebase Android SDK: a server timestamp, a deletion or a transform of the current value. It also creates VectorValues.

expect abstract class FieldValue

A sentinel written in place of a field value, mirroring com.google.firebase.firestore.FieldValue from the Firebase Android SDK: a server timestamp, a deletion or a transform of the current value. It also creates VectorValues.

actual abstract class FieldValue

A sentinel value; operation and arguments are converted to the platform SDK's field value when written.

Link copied to clipboard
actual class Filter

A query condition, mirroring com.google.firebase.firestore.Filter from the Firebase Android SDK: field conditions combined with and and or, applied with Query.where.

expect class Filter

A query condition, mirroring com.google.firebase.firestore.Filter from the Firebase Android SDK: field conditions combined with and and or, applied with Query.where.

actual class Filter

A condition tree; node is null for the empty filter of the public constructor, which matches everything.

Link copied to clipboard
actual class FirebaseFirestore

The entry point of Cloud Firestore, mirroring com.google.firebase.firestore.FirebaseFirestore from the Firebase Android SDK: obtained per FirebaseApp and database with the static accessors (or the Firebase.firestore extensions), it creates references, batches and transactions and manages the network and the local cache.

actual class FirebaseFirestore
expect class FirebaseFirestore

The entry point of Cloud Firestore, mirroring com.google.firebase.firestore.FirebaseFirestore from the Firebase Android SDK: obtained per FirebaseApp and database with the static accessors (or the Firebase.firestore extensions), it creates references, batches and transactions and manages the network and the local cache.

actual class FirebaseFirestore

The JS SDK's Firestore must be initialised with its settings (and connected to the emulator) before any use, so the underlying object is created on first use with the settings set until then, as the Android SDK's semantics require. Instances are cached per app and database, as the Android SDK's getInstance.

actual class FirebaseFirestore

The JS SDK's Firestore must be initialised with its settings (and connected to the emulator) before any use, so the underlying object is created on first use with the settings set until then, as the Android SDK's semantics require. Instances are cached per app and database, as the Android SDK's getInstance.

Link copied to clipboard

A failed Firestore operation, mirroring com.google.firebase.firestore.FirebaseFirestoreException from the Firebase Android SDK; code is the gRPC-style Code of the failure.

Link copied to clipboard

The settings of a FirebaseFirestore, mirroring com.google.firebase.firestore.FirebaseFirestoreSettings from the Firebase Android SDK: built with Builder (or the firestoreSettings extension) and applied with FirebaseFirestore.firestoreSettings before the instance is used.

The settings of a FirebaseFirestore, mirroring com.google.firebase.firestore.FirebaseFirestoreSettings from the Firebase Android SDK: built with Builder (or the firestoreSettings extension) and applied with FirebaseFirestore.firestoreSettings before the instance is used.

The settings of a FirebaseFirestore, mirroring com.google.firebase.firestore.FirebaseFirestoreSettings from the Firebase Android SDK: built with Builder (or the firestoreSettings extension) and applied with FirebaseFirestore.firestoreSettings before the instance is used.

Link copied to clipboard
class GeoPoint(val latitude: Double, val longitude: Double) : Comparable<GeoPoint>

A geographical point, mirroring com.google.firebase.firestore.GeoPoint from the Firebase Android SDK.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class IgnoreExtraProperties

Ignores document fields without a matching property in the reflective mapping on Android.

Link copied to clipboard
class Int32Value(val value: Int)

A 32-bit integer, stored as such rather than as Firestore's 64-bit integer, mirroring com.google.firebase.firestore.Int32Value from the Firebase Android SDK.

Link copied to clipboard
fun interface ListenerRegistration

A registered snapshot listener; remove stops it.

Link copied to clipboard

Where a snapshot listener listens: the default (cache then backend) or the local cache only.

Link copied to clipboard
actual abstract class LoadBundleTask : Task<LoadBundleTaskProgress>

The loading of a bundle, mirroring the Android SDK's LoadBundleTask: a Task of the final LoadBundleTaskProgress that also reports intermediate progress to addOnProgressListener. Only created by FirebaseFirestore.loadBundle.

expect abstract class LoadBundleTask : Task<LoadBundleTaskProgress>

The loading of a bundle, mirroring the Android SDK's LoadBundleTask: a Task of the final LoadBundleTaskProgress that also reports intermediate progress to addOnProgressListener. Only created by FirebaseFirestore.loadBundle.

actual abstract class LoadBundleTask : Task<LoadBundleTaskProgress>

Created by the platform implementations of FirebaseFirestore.loadBundle as a LoadBundleTaskImpl.

Link copied to clipboard

The progress of a LoadBundleTask.

The progress of a LoadBundleTask.

The progress of a LoadBundleTask.

Link copied to clipboard

The configuration of the local cache: PersistentCacheSettings or MemoryCacheSettings.

Link copied to clipboard
class MaxKey

The BSON MaxKey, which orders after every other value, mirroring com.google.firebase.firestore.MaxKey from the Firebase Android SDK.

Link copied to clipboard

An in-memory local cache, mirroring the Android SDK's MemoryCacheSettings; built with newBuilder.

An in-memory local cache, mirroring the Android SDK's MemoryCacheSettings; built with newBuilder.

An in-memory local cache, mirroring the Android SDK's MemoryCacheSettings; built with newBuilder.

Link copied to clipboard

Eager garbage collection: documents are dropped as soon as no listener uses them; the Android SDK's MemoryEagerGcSettings.

Eager garbage collection: documents are dropped as soon as no listener uses them; the Android SDK's MemoryEagerGcSettings.

Eager garbage collection: documents are dropped as soon as no listener uses them; the Android SDK's MemoryEagerGcSettings.

Link copied to clipboard

How an in-memory cache is garbage collected: MemoryEagerGcSettings or MemoryLruGcSettings.

Link copied to clipboard

Least-recently-used garbage collection up to a size, the Android SDK's MemoryLruGcSettings.

Least-recently-used garbage collection up to a size, the Android SDK's MemoryLruGcSettings.

Least-recently-used garbage collection up to a size, the Android SDK's MemoryLruGcSettings.

Link copied to clipboard

Whether snapshot listeners are notified of metadata-only changes.

Link copied to clipboard
class MinKey

The BSON MinKey, which orders before every other value, mirroring com.google.firebase.firestore.MinKey from the Firebase Android SDK.

Link copied to clipboard

Receives the progress of a LoadBundleTask.

Link copied to clipboard

Manages the indexes of the persistent cache, mirroring the Android SDK's PersistentCacheIndexManager.

Manages the indexes of the persistent cache, mirroring the Android SDK's PersistentCacheIndexManager.

Link copied to clipboard

A persistent (on-disk) local cache, mirroring the Android SDK's PersistentCacheSettings; built with newBuilder.

A persistent (on-disk) local cache, mirroring the Android SDK's PersistentCacheSettings; built with newBuilder.

A persistent (on-disk) local cache, mirroring the Android SDK's PersistentCacheSettings; built with newBuilder.

Link copied to clipboard
class Pipeline

A pipeline: a source (from FirebaseFirestore.pipeline) followed by stages that filter, transform and aggregate the documents, run by execute. Immutable: each stage method returns a new pipeline with the stage appended.

Link copied to clipboard

A result of a Pipeline: a document of the last stage, with its fields and, for a stored document, its reference.

Link copied to clipboard

The sources of the pipelines of a FirebaseFirestore, from FirebaseFirestore.pipeline.

Link copied to clipboard

The document field name of a property in the reflective mapping on Android.

Link copied to clipboard
actual open class Query

A query over the documents of a collection or collection group, mirroring com.google.firebase.firestore.Query from the Firebase Android SDK: immutable, every method returns a new query with the constraint added.

actual open class Query
expect open class Query

A query over the documents of a collection or collection group, mirroring com.google.firebase.firestore.Query from the Firebase Android SDK: immutable, every method returns a new query with the constraint added.

actual open class Query
actual open class Query
Link copied to clipboard

A DocumentSnapshot from a query, which is guaranteed to exist.

A DocumentSnapshot from a query, which is guaranteed to exist.

Link copied to clipboard

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

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

Link copied to clipboard
class RegexValue(val pattern: String, val options: String)

A BSON regular expression, mirroring com.google.firebase.firestore.RegexValue from the Firebase Android SDK.

Link copied to clipboard

Marks a property populated with the server timestamp in the reflective mapping on Android.

Link copied to clipboard
actual class SetOptions

How a set merges with an existing document, mirroring com.google.firebase.firestore.SetOptions from the Firebase Android SDK.

expect class SetOptions

How a set merges with an existing document, mirroring com.google.firebase.firestore.SetOptions from the Firebase Android SDK.

actual class SetOptions
Link copied to clipboard

The options of a snapshot listener, mirroring the Android SDK's SnapshotListenOptions.

Link copied to clipboard
actual class SnapshotMetadata

The metadata of a snapshot, mirroring the Android SDK's SnapshotMetadata.

actual class SnapshotMetadata
expect class SnapshotMetadata

The metadata of a snapshot, mirroring the Android SDK's SnapshotMetadata.

actual class SnapshotMetadata
actual class SnapshotMetadata
Link copied to clipboard
enum Source : Enum<Source>

Where a one-time read reads from.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class ThrowOnExtraProperties

Fails the reflective mapping on Android for document fields without a matching property.

Link copied to clipboard
actual class Transaction

A transaction, mirroring com.google.firebase.firestore.Transaction from the Firebase Android SDK: the writes are applied atomically when the Function returns. Reads inside a transaction (get) are synchronous on Android, the JVM and Apple platforms and are declared in the nonJs source set, as the JS SDK only reads asynchronously.

actual class Transaction
expect class Transaction

A transaction, mirroring com.google.firebase.firestore.Transaction from the Firebase Android SDK: the writes are applied atomically when the Function returns. Reads inside a transaction (get) are synchronous on Android, the JVM and Apple platforms and are declared in the nonJs source set, as the JS SDK only reads asynchronously.

actual class Transaction
actual class Transaction
Link copied to clipboard

The options of a transaction, mirroring the Android SDK's TransactionOptions.

Link copied to clipboard
actual class VectorValue

A vector of doubles stored in a document, such as an embedding for vector search, mirroring com.google.firebase.firestore.VectorValue from the Firebase Android SDK; FieldValue.vector creates one. Vectors are equal when their values are, compared as DoubleArray.contentEquals does (NaN equals itself, 0.0 and -0.0 differ), as on Android.

expect class VectorValue

A vector of doubles stored in a document, such as an embedding for vector search, mirroring com.google.firebase.firestore.VectorValue from the Firebase Android SDK; FieldValue.vector creates one. Vectors are equal when their values are, compared as DoubleArray.contentEquals does (NaN equals itself, 0.0 and -0.0 differ), as on Android.

actual class VectorValue

A copy of values; converted to the platform SDK's vector value when written.

Link copied to clipboard
actual class WriteBatch

A batch of writes, mirroring com.google.firebase.firestore.WriteBatch from the Firebase Android SDK: applied atomically by commit.

actual class WriteBatch
expect class WriteBatch

A batch of writes, mirroring com.google.firebase.firestore.WriteBatch from the Firebase Android SDK: applied atomically by commit.

actual class WriteBatch
actual class WriteBatch

Properties

Link copied to clipboard

The FirebaseFirestore of the default FirebaseApp; the Android SDK's Firebase.firestore.

Functions

Link copied to clipboard
inline fun <T> DocumentReference.dataObjects(metadataChanges: MetadataChanges = MetadataChanges.EXCLUDE): Flow<T?>

The document data as T (see toObject) and every change to it as a Flow.

inline fun <T> Query.dataObjects(metadataChanges: MetadataChanges = MetadataChanges.EXCLUDE): Flow<List<T>>

The query results as T (see toObject) and every change to them as a Flow.

Link copied to clipboard
Link copied to clipboard

FirebaseFirestoreSettings built with init, as the Android SDK's firestoreSettings.

Link copied to clipboard
inline fun <T> DocumentSnapshot.getField(fieldPath: FieldPath): T?
inline fun <T> DocumentSnapshot.getField(fieldPath: FieldPath, serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): T?

The value of fieldPath as T; on Apple platforms and JS a cast of DocumentSnapshot.get.

inline fun <T> DocumentSnapshot.getField(field: String): T?
inline fun <T> DocumentSnapshot.getField(field: String, serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): T?

The value of field as T; on Apple platforms and JS a cast of DocumentSnapshot.get.

Link copied to clipboard

MemoryCacheSettings built with init, as the Android SDK's memoryCacheSettings.

Link copied to clipboard

MemoryEagerGcSettings built with init, as the Android SDK's memoryEagerGcSettings.

Link copied to clipboard

MemoryLruGcSettings built with init, as the Android SDK's memoryLruGcSettings.

Link copied to clipboard

PersistentCacheSettings built with init, as the Android SDK's persistentCacheSettings.

Link copied to clipboard
fun DocumentReference.snapshots(metadataChanges: MetadataChanges = MetadataChanges.EXCLUDE): Flow<DocumentSnapshot>

The document and every change to it as a Flow, which fails if the listener fails.

fun Query.snapshots(metadataChanges: MetadataChanges = MetadataChanges.EXCLUDE): Flow<QuerySnapshot>

The query results and every change to them as a Flow, which fails if the listener fails.

Link copied to clipboard
inline fun <T> DocumentSnapshot.toObject(): T?

The document as T; on Apple platforms and JS a cast of DocumentSnapshot.data.

inline fun <T> DocumentSnapshot.toObject(serverTimestampBehavior: DocumentSnapshot.ServerTimestampBehavior): T?

The document as T; on Apple platforms and JS a cast of DocumentSnapshot.getData.

Link copied to clipboard
inline fun <T> QuerySnapshot.toObjects(): List<T>

The documents as T; on Apple platforms and JS casts of DocumentSnapshot.data.

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

The documents as T; on Apple platforms and JS casts of DocumentSnapshot.getData.