addDocumentChangeListener
Add a change listener to listen to change events occurring to a document of the given document id. To remove the listener, call remove() function on the returned listener token.
Parameters
document ID
The listener to post changes.
See also
Add a change listener to listen to change events occurring to a document of the given document id.
The CoroutineContext will be used to launch coroutines the listener will be called on. Coroutines will be launched in a CoroutineScope that is canceled when the listener is removed.
Return
An opaque listener token object for removing the listener.
Parameters
document ID
coroutine context in which the listener will run
The listener to post changes.
See also
Add a change listener to listen to change events occurring to a document of the given document id.
The CoroutineScope will be used to launch coroutines the listener will be called on. The listener is removed when the scope is canceled.
Parameters
document ID
coroutine scope in which the listener will run
callback