- Installation
- Push Notification
- Customization
- Rest API
- API Reference
- Launcher Button Customization
- Zoho SalesIQ
- Launcher
- Conversation
- Chat
- start()
- startWithTrigger()
- setWaitingTime()
- get()
- setTitle()
- setLanguage()
- setDepartment()
- setOperatorEmail()
- setVisibility()
- showOperatorImageInLauncher()
- setVisibility(MbedableComponent)
- showOfflineMessage()
- getList()
- open()
- endSession()
- fetchAttenderImage()
- setListener()
- getDepartments()
- showFeedbackAfterSkip()
- hideQueueTime()
- show()
- Chat Actions
- Calls
- 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.