getObject

abstract fun getObject(propertyName: String): DynamicRealmObject?

Returns the value of a object property.

The class argument must be the KClass of the RealmStorageType for the property.

To retrieve values for value or list properties use the get<X>Value and get<X>List variants.

Return

the RealmList value.

Parameters

propertyName

the name of the property to retrieve the value for.

clazz

the Kotlin class of the value.

T

the type of the value.

Throws

if the class doesn't contain a field with the specific name, if clazz doesn't match the property's RealmStorageType.kClass or if trying to retrieve collection properties.