SingleQueryChange

interface SingleQueryChange<O : BaseRealmObject>

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 │
└───────────────┘ └───────────────┘ └───────────────┘

Properties

obj
Link copied to clipboard
abstract val obj: O?
Returns the newest state of object being observed.

Inheritors

PendingObject
Link copied to clipboard
ObjectChange
Link copied to clipboard