SDKsAndroid
Pin or unpin a conversation
Use pinConversation() to set the pinned state of a conversation.
OpenIMClient.getInstance().conversationManager.pinConversation(
new OnBase<String>() {
@Override
public void onSuccess(String data) {
// The request completed.
}
@Override
public void onError(int code, String error) {
// code and error describe the failure.
}
},
conversationID,
true
);Pass true to pin and false to unpin. Conversation list changes can be received through onConversationChanged; see Get the conversation list for listener setup.
Was this page helpful?