SyncServerUser
public class SyncServerUser
-
Declaration
Swift
public var creds: GenericCredentials? { get set }
-
A unique identifier for the user on the SyncServer system. If creds are set this will be set.
Declaration
Swift
public var syncServerUserId: String? { get }
-
Declaration
Swift
public private(set) var cloudFolderName: String?
-
Declaration
Swift
public static let session: SyncServerUser
-
Declaration
Swift
public enum CheckForExistingUserResult
-
Calls the server API method to check credentials.
Declaration
Swift
public func checkForExistingUser(creds: GenericCredentials, completion:@escaping (_ result: CheckForExistingUserResult?, Error?) ->())
-
Calls the server API method to add a user.
Declaration
Swift
public func addUser(creds: GenericCredentials, sharingGroupUUID: String, sharingGroupName: String?, completion:@escaping (Error?) ->())
-
Calls the server API method to create a sharing invitation.
Declaration
Swift
public func createSharingInvitation(withPermission permission: Permission, sharingGroupUUID: String, completion: ((_ invitationCode: String?, Error?) -> (Void))?)
-
Calls the server API method to redeem a sharing invitation.
Declaration
Swift
public func redeemSharingInvitation(creds: GenericCredentials, invitationCode: String, cloudFolderName: String?, completion: ((_ accessToken: String?, _ sharingGroupUUID: String?, Error?) -> ())?)
-
Register the APNS token for the users device.
Declaration
Swift
public func registerPushNotificationToken(token: String, completion: ((Error?) -> ())?)