Callback listeners
#
Observe Profile EventsTo observe profile related events, refer the below listeners where ever needed
#
Contacts Profiles FetchedIf the client application has mobile number as the primary identifier of the user and enabled contact sync they can fetch their contacts data and its completion is triggered in the following callbacks.
#
User blocked youIf a user blocked you then the following method will be triggered.
#
User unblocked youIf a user unblocked you then the following method will be triggered.
#
User Updated his profileIf a user updated his profile then the following method will be triggered.
#
User Deleted his profileIf a user deleted his profile then the following method will be triggered.
#
My Profile update statusOnce you initiated the update for your profile its status will be triggered by the following method.
#
User came onlineIf a user came online then the following method will be triggered.
#
User went offineIf a user went offline then the following method will be triggered.
#
Users blocked me list callbackWhen called to get the users who blocked me then the following method will be triggered.
#
Users I blocked list callbackWhen called to get the users who i blocked then the following method will be triggered.
#
User profile fetchedWhen called to get the profile detatil of a user from the server then the following method will be triggered.
#
Block a userWhen called to block a user then the following method will be triggered.
#
UnBlock a userWhen called to unblock a user then the following method will be triggered.
#
Logged outWhen logout called then the following method will be triggered.
#
Admin blockedWhen Admin blocked then the following method will be triggered
#
Admin blocked othersWhen Admin blocked then the following method will be triggered
#
Observe Group EventsTo observe group related events you can implement the following listeners
#
Group Profile FetchedWhen the request for fetching a group profile is completed successfully this callback will be triggered.
#
Group notification message receivedWhen events like new member added or member removed a notification message will be generated locally and inserted in the local database. After insertion this callback will be triggered.
#
New group createdWhen a new group was created like when someone added you to a group this callback will be triggered.
#
Group profile updatedWhen a group profile is updated this callback will be triggered.
#
New member added to groupWhen a new member is added to the group this callback will be triggered.
#
Member removed from groupWhen a member is removed from the group this callback will be triggered.
#
Fetching group membersWhen a group is created, members of that group will be fetched once sucessfully fetched this callback will be triggered.
#
Group member became an adminWhen a group member became an admin this callback will be triggered.
#
Admin access revokedWhen a group member's admin access is revoked this callback will be triggered.
#
Member left from the groupWhen a member left the group this callback will be triggered.
#
Group deleted locallyWhen the current user delete a group locally this callback will be triggered.
#
Observing the message eventsYou need to register the observer to listen 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.you can register your own listener by using the below method. This is common for both single chat and groups.
#
Event Listener for Incoming 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'sinfo
For group, message status will be updated only if all the participants sent the delivery/seen status.