MutableRealm
Represents the writeable state of a Realm file.
To modify data in a Realm, use instances of this class. These are provided and managed automatically through either Realm.write or Realm.writeBlocking.
All objects created and/or obtained from the mutable realm in a write-transaction are bound to the thread executing the transaction. All operations on the mutable realm or on any of the objects contained in that realm must execute on the thread executing the transaction. The only exception is objects returned from Realm.write and Realm.writeBlocking, which are frozen and remain tied to the resulting version of the write-transaction.
Functions
Cancel the write. Any changes will not be persisted to disk.
Creates a copy of an object in the Realm.
Deletes the object from the underlying Realm.
Get latest version of an object.
Returns the current number of active versions in the Realm file. A large number of active versions can have a negative impact on the Realm file size on disk.
Check if this Realm has been closed or not. If the Realm has been closed, most methods will throw IllegalStateException if called.
Returns the results of querying for all objects of a specific type.