Enumerations
The following enumerations are available globally.
-
A enum for storing and retrieving values associated with an
See moreAnyRealmValueproperty.Declaration
Swift
public enum AnyRealmValue : Hashableextension AnyRealmValue: _Persistable, _DefaultConstructibleextension AnyRealmValue: _QueryNumericextension AnyRealmValue: RealmCollectionValueextension AnyRealmValue: RealmPropertyTypeextension AnyRealmValue: MinMaxTypeextension AnyRealmValue: AddableTypeextension AnyRealmValue: SortableType -
Credentialsis an enum representing supported authentication types for Atlas App Services. Example Usage:
See morelet credentials = Credentials.JWT(token: myToken)Declaration
Swift
@frozen public enum Credentials : Sendable -
Declaration
Swift
@frozen public enum AnyBSON : BSON, Sendableextension AnyBSON: ExpressibleByStringLiteralextension AnyBSON: ExpressibleByBooleanLiteralextension AnyBSON: ExpressibleByFloatLiteralextension AnyBSON: ExpressibleByIntegerLiteralextension AnyBSON: ExpressibleByDictionaryLiteralextension AnyBSON: ExpressibleByArrayLiteralextension AnyBSON: Equatableextension AnyBSON: Hashable
-
Combine publishers for Realm types.
You normally should not create any of these types directly, and should instead use the extension methods which create them.
See moreDeclaration
Swift
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public enum RealmPublishers
-
A
See moreRealmMapChangevalue encapsulates information about changes to dictionaries that are reported by Realm notifications.Declaration
Swift
@frozen public enum RealmMapChange<Collection> where Collection : RealmKeyedCollection -
A
RealmCollectionChangevalue encapsulates information about changes to collections that are reported by Realm notifications.The change information is available in two formats: a simple array of row indices in the collection for each type of change, and an array of index paths in a requested section suitable for passing directly to
UITableView‘s batch update methods.The arrays of indices in the
.updatecase followUITableView’s batching conventions, and can be passed as-is to a table view’s batch update functions after being converted to index paths. For example, for a simple one-section table view, you can do the following:
See moreself.notificationToken = results.observe { changes in switch changes { case .initial: // Results are now populated and can be accessed without blocking the UI self.tableView.reloadData() break case .update(_, let deletions, let insertions, let modifications): // Query results have changed, so apply them to the TableView self.tableView.beginUpdates() self.tableView.insertRows(at: insertions.map { IndexPath(row: $0, section: 0) }, with: .automatic) self.tableView.deleteRows(at: deletions.map { IndexPath(row: $0, section: 0) }, with: .automatic) self.tableView.reloadRows(at: modifications.map { IndexPath(row: $0, section: 0) }, with: .automatic) self.tableView.endUpdates() break case .error(let err): // An error occurred while opening the Realm file on the background worker thread fatalError("\(err)") break } }Declaration
Swift
@frozen public enum RealmCollectionChange<CollectionType> -
A
SectionedResultsChangevalue encapsulates information about changes to sectioned results that are reported by Realm notifications.The first time a notification is delivered it will be
See more.initial, and all subsequent notifications will be.change()with information about what has changed since the last time the callback was invoked. }Declaration
Swift
@frozen public enum SectionedResultsChange<Collection>
-
Declaration
Swift
public enum AsyncOpenState -
An enum used to determines file recovery behavior in the event of a client reset. Defaults to
.recoverUnsyncedChanges.See moreSee
RLMClientResetModeDeclaration
Swift
@frozen public enum ClientResetMode -
An enum representing different states for the Subscription Set.
See moreDeclaration
Swift
@frozen public enum SyncSubscriptionState : Equatable
View on GitHub
Install in Dash
Enumerations Reference