[Under Development] Acquire Delegates for iOS
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
AcquireIO.support.delegate = selfConnectionStatusChange
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.
func didChangeConnectionStatus(status: AcquireIOConnectionStatus)AcquireIOConnectionStatus - Connection session status
public enum AcquireIOConnectionStatus : Int {
/// App support session connection status not connected.
case notConnected = 0
/// App support session connection status disconnected.
case disconnected
/// App support session connection status connecting.
case connecting
/// App support session connection status connected.
case connected
/// App support session connection status started.
case sessionStarted
}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
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
AcquireIOCallSupportStatus - Call status
onAgentConnected
This will be called when agent is connected.
didChangeAgentStatus
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.
AcquireIOAgentStatus - Status for the agent.
didUserInteracted
This will be called when user interacts with events.
Event Types available are listed below:
Note: For Lite version, only following events will be received
conversationStart
conversationEnd
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
openSupport
This optional method will be called when support view controller is open.
hideSupport
This optional method will be called when support view controller is dismissed.
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.
Last updated