RealmObject

interface RealmObject

Marker interface to define a model (managed by Realm).

Extensions

delete
Link copied to clipboard
fun RealmObject.delete()

Deletes the RealmObject.

isFrozen
Link copied to clipboard
fun RealmObject.isFrozen(): Boolean

Returns whether the object is frozen or not.

isManaged
Link copied to clipboard
fun RealmObject.isManaged(): Boolean

Returns whether or not this object is managed by Realm.

isValid
Link copied to clipboard
fun RealmObject.isValid(): Boolean

Returns true if this object is still valid to use, i.e. the Realm is open and the underlying object has not been deleted. Unmanaged objects are always valid.

version
Link copied to clipboard
fun RealmObject.version(): VersionId

Returns the Realm version of this object. This version number is tied to the transaction the object was read from.