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. A @Serializable class is written with the setData and updateData extensions, which map it through FirebaseFormat.Firestore on every platform; the SDK's set and update(Map), which map a class by reflection on Android, are deprecated with an error towards them.
Not mirrored: the Activity and Executor overloads of addSnapshotListener (see api/android-sdk/exclusions.txt).
Properties
The underlying Firebase JS SDK object.
The underlying Firebase JS SDK object.
The collection containing this document.
Functions
Not in the common API (the executor is Android-only); the dev.gitlive layer's Android listeners bind to this member.
Listens to the document and every change to it.
Listens to the document, also notifying listener of metadata changes when metadataChanges is INCLUDE.
Listens to the document with options.
Not in the common API (the executor is Android-only); the dev.gitlive layer's Android listeners bind to this member.
The SDK's dataObjects flow; deprecated towards com.google.firebase.serialization.dataObjects.
Reads the document, from the cache and the backend as available.
Reads the document from source.
Writes data, a map of field values or a @Serializable class, replacing the document (see DocumentReference.set). The data is mapped by the format with its static type, so a generic class maps too; an Any maps by its runtime type.
The document and every change to it as a Flow, which fails if the listener fails.
Updates the fields in data; fails if the document does not exist.
Updates fieldPath to value and the further field path/value pairs in moreFieldsAndValues.
Updates field to value and the further field/value pairs in moreFieldsAndValues.
Updates the fields in data, each a field value or a @Serializable class mapped by the format (see DocumentReference.update).