insert

Insert a dynamic version of a AsymmetricRealmObject into a realm. Since asymmetric objects are "write-only", it is not possible to access the managed data after it has been inserted.

Parameters

obj

the asymmetric object to insert.

Throws

if the object is not an asymmetric object, the object graph of obj either contains an object with a primary key value that already exists or an object from a previous version, or if a property does not match the underlying schema.


Insert an AsymmetricRealmObject into Realm. Since asymmetric objects are "write-only", it is not possible to access the managed data after it has been inserted.

Parameters

obj

the object to insert.

Throws

if the object graph of obj either contains an object with a primary key value that already exists or an object from a previous version.