UpdatePolicy

enum UpdatePolicy : Enum<MutableRealm.UpdatePolicy>

Update policy that sets the behavior when importing objects with copyToRealm that has the same primary key as objects already in the realm.

See also

Entries

ALL
Link copied to clipboard
ALL()
Update policy that will update all properties on any existing objects identified with the same primary key.
ERROR
Link copied to clipboard
Update policy that will disallow updating existing objects and instead throw an exception if an object already exists with the same primary key.

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int