Our SDK is currently under review. Check back later for updates.
AcquireIOSupport iOS SDK Delegates
To add listeners provided by AcquireIOSupport SDK, add the following line on your class where you want to listen to our SDK events
1
AcquireIO.support.delegate = self
Copied!
ConnectionStatusChange
This method will be called by SDK when connection status will change. The details of status that was updated during the connection will be available in the argument.
AcquireIOConnectionStatus - Connection session status
1
public enum AcquireIOConnectionStatus : Int {
2
/// App support session connection status not connected.
3
case notConnected = 0
4
/// App support session connection status disconnected.
5
case disconnected
6
/// App support session connection status connecting.
7
case connecting
8
/// App support session connection status connected.
9
case connected
10
/// App support session connection status started.
11
case sessionStarted
12
}
Copied!
Once connection is established with Acquire server, the delegate will receive either didChangeConnectionStatus: or onError:.
onError
This function will provide connection related error i.e. invalid input data, expire data etc. To get more details about the error encountered while establishing connection, Implement below delegate method
1
func onError(error: Error)
Copied!
onCallSupportStatusChange
When status of Audio/Video call with Agent changes SDK will call below method. The details of call status that was updated during the connection will be available in the arguments along with the optional message string. To get the call connection status, use
This optional method will be called by SDK when Agent status changes. The details of agent status that was updated during the connection will be available in the argument along with Agent ID.
Note: For Lite version, only following events will be received
1.
conversationStart
2.
conversationEnd
3.
conversationFeedbackSubmit
didReceiveTriggerEvent
This optional method will be called when fire rule matched for created Triggers from the agent panel. It will receive eventName as parameter
1
func didReceiveTriggerEvent(_ eventName: String)
Copied!
openSupport
This optional method will be called when support view controller is open.
1
func didOpenAcquireSupport()
Copied!
hideSupport
This optional method will be called when support view controller is dismissed.
1
func hideSupport()
Copied!
​
didReceiveNewMessage
This optional method will be called by SDK when a new message has been received. The details of the message received will be available in the argument.