Skip to content

Commit 288ae9a

Browse files
committed
toFlow -> snapshots
1 parent 2e51a63 commit 288ae9a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

firebase-firestore/ktx/api.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ package com.google.firebase.firestore.ktx {
1010
method @Nullable public static inline <reified T> T getField(@NonNull com.google.firebase.firestore.DocumentSnapshot, @NonNull com.google.firebase.firestore.FieldPath fieldPath);
1111
method @Nullable public static inline <reified T> T getField(@NonNull com.google.firebase.firestore.DocumentSnapshot, @NonNull com.google.firebase.firestore.FieldPath fieldPath, @NonNull com.google.firebase.firestore.DocumentSnapshot.ServerTimestampBehavior serverTimestampBehavior);
1212
method @NonNull public static com.google.firebase.firestore.FirebaseFirestore getFirestore(@NonNull com.google.firebase.ktx.Firebase);
13-
method @NonNull public static kotlinx.coroutines.flow.Flow<com.google.firebase.firestore.DocumentSnapshot> toFlow(@NonNull com.google.firebase.firestore.DocumentReference, @NonNull com.google.firebase.firestore.MetadataChanges metadataChanges = com.google.firebase.firestore.MetadataChanges.EXCLUDE, @Nullable Integer bufferCapacity = -1);
14-
method @NonNull public static kotlinx.coroutines.flow.Flow<com.google.firebase.firestore.QuerySnapshot> toFlow(@NonNull com.google.firebase.firestore.Query, @NonNull com.google.firebase.firestore.MetadataChanges metadataChanges = com.google.firebase.firestore.MetadataChanges.EXCLUDE, @Nullable Integer bufferCapacity = -1);
13+
method @NonNull public static kotlinx.coroutines.flow.Flow<com.google.firebase.firestore.DocumentSnapshot> snapshots(@NonNull com.google.firebase.firestore.DocumentReference, @NonNull com.google.firebase.firestore.MetadataChanges metadataChanges = com.google.firebase.firestore.MetadataChanges.EXCLUDE, @Nullable Integer bufferCapacity = -1);
14+
method @NonNull public static kotlinx.coroutines.flow.Flow<com.google.firebase.firestore.QuerySnapshot> snapshots(@NonNull com.google.firebase.firestore.Query, @NonNull com.google.firebase.firestore.MetadataChanges metadataChanges = com.google.firebase.firestore.MetadataChanges.EXCLUDE, @Nullable Integer bufferCapacity = -1);
1515
method @Nullable public static inline <reified T> T toObject(@NonNull com.google.firebase.firestore.DocumentSnapshot);
1616
method @Nullable public static inline <reified T> T toObject(@NonNull com.google.firebase.firestore.DocumentSnapshot, @NonNull com.google.firebase.firestore.DocumentSnapshot.ServerTimestampBehavior serverTimestampBehavior);
1717
method @NonNull public static inline <reified T> T toObject(@NonNull com.google.firebase.firestore.QueryDocumentSnapshot);

firebase-firestore/ktx/src/main/kotlin/com/google/firebase/firestore/ktx/Firestore.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class FirebaseFirestoreKtxRegistrar : ComponentRegistrar {
183183
* @param metadataChanges controls metadata-only changes. Default: [MetadataChanges.EXCLUDE]
184184
* @param bufferCapacity the buffer capacity as in [Flow.buffer] or null to not buffer at all
185185
*/
186-
fun DocumentReference.toFlow(
186+
fun DocumentReference.snapshots(
187187
metadataChanges: MetadataChanges = MetadataChanges.EXCLUDE,
188188
bufferCapacity: Int? = Channel.CONFLATED
189189
): Flow<DocumentSnapshot> {
@@ -215,7 +215,7 @@ fun DocumentReference.toFlow(
215215
* @param metadataChanges controls metadata-only changes. Default: [MetadataChanges.EXCLUDE]
216216
* @param bufferCapacity the buffer capacity as in [Flow.buffer] or null to not buffer at all
217217
*/
218-
fun Query.toFlow(
218+
fun Query.snapshots(
219219
metadataChanges: MetadataChanges = MetadataChanges.EXCLUDE,
220220
bufferCapacity: Int? = Channel.CONFLATED
221221
): Flow<QuerySnapshot> {

0 commit comments

Comments
 (0)