DittoStoreObserver

class DittoStoreObserver : Closeable

A store observer invokes an observation handler whenever results for its query change.

Create a store observer by calling registerObserver() of DittoStore. The store observer will remain active until the owning Ditto instance goes out of scope or the [DittoStoreObserver] is close()-ed explicitly.

Since

4.5.0

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()

Stops the store observer from receiving updates.

Properties

Link copied to clipboard
val isClosed: Boolean

Convenience property for determining whether the store observer is active or has been closed. A store observer is considered cancelled if the owning Ditto instance goes out of scope.

Link copied to clipboard
val queryArguments: Map<String, Any?>? = null

Arguments for the queryString.

Link copied to clipboard
val queryString: String

The query string of the store observer (as passed when adding it to the store).