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?) -> VoidParameters
oldObjectObject in original
Realm(read-only).newObjectObject in migrated
Realm(read-write). -
Migration block used to migrate a Realm.
Declaration
Swift
public typealias MigrationBlock = (migration: Migration, oldSchemaVersion: UInt64) -> 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.
-
Closure to run when the data in a Realm was modified.
Declaration
Swift
public typealias NotificationBlock = (notification: Notification, realm: Realm) -> Void
View on GitHub
Install in Dash
Typealiases Reference