SingleQueryChange

This sealed class describe the possible events that can be observed on a RealmSingleQuery flow.

It extends the sealed interface ObjectChange by adding the new event PendingObject on top of its hierarchy. See RealmSingleQuery.asFlow for more information on how these events are emitted.

Object event hierarchy diagram:

                                 ┌───────────────────┐
│ SingleQueryChange │
└─────────┬─────────┘
┌────────────┴───────────┐
┌──────▼───────┐ ┌───────▼───────┐
│ ObjectChange │ │ PendingObject │
└──────┬───────┘ └───────────────┘
┌────────────────┼────────────────────┐
┌────────▼──────┐ ┌──────▼────────┐ ┌────────▼──────┐
│ InitialObject │ │ UpdatedObject │ │ DeletedObject │
└───────────────┘ └───────────────┘ └───────────────┘

Inheritors

Properties

Link copied to clipboard
abstract val obj: O?

Returns the newest state of object being observed. null is returned if there is no object to observe.