RealmObject

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

Functions

Link copied to clipboard
inline fun <T : TypedRealmObject> RealmObject.backlinks(sourceProperty: KProperty1<T, *>): BacklinksDelegate<T>

Returns a BacklinksDelegate that represents the inverse relationship between two Realm models.

fun <T : TypedRealmObject> RealmObject.backlinks(sourceProperty: KProperty1<T, *>, sourceClass: KClass<T>): BacklinksDelegate<T>

Defines a collection of backlinks that represents the inverse relationship between two Realm models. Any direct relationship, one-to-one or one-to-many, can be reversed by backlinks.

Link copied to clipboard

Returns whether the object is frozen or not.

Link copied to clipboard

Returns whether or not this object is managed by Realm.

Link copied to clipboard

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.

Link copied to clipboard

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