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.
The loadBundle overloads taking JVM streams are declared through the error-deprecated java.io.InputStream and java.nio.ByteBuffer stand-ins, pointing common code at the kotlinx-io loadBundle(RawSource) extension (see Bundles.kt) and at loadBundle(ByteArray). The pipeline API is mirrored in Pipeline.kt and the pipeline package.
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.
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.
Types
Properties
The FirebaseApp this instance belongs to.
The iOS SDK does not expose the cache settings it was given, so the settings set through the layer are kept per instance.
The settings; can only be set before the instance is used.
The manager of the persistent cache's indexes, or null when persistence is disabled.
Functions
Clears the persistent cache; only allowed while the instance is not started or is terminated.
Disables network access; reads are served from the cache and writes are queued.
Android/JVM only: loads a bundle from a java.io.InputStream; common code streams one through the kotlinx-io loadBundle(RawSource).
Android/JVM only: loads a bundle from a java.nio.ByteBuffer; common code passes its bytes to loadBundle.
Loads a Firestore bundle into the local cache.
Loads a Firestore bundle into the local cache as bundleData is read, closing it at the end; the kotlinx-io form of loadBundle(InputStream). On Android and the JVM the SDK reads the source as a stream, on Apple platforms as an NSInputStream and on JS through a ReadableStream, so a bundle streams on every platform.
Runs updateFunction in a transaction, retrying it on contention, and completes with its result.
Runs updateFunction in a transaction with options and completes with its result.
Terminates the instance; further use fails and a new instance is returned by the accessors.
Completes when all the pending writes have been acknowledged by the backend.