documentChangeFlow

fun Collection.documentChangeFlow(documentId: String, coroutineContext: CoroutineContext? = null): Flow<DocumentChange>(source)

A Flow of document changes

Parameters

documentId

the document ID

coroutineContext

optional CoroutineContext on which to run the change listener: default is the flow collector's CoroutineContext

See also


fun Database.documentChangeFlow(documentId: String, coroutineContext: CoroutineContext? = null): Flow<DocumentChange>(source)

Deprecated

Use Collection.documentChangeFlow()

Replace with

defaultCollection.documentChangeFlow(documentId, coroutineContext)

A Flow of document changes.

Parameters

documentId

the document ID

coroutineContext

optional CoroutineContext on which to run the change listener: default is the flow collector's CoroutineContext

See also