Enumerations

The following enumerations are available globally.

RLMBSONType

  • Allowed BSON types.

    See more

    Declaration

    Objective-C

    enum RLMBSONType : NSUInteger {}

    Swift

    enum RLMBSONType : UInt, @unchecked Sendable

Enums

  • RLMPropertyType is an enumeration describing all property types supported in Realm models.

    For more information, see Realm Models.

    See more

    Declaration

    Objective-C

    enum RLMPropertyType : int32_t {}

    Swift

    @frozen enum RLMPropertyType : Int32, @unchecked Sendable
  • RLMError is an enumeration representing all recoverable errors. It is associated with the Realm error domain specified in RLMErrorDomain.

    See more

    Declaration

    Objective-C

    enum RLMError : NSInteger {}

    Swift

    typealias RLMError.Code._ErrorType = RLMError
  • Allowed HTTP methods to be used with RLMNetworkTransport.

    See more

    Declaration

    Objective-C

    enum RLMHTTPMethod : int32_t {}

    Swift

    @frozen enum RLMHTTPMethod : Int32, @unchecked Sendable
  • Determines file behavior during a client reset.

    See more

    Declaration

    Objective-C

    enum RLMClientResetMode : NSUInteger {}

    Swift

    enum RLMClientResetMode : UInt, @unchecked Sendable
  • An enum representing different levels of sync-related logging that can be configured.

    See more

    Declaration

    Objective-C

    enum RLMSyncLogLevel : NSUInteger {}

    Swift

    @frozen enum RLMSyncLogLevel : UInt, @unchecked Sendable
  • The current state of the session represented by a session object.

    See more

    Declaration

    Objective-C

    enum RLMSyncSessionState : NSUInteger {}

    Swift

    enum RLMSyncSessionState : UInt, @unchecked Sendable
  • The current state of a sync session’s connection. Sessions which are not in the Active state will always be Disconnected.

    See more

    Declaration

    Objective-C

    enum RLMSyncConnectionState : NSUInteger {}

    Swift

    enum RLMSyncConnectionState : UInt, @unchecked Sendable
  • The transfer direction (upload or download) tracked by a given progress notification block.

    Progress notification blocks can be registered on sessions if your app wishes to be informed how many bytes have been uploaded or downloaded, for example to show progress indicator UIs.

    See more

    Declaration

    Objective-C

    enum RLMSyncProgressDirection : NSUInteger {}

    Swift

    @frozen enum RLMSyncProgressDirection : UInt, @unchecked Sendable
  • The desired behavior of a progress notification block.

    Progress notification blocks can be registered on sessions if your app wishes to be informed how many bytes have been uploaded or downloaded, for example to show progress indicator UIs.

    See more

    Declaration

    Objective-C

    enum RLMSyncProgressMode : NSUInteger {}

    Swift

    enum RLMSyncProgressMode : UInt, @unchecked Sendable

Subscription States

  • The current state of the subscription. This can be used for ensuring that the subscriptions are not errored and that it has been successfully synced to the server.

    See more

    Declaration

    Objective-C

    enum RLMSyncSubscriptionState : NSUInteger {}

    Swift

    enum RLMSyncSubscriptionState : UInt, @unchecked Sendable
  • An error related to a problem that might be reported by the synchronization manager error handler, or a callback on a sync-related API that performs asynchronous work.

    See more

    Declaration

    Objective-C

    enum RLMSyncError : NSInteger {}

    Swift

    typealias RLMSyncError.Code._ErrorType = RLMSyncError
  • An error which is related to a flexible sync operation.

    See more

    Declaration

    Objective-C

    enum RLMFlexibleSyncError : NSInteger {}

    Swift

    typealias RLMFlexibleSyncError.Code._ErrorType = RLMFlexibleSyncError
  • An error which is related to authentication to Atlas App Services.

    See more

    Declaration

    Objective-C

    enum RLMSyncAuthError : NSInteger {}

    Swift

    typealias RLMSyncAuthError.Code._ErrorType = RLMSyncAuthError
  • An error which is related to authentication to Atlas App Services.

    See more

    Declaration

    Objective-C

    enum RLMAppError : NSInteger {}

    Swift

    typealias RLMAppError.Code._ErrorType = RLMAppError
  • The state of the user object.

    See more

    Declaration

    Objective-C

    enum RLMUserState : NSUInteger {}

    Swift

    enum RLMUserState : UInt, @unchecked Sendable