ContactCenterCommunicator
public final class ContactCenterCommunicator : ContactCenterCommunicating
Impementation of the ContactCenterCommunicating
protocol.
-
Declaration
Swift
public weak var delegate: ContactCenterEventsDelegating? { get set }
-
Creates an instance of the API class.
- Tag: init
Declaration
Swift
public convenience init(baseURL: URL, tenantURL: URL, appID: String, clientID: String)
Parameters
baseURL
HTTP(S) URL to your server. Usually it matches the
tenantUrl
but could be different in development or staging environments. The http(s):// protocol part is required.tenantURL
Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login.
appID
Unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario.
clientID
Unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application preferably in the UUID format, saved in the local storage and used for all subsequent application sessions on that device.
-
Declaration
Swift
public func checkAvailability(with completion: @escaping ((Result<ContactCenterServiceAvailability, Error>) -> Void))
-
Declaration
Swift
public func requestChat(phoneNumber: String, from: String, parameters: [String : String], with completion: @escaping ((Result<ContactCenterChatSessionProperties, Error>) -> Void))
-
Declaration
Swift
public func getChatHistory(chatID: String, with completion: @escaping ((Result<[ContactCenterEvent], Error>) -> Void))
-
Declaration
Swift
public func getCaseHistory(chatID: String, with completion: @escaping ((Result<[ContactCenterChatSession], Error>) -> Void))
-
Declaration
Swift
public func sendChatMessage(chatID: String, message: String, with completion: @escaping (Result<String, Error>) -> Void)
-
Declaration
Swift
public func chatMessageDelivered(chatID: String, messageID: String, with completion: @escaping (Result<Void, Error>) -> Void)
-
Declaration
Swift
public func chatMessageRead(chatID: String, messageID: String, with completion: @escaping (Result<Void, Error>) -> Void)
-
Declaration
Swift
public func chatTyping(chatID: String, with completion: @escaping (Result<Void, Error>) -> Void)
-
Declaration
Swift
public func chatNotTyping(chatID: String, with completion: @escaping (Result<Void, Error>) -> Void)
-
Declaration
Swift
public func closeCase(chatID: String, with completion: @escaping ((Result<Void, Error>) -> Void))
-
Declaration
Swift
public func disconnectChat(chatID: String, with completion: @escaping ((Result<Void, Error>) -> Void))
-
Declaration
Swift
public func endChat(chatID: String, with completion: @escaping ((Result<Void, Error>) -> Void))
-
Declaration
Swift
public func subscribeForRemoteNotificationsAPNs(chatID: String, deviceToken: String, with completion: @escaping (Result<Void, Error>) -> Void)
-
Declaration
Swift
public func subscribeForRemoteNotificationsFirebase(chatID: String, deviceToken: String, with completion: @escaping (Result<Void, Error>) -> Void)
-
Declaration
Swift
public func appDidReceiveMessage(_ userInfo: [AnyHashable : Any])