कंसोल पर जाएं

FirebaseFirestore

public class FirebaseFirestore extends Object

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

ListenerRegistration
addSnapshotsInSyncListener(Runnable runnable)
Attaches a listener for a snapshots-in-sync event.
ListenerRegistration
addSnapshotsInSyncListener(Executor executor, Runnable runnable)
Attaches a listener for a snapshots-in-sync event.
ListenerRegistration
addSnapshotsInSyncListener(Activity activity, Runnable runnable)
Attaches a listener for a snapshots-in-sync event.
WriteBatch
batch()
Creates a write batch, used for performing multiple writes as a single atomic operation.
Task<Void>
clearPersistence()
Clears the persistent storage, including pending writes and cached documents.
CollectionReference
collection(String collectionPath)
Gets a CollectionReference instance that refers to the collection at the specified path within the database.
Query
collectionGroup(String collectionId)
Creates and returns a new Query that includes all documents in the