Typealiases
The following typealiases are available globally.
-
An opaque token which is returned from methods which subscribe to changes to a Realm.
Declaration
Swift
public typealias NotificationToken = RLMNotificationToken -
PropertyTypeis an enum describing all property types supported in Realm models.For more information, see Realm Models.
Primitive types
IntBoolFloatDouble
Object types
StringDataDate
Relationships: List (
Array) andObjecttypesObjectArray
Declaration
Swift
public typealias PropertyType = RLMPropertyType
-
An object class used during migrations.
Declaration
Swift
public typealias MigrationObject = DynamicObject -
The type of a migration block used to migrate a Realm.
Declaration
Swift
public typealias MigrationBlock = (migration: Migration, oldSchemaVersion: UInt64) -> VoidParameters
migrationA
RLMMigrationobject 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 Realm being migrated.
-
A block type which provides both the old and new versions of an object in the Realm. Object properties can only be accessed using subscripting.
Declaration
Swift
public typealias MigrationObjectEnumerateBlock = (oldObject: MigrationObject?, newObject: MigrationObject?) -> VoidParameters
oldObjectThe object from the original Realm (read-only).
newObjectThe object from the migrated Realm (read-write).
-
The type of a block to run for notification purposes when the data in a Realm is modified.
Declaration
Swift
public typealias NotificationBlock = (notification: Notification, realm: Realm) -> Void
View on GitHub
Install in Dash
Typealiases Reference