Type Aliases
The following type aliases are available globally.
-
PropertyTypeis an enum describing all property types supported in Realm models.For more information, see Realm Models.
Primitive types
IntBoolFloatDouble
Object types
StringDataDate
Relationships: Array (in Swift,
List) andObjecttypesObjectArray
Declaration
Swift
public typealias PropertyType = RLMPropertyType -
An opaque token which is returned from methods which subscribe to changes to a Realm.
Declaration
Swift
public typealias NotificationToken = RLMNotificationToken
-
The type of a migration block used to migrate a Realm.
Declaration
Swift
public typealias MigrationBlock = (_ migration: Migration, _ oldSchemaVersion: UInt64) -> VoidParameters
migrationA
Migrationobject 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.
-
An object class used during migrations.
Declaration
Swift
public typealias MigrationObject = DynamicObject -
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
-
An object representing a Realm Object Server user.
See
RLMSyncUserDeclaration
Swift
public typealias SyncUser = RLMSyncUser -
An immutable data object representing information retrieved from the Realm Object Server about a particular user.
See
RLMSyncUserInfoDeclaration
Swift
public typealias SyncUserInfo = RLMSyncUserInfo -
An immutable data object representing an account belonging to a particular user.
Declaration
Swift
public typealias SyncUserAccountInfo = RLMSyncUserAccountInfo -
A singleton which configures and manages the Realm Object Server synchronization-related functionality.
See
RLMSyncManagerDeclaration
Swift
public typealias SyncManager = RLMSyncManager -
Options for configuring timeouts and intervals in the sync client.
See
RLMSyncTimeoutOptionsDeclaration
Swift
public typealias SyncTimeoutOptions = RLMSyncTimeoutOptions -
A session object which represents communication between the client and server for a specific Realm.
See
RLMSyncSessionDeclaration
Swift
public typealias SyncSession = RLMSyncSession -
A closure type for a closure which can be set on the
SyncManagerto allow errors to be reported to the application.See
RLMSyncErrorReportingBlockDeclaration
Swift
public typealias ErrorReportingBlock = RLMSyncErrorReportingBlock -
A closure type for a closure which is used by certain APIs to asynchronously return a
SyncUserobject to the application.See
RLMUserCompletionBlockDeclaration
Swift
public typealias UserCompletionBlock = RLMUserCompletionBlock -
An error associated with the SDK’s synchronization functionality. All errors reported by an error handler registered on the
SyncManagerare of this type.See
RLMSyncErrorDeclaration
Swift
public typealias SyncError = RLMSyncError -
An error associated with network requests made to the authentication server. This type of error may be returned in the callback block to
SyncUser.logIn()upon certain types of failed login attempts (for example, if the request is malformed or if the server is experiencing an issue).See
RLMSyncAuthErrorDeclaration
Swift
public typealias SyncAuthError = RLMSyncAuthError -
An enum which can be used to specify the level of logging.
See
RLMSyncLogLevelDeclaration
Swift
public typealias SyncLogLevel = RLMSyncLogLevel -
A data type whose values represent different authentication providers that can be used with the Realm Object Server.
See
RLMIdentityProviderDeclaration
Swift
public typealias Provider = RLMIdentityProvider -
A value which represents a permission granted to a user to interact with a Realm. These values are passed into APIs on
SyncUser, and returned fromSyncPermissionResults.See
RLMSyncPermissionDeclaration
Swift
public typealias SyncPermission = RLMSyncPermission -
An enumeration describing possible access levels.
See
RLMSyncAccessLevelDeclaration
Swift
public typealias SyncAccessLevel = RLMSyncAccessLevel
-
An array containing sync permission results.
Declaration
Swift
public typealias SyncPermissionResults = [SyncPermission]
View on GitHub
Install in Dash
Type Aliases Reference