UpdatePolicy

enum UpdatePolicy : Enum<UpdatePolicy>

Update policy that controls how to handle import of objects with existing primary keys when import them with MutableRealm.copyToRealm and DynamicMutableRealm.copyToRealm.

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. Properties will be marked as updated in change listeners, even if the property was updated to the same value.

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