- Installation
- Push Notification
- Customization
- Rest API
- API Reference
- Launcher Button Customization
- Zoho SalesIQ
- Launcher
- Chat
- Chat.start()
- Chat.startWithTrigger()
- Chat.setWaitingTime()
- Chat.get()
- Chat.setTitle()
- Chat.setLanguage()
- Chat.setDepartment()
- Chat.setOperatorEmail()
- Chat.setVisibility()
- Chat.showOperatorImageInLauncher()
- Chat.setVisibility(MbedableComponent)
- Chat.showOfflineMessage()
- Chat.getList()
- Chat.open()
- Chat.endSession()
- Chat.fetchAttenderImage()
- Chat.setListener()
- Chat.getDepartments()
- Chat.showFeedbackAfterSkip()
- Chat.hideQueueTime()
- Chat.show()
- Chat Actions
- Logger
- Visitor
- Visitor Tracking
- Notification
- Conversation
- Knowledge Base
- FAQ
- SDK 2.x, 3.x
- SDK 1.x
- Download Sample App
- Release Notes
- Additional Features
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:
Copied ZohoSalesIQ.Notification.setListener(new NotificationListener()
{
@Override
public void onBadgeChange(int count)
{
//update badge count here
}
});
© 2025, Zoho Corporation Pvt. Ltd. All Rights Reserved.