SDKsAndroid
Set conversation message reception
Use setConversationRecvMessageOpt() to set message reception and notification behavior for one Android conversation.
OpenIMClient.getInstance().conversationManager.setConversationRecvMessageOpt(
new OnBase<String>() {
@Override
public void onSuccess(String data) {
markReceiveOptionSubmitted(conversationID);
}
@Override
public void onError(int code, String error) {
recordReceiveOptionFailure(code, error);
}
},
conversationID,
2
);| Value | Meaning |
|---|---|
0 | Receive messages and allow notifications. |
1 | Do not receive messages from this conversation or notify. |
2 | Receive messages from this conversation without notification. |
The account default is documented in Set global message reception. Merge the later onConversationChanged result by conversationID.
Was this page helpful?