Notification.setListener()
This API allows you to register a callback that is to be invoked when the unread message count changes.
PARAMETERS
notificationListener: This listener will be used to invoke the method onBadgeChange() when the count of the unread messages changes.
Syntax:
CopiedZohoSalesIQ.Notification.setListener(new NotificationListener() {
@Override public void onBadgeChange(int count) {}
});
Example:
CopiedZohoSalesIQ.Notification.setListener(new NotificationListener()
{
@Override
public void onBadgeChange(int count)
{
//update badge count here
}
});