SyncUser
public typealias SyncUser = RLMSyncUser
-
Given credentials and a server URL, log in a user and asynchronously return a
SyncUserobject which can be used to openRealms and retrieveSyncSessions.Declaration
Swift
public static func logIn(with credentials: SyncCredentials, server authServerURL: URL, timeout: TimeInterval = 30, onCompletion completion: @escaping UserCompletionBlock) -
The logged-in user.
nilif none exists. Only use this property if your application expects no more than one logged-in user at any given time.Warning
Throws an Objective-C exception if more than one logged-in user exists.Declaration
Swift
public static var current: SyncUser? -
Returns an instance of the Management Realm owned by the user.
This Realm can be used to control access permissions for Realms managed by the user. This includes granting other users access to Realms.
Declaration
Swift
public func managementRealm() throws -> Realm
View on GitHub
Install in Dash
SyncUser Extension Reference