Callback listeners
Observing the message events Individually#
Use the event listeners for all the message related events, so that you can update the UI immediately based on the message events.Once you have sent the message via sdk, you will get the callbacks for message status events. This is common for both single chat and groups.
tip
There can be used as multiple message listener at a time, if you set multiple times using the below method it will not replace the old listener.
Event Listener for Incoming Message#
Event Listener for Edit Message#
Event Listener for Message Status Updates#
Event Listener for Media Message Status Updates#
Event Listener for Media Message Upload/Download Progress Updates#
Event Listener for Message Notification's#
User came online#
If a user came online then the following method will be triggered.
User went offine#
If a user went offline then the following method will be triggered.
User typing status#
To observe the typing status changes, you can use the below method to setup the listener.
Available Features status#
To observe the available features based on your subscription, you can use the below method to setup the listener.
Observing the Archive Chats events#
When the Recent Chat Archive/UnArchive by user this callback will be triggered.
Observing the Archive Settings#
When a user change on Archive Settings option this event will be triggered.
Observe Mute Settings Update#
Once mute settings are updated, the result is received via the following callback:
Observe Chat Mute Settings Update#
Once mute settings are updated, the result is received via the following callback:
Observe Message Delete Update#
when the message is deleted for me or deleted for everyone by the current user or end user.
Observe Chat Cleared#
when the chat is cleared or chat is deleted.
Observe All Chat Cleared#
when the all chat's Conversation are cleared.
info
For group, message status will be updated only if all the participants sent the delivery/seen status.
Observing the message events Collectively#
Assign the listener to the appropriate class to receive event updates. Extend the class and implement the necessary event listeners collectively for streamlined integration you can register your own listener by using the below method. This is common for both single chat and groups.
tip
There can be only one message listener at a time, if you set multiple times using the below method it will replace the old listener always.
Observe QR Code Logged-in Session Logout Events#
When a QR code logged-in session is logged out, the following method will be triggered.