-
Undocumented
Declaration
Swift
public static let shared: SPManager -
Undocumented
Declaration
Swift
public var delegate: SPManagerDelegate?
-
Undocumented
Declaration
Swift
public func registerNewAccount(_ account: SPAccount, keychainEnvironment: SPKeychainEnvironment, completion: @escaping (_ success: Bool, _ error: APIError?) -> Void)
-
Undocumented
Declaration
Swift
public enum SPKeychainEnvironment : Int -
Undocumented
Declaration
Swift
public enum SPCloudSharingError -
Undocumented
Declaration
Swift
public func checkUsernameWithCloud(_ username: String, completion: @escaping (_ error: SPCloudSharingError?) -> Void) -
Undocumented
Declaration
Swift
public func getUsername() -> String? -
Undocumented
Declaration
Swift
public func loginUser(username: String, password: String, keychainEnvironment: SPKeychainEnvironment, completion: @escaping (_ success: Bool, _ error: APIError?) -> Void) -
Undocumented
Declaration
Swift
public func logoutUser(reportToServer: Bool = true, onAllDevices: Bool = false, completion: @escaping (_ success: Bool, _ error: APIError?) -> Void)
-
Undocumented
Declaration
Swift
public func hangUpCall(via gateway: SPGateway, notifyCallKit: Bool = true, completion: @escaping (Error?) -> Void) -
Undocumented
Declaration
Swift
@objc public func handleVoIPToken(_ data: Data) -
Undocumented
Declaration
Swift
@objc public func handleVoIPNotification(_ pushPayload: NSDictionary) -
Undocumented
Declaration
Swift
public enum GatewayError : LocalizedError -
Undocumented
Declaration
Swift
public func handleGatewayError(code: Int, message: String) -
Declaration
Swift
public func callKitManager(didDeclineIncomingCallFromGateway gateway: SPGateway, withRecentCallItem recentItem: SPRecentCall, completion: @escaping (Bool) -> Void) -
Declaration
Swift
public func callKitManager(didEndCallFromGateway gateway: SPGateway, withRecentCallItem recentItem: SPRecentCall, completion: @escaping (Bool) -> Void) -
Declaration
Swift
public func callKitManager(didChangeHeldState isOnHold: Bool, onCallFrom gateway: SPGateway, completion: @escaping (Bool) -> Void) -
Declaration
Swift
public func callKitManager(didChangeMuteState isMuted: Bool, onCallFrom gateway: SPGateway, completion: @escaping (Bool) -> Void) -
Declaration
Swift
public func callKitManager(didEnterDTMF digits: String, onCallFrom gateway: SPGateway, completion: @escaping (Bool) -> Void)
-
Undocumented
Declaration
Swift
public func sendErrorNotification(for error: Error)
-
Undocumented
Declaration
Swift
@objc public func isAuthetificated(completion: @escaping (_ loggedIn: Bool) -> Void)
-
Undocumented
Declaration
Swift
public func getRecentCalls() -> [SPRecentCall]? -
Undocumented
Declaration
Swift
public func deleteRecentCall(_ call: SPRecentCall) -
Undocumented
Declaration
Swift
@objc public func getCountOfUnseenRecentCalls() -> Int
-
Undocumented
Declaration
Swift
public func getVoicemails() -> [SPVoicemail]? -
Undocumented
Declaration
Swift
public func markVoicemailAsHeard(_ voicemail: SPVoicemail) -
Undocumented
Declaration
Swift
public func markVoicemailAsUnheard(_ voicemail: SPVoicemail) -
Undocumented
Declaration
Swift
@objc public func getCountOfUnheardVoicemails() -> Int -
Undocumented
Declaration
Swift
public func deleteVoicemail(withId id: String, completion: @escaping () -> ()) -
Undocumented
Declaration
Swift
public func addSampleVoicemails()
-
Undocumented
Declaration
Swift
public func changeUserPassword(new: String, old: String, completion: @escaping (_ success: Bool, _ error: Error?) -> Void) -
Undocumented
Declaration
Swift
public func getUserData(completion: @escaping (_ user: [String:String]?, _ error: Error?) -> Void) -
Undocumented
Declaration
Swift
public func getAllGateways(completion: @escaping ([SPGateway]?, Error?) -> Void) -
Undocumented
Declaration
Swift
public func getGateway(withImei imei: String, completion: @escaping (SPGateway?, Error?) -> Void) -
Undocumented
Declaration
Swift
public func updateGatewayName(_ name: String, of gateway: SPGateway, completion: @escaping (Error?) -> Void) -
Undocumented
Declaration
Swift
public func updateGatewayColor(_ color: UIColor, of gateway: SPGateway, completion: @escaping (Error?) -> Void)
-
Undocumented
Declaration
Swift
public func addRecentCall(_ call: SPRecentCall) -
Undocumented
Declaration
Swift
public func addVoicemail(_ voicemail: SPVoicemail) -
Undocumented
Declaration
Swift
public func getiCloudSyncState() -> Bool? -
Undocumented
Declaration
Swift
public func setiCloudSyncState(_ newState: Bool, completion: @escaping (_ success: Bool, _ error: APIError?) -> Void)
-
Undocumented
Declaration
Swift
@objc public func receivedPushDeviceToken(_ data: Data, completion: @escaping (_ gotRevoked: Bool) -> Void)
-
Undocumented
Declaration
Swift
@objc public class func sharedInstance() -> SPManager
SPManager Class Reference