DittoStoreObserver

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

Create a store observer by calling DittoStore.registerObserver. The store observer will remain active until the owning Ditto instance goes out of scope or the DittoStoreObserver.close is called.

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 closed if the owning Ditto instance goes out of scope.

Link copied to clipboard

The query arguments of the store observer (as passed when registering it).

Link copied to clipboard

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

Functions

Link copied to clipboard
open override fun close()

Cancels the observation. The handler that was passed in when registering this store observer will no longer be called. No-op if this store observer is already cancelled or the owning Ditto instance goes out of scope.