Typealiases
The following typealiases are available globally.
-
An opaque token used to unregister notification blocks from Realms.
Declaration
Swift
public typealias NotificationToken = RLMNotificationToken -
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
Date</div><a href='#relationships_list_array_and_object_types' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='relationships_list_array_and_object_types'>Relationships: <a href="Classes/List">List</a> (Array) and <a href="Classes/Object">Object</a> types</h2>- Object
- Array
Declaration
Swift
public typealias PropertyType = RLMPropertyType-
Object class used during migrations.
Declaration
Swift
public typealias MigrationObject = DynamicObject -
Provides both the old and new versions of an object in this Realm. Object 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). -
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