ditto-lib / live.ditto / DittoSingleDocumentLiveQuery

DittoSingleDocumentLiveQuery

class DittoSingleDocumentLiveQuery<T : Any> : Closeable

The type that is returned when calling observe or observeLocal on a DittoPendingIDSpecificOperation object. It handles the logic for calling the event handler that is provided to observe or observeLocal calls. DittoSingleDocumentLiveQuery objects must be kept in scope for as long as you with to have your event handler be called when there is an update to the referenced document.

Properties

collectionName

val collectionName: String

the name of the collection that the live query is based on.

Functions

close

fun close(): Unit