Monitor Conversation Synchronization Status
Each time the IMLib SDK successfully connects to the IM service, it automatically retrieves the ultra group conversation list and messages from the server.
By setting up an ultra group conversation synchronization listener, you can receive notifications when the ultra group conversation list and the last message of each conversation have finished synchronizing. This enables different business processing, such as refreshing the UI interface.
Set Up Ultra Group Conversation Synchronization Listener
tip
This callback interface has been supported since SDK version 5.2.2.
After initializing the IMLib SDK but before connecting to IM, call the setUltraGroupConversationListener method to add the listener. It is recommended to set this up during the application's lifecycle.
// Ultra group conversation listener
interface UltraGroupConversationListener {
// Called when ultra group conversation list and last messages finish synchronizing
void ultraGroupConversationListDidSync();
}
public void setUltraGroupConversationListener(IRongCoreListener.UltraGroupConversationListener listener) {
}