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
- Date
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
-
Closure to run when the data in a Realm was modified.
Declaration
Swift
public typealias NotificationBlock = (notification: Notification, realm: Realm) -> Void
-
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?) -> VoidParameters
oldObjectObject in original
Realm(read-only)newObjectObject in migrated
Realm(read-write) -
Object class used during migrations
Declaration
Swift
public typealias MigrationObject = DynamicObject -
Migration block used to migrate a Realm.
Declaration
Swift
public typealias MigrationBlock = (migration: Migration, oldSchemaVersion: UInt) -> VoidParameters
migrationMigrationobject used to perform the migration. The migration object allows you to enumerate and alter any existing objects which require migration.oldSchemaVersionThe schema version of the
Realmbeing migrated.
View on GitHub
Install in Dash
Typealiases Reference