ZohoSalesIQFAQDelegate

Note: This API was deprecated in version 7.0.0. Use KnowledgeBaseDelegate instead.

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

Implementation

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

MethodInvoked when
articleOpened:an article is opened
articleClosed:an article is closed
articleLiked:user likes an article (or) marks it as helpful
articleDisliked:user unlikes an article (or) marks it as unhelpful

 

Setting the delegate

Copiedlet myFAQEventHandler = MyFAQEventHandler()
ZohoSalesIQ.Chat.delegate = myFAQEventHandler

Implementation:

Copiedclass MyFAQEventHandler: ZohoSalesIQFAQDelegate{

    func articleOpened(id: String?) {
        // your code goes here
    }
    func articleClosed(id: String?) {
        // your code goes here
    }
    func articleLiked(id: String?) {
        // your code goes here
    }
    func articleDisliked(id: String?) {
        // your code goes here
    }

}