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
Method | Invoked when |
agentsOnline: | operators or bots are available to pick up new incoming chats |
agentsOffline: | no operators or bots are available to pick up 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 |
handleTrigger | a custom trigger is executed. Learn more. |
handleBotTrigger | a bot has been triggered |
handleCustomLauncherVisibility | Show/hide your custom launcher with the triggered boolean value |
Setting the delegate
Copied
Implementation
Copied