ZohoSalesIQDelegate

The Mobilisten iOS SDK provides a delegate for various event callbacks to help developers track different actions performed by the app user.

Implementation

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

Supported event callbacks

MethodInvoked when
agentsOnline:operators or bots are available to pickup new incoming chats
agentsOffline:no operators or bots are available to pickup new incoming chats 
supportOpened:the Mobilisten UI is opened 
supportClosed:the Mobilisten UI is closed
chatViewOpened:the chat window is opened
chatViewClosed:a chat window is closed
homeViewOpened:the home view with conversations list and FAQs is opened
homeViewClosed:the home view with conversations list and FAQs is closed
visitorIPBlocked:an operator or bot blocks the IP of the user

Setting the delegate

Copiedlet myEventHandler = MyEventHandler()
ZohoSalesIQ.delegate = myEventHandler