DynamicRealmObject

interface DynamicRealmObject : RealmObject

A dynamic realm object gives access to the data of the realm objects through a generic string based API instead of the conventional Realm API that only allows access through the properties of the corresponding schema classes supplied in the configuration.

Functions

getNullableValue
Link copied to clipboard
abstract fun <T : Any> getNullableValue(propertyName: String, clazz: KClass<T>): T?
Returns the value of a specific nullable value property.
getNullableValueList
Link copied to clipboard
abstract fun <T : Any> getNullableValueList(propertyName: String, clazz: KClass<T>): RealmList<T?>
Returns the list of nullable elements referenced by the property name as a RealmList.
getObject
Link copied to clipboard
abstract fun getObject(propertyName: String): DynamicRealmObject?
Returns the value of a object property.
getObjectList
Link copied to clipboard
abstract fun getObjectList(propertyName: String): RealmList<out DynamicRealmObject>
Returns the list of objects referenced by the property name as a RealmList.
getValue
Link copied to clipboard
abstract fun <T : Any> getValue(propertyName: String, clazz: KClass<T>): T
Returns the value of a specific non-nullable value property.
getValueList
Link copied to clipboard
abstract fun <T : Any> getValueList(propertyName: String, clazz: KClass<T>): RealmList<T>
Returns the list of non-nullable value elements referenced by the property name as a RealmList.

Properties

type
Link copied to clipboard
abstract val type: String
The type of the object.

Inheritors

DynamicMutableRealmObject
Link copied to clipboard

Extensions

getNullableValue
Link copied to clipboard
inline fun <T : Any> DynamicRealmObject.getNullableValue(fieldName: String): T?
Returns the value of a specific nullable value property.
getNullableValueList
Link copied to clipboard
inline fun <T : Any> DynamicRealmObject.getNullableValueList(fieldName: String): RealmList<T?>
Returns the list of nullable elements referenced by the property name as a RealmList.
getValue
Link copied to clipboard
inline fun <T : Any> DynamicRealmObject.getValue(fieldName: String): T
Returns the value of a specific value property.
getValueList
Link copied to clipboard
inline fun <T : Any> DynamicRealmObject.getValueList(fieldName: String): RealmList<T>
Returns the list referenced by the property name as a RealmList.