schema

fun schema(classes: Set<KClass<out RealmObject>>): S

Sets the classes of the schema.

The elements of the set must be direct class literals.

Parameters

classes

the set of classes that the schema consists of.

fun schema(vararg classes: KClass<out RealmObject>): S

Sets the classes of the schema.

The classes arguments must be direct class literals.

Parameters

classes

the classes that the schema consists of.

var schema: Set<KClass<out RealmObject>>