DittoStoreObserver

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

Properties

Link copied to clipboard

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

Arguments for the queryString.

Link copied to clipboard

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

Functions

Link copied to clipboard
open override fun close()

Stops the store observer from receiving updates.