SalesIQListener()

The Mobilisten Android SDK provides an interface for various event callbacks to help developers track different actions performed by the app user. The 'SalesIQListener' would invoke callback methods for various actions performed by the visitors. You need to follow the steps below to implement the chat event handler:

Step 1:

public class MySalesIQListener implements SalesIQListener{

        //override methods

}

Step 2:

ZohoSalesIQ.setListener(new MySalesIQListener());

Supported Events:

MethodInvoked when
handleSupportOpen()The user opens the SDK.
handleSupportClose()The user closes or comes out of the SDK.
handleOperatorsOnline()Any of the operators are online.
handleOperatorsOffline()All of the operators are offline.
handleIPBlock()The visitor's IP is blocked.
handleTrigger()Corresponding trigger criteria matches. Learn more.

 

Example:

Copiedpublic class MySalesIQListener implements SalesIQListener 
{
    @Override
    public void handleSupportOpen() 
    {
       //Your code
    }
    @Override
    public void handleSupportClose()
   {
       //Your code
    }
    @Override
    public void handleOperatorsOnline()
    {
       //Your code
    }
    @Override
    public void handleOperatorsOffline()
    {
       //Your code
    }
    @Override
    public void handleIPBlock()
    {
       //Your code
    }
    @Override
    public void handleTrigger(String triggerName, SIQVisitor visitor) {
       //Your code
    }
}