Typealiases
The following typealiases are available globally.
-
An enum of the different property types supported by Realm. Object type.
See Realm Models.
Primitive types
- Int
- Bool
- Float
- Double
Object types
- String
- Data
Array/Linked object types
- Object
- Array
Declaration
Swift
public typealias PropertyType = RLMPropertyType
-
An opaque token used to unregister notification blocks from Realms.
Declaration
Swift
public typealias NotificationToken = RLMNotificationToken
-
Object class used during migrations.
Declaration
Swift
public typealias MigrationObject = DynamicObject
-
Provides both the old and new versions of an object in this Realm. Objects properties can only be accessed using subscripting.
Declaration
Swift
public typealias MigrationObjectEnumerateBlock = (oldObject: MigrationObject?, newObject: MigrationObject?) -> Void
-
Migration block used to migrate a Realm.
Declaration
Swift
public typealias MigrationBlock = (migration: Migration, oldSchemaVersion: UInt64) -> Void
-
Closure to run when the data in a Realm was modified.
Declaration
Swift
public typealias NotificationBlock = (notification: Notification, realm: Realm) -> Void