Represents a Cloud Firestore database and is the entry point for all Cloud Firestore operations.
Subclassing Note: Cloud 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 Method Summary
Creates a write batch, used for performing multiple writes as a single atomic operation.
Clears the persistent storage, including pending writes and cached documents.
Disables network access for this instance.
Returns the FirebaseApp instance to which this
Returns the settings used by this
Globally enables / disables Cloud Firestore logging for the SDK.
Waits until all currently pending writes for the active user have been acknowledged by the backend.
Inherited Method Summary
public ListenerRegistration addSnapshotsInSyncListener (Runnable runnable)
Attaches a listener for a snapshots-in-sync event. The snapshots-in-sync event indicates that all listeners affected by a given change have fired, even if a single server-generated change affects multiple listeners.
NOTE: The snapshots-in-sync event only indicates that listeners are in sync with each other, but does not relate to whether those snapshots are in sync with the server. Use SnapshotMetadata in the individual listeners to determine if a snapshot is from the cache or the server.
|runnable||A callback to be called every time all snapshot listeners are in sync with each other.|
- A registration object that can be used to remove the listener.