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