RealmClass

interface RealmClass

A RealmClass describing the object model of a specific class.

Functions

get
Link copied to clipboard
abstract operator fun get(key: String): RealmProperty?

Index operator to lookup a specific RealmProperty from its persisted property name.

Properties

isEmbedded
Link copied to clipboard
abstract val isEmbedded: Boolean

Returns whether or not the class is embedded.

kind
Link copied to clipboard
abstract val kind: RealmClassKind

Returns what type of Realm model class this is.

name
Link copied to clipboard
abstract val name: String

The name of the object model.

primaryKey
Link copied to clipboard
abstract val primaryKey: RealmProperty?

The primary key property of the object model or null if the object model doesn't have a primary key.

properties
Link copied to clipboard
abstract val properties: Collection<RealmProperty>

The properties of the object model.