Zoho SalesIQ Calls Delegate

The Mobilisten iOS SDK provides a delegate for various event callbacks to help developers track app users' actions.

Note: This API is supported from version 10.0.0.

Implementation

To start receiving various events within the Mobilisten, your class must conform to the  ZohoSalesIQCallDelegate protocol. Then, set an instance of your class to the ZohoSalesIQCallDelegate property to set your class as the delegate.

Supported event callbacks

MethodInvoked when
queuePositionDidChangethe queue position of a user changes.
callStateDidChangethere is a change in the state of an active call. (Note: This callback is invoked only when a call is in progress.)
callScreenDidAppearthe call screen is displayed for the first time.
callScreenDidDisappearthe call screen is closed or dismissed.
callScreenDidEnterPiPModethe call screen enters Picture-in-Picture (PiP) mode.
callScreenDidEnterFullScreenModethe call screen switches to full-screen mode.

Setting the delegate

Copiedlet eventHandler = CallEventHandler()
ZohoSalesIQCalls.delegate = eventHandler

Implementation

Copiedfunc queuePositionDidChange(for conversationID: String, position: Int) {
    // your code goes here
}

func callStateDidChange(for state: SalesIQCallState) {
    // your code goes here
}

func callScreenDidAppear() {
    // your code goes here
}

func callScreenDidDisappear() {
    // your code goes here
}

func callScreenDidEnterPiPMode() {
    // your code goes here
}