The following type definitions are available globally.
A block type which provides both the old and new versions of an object in the Realm. Object properties can only be accessed using keyed subscripting.
The object from the original Realm (read-only).
The object from the migrated Realm (read-write).
The type of a block to run whenever the data within the Realm is modified.
typealias RLMNotificationBlock = (String, RLMRealm) -> Void
The type of a migration block used to migrate a Realm.
typedef void (^RLMMigrationBlock)(RLMMigration *_Nonnull, uint64_t)
typealias RLMMigrationBlock = (RLMMigration, UInt64) -> Void
RLMMigrationobject used to perform the migration. The migration object allows you to enumerate and alter any existing objects which require migration.
The schema version of the Realm being migrated.