public class PrivateBusinessProcessor extends BaseBusinessProcessor
| Constructor and Description |
|---|
PrivateBusinessProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(MessageViewModel messageViewModel,
android.os.Bundle bundle)
第一次初始化,绑定事件等
|
void |
onConnectStatusChange(MessageViewModel viewModel,
RongIMClient.ConnectionStatusListener.ConnectionStatus status)
检查已读状态,如果 sp 有内容,则发送
|
void |
onDestroy(MessageViewModel viewModel) |
void |
onExistUnreadMessage(MessageViewModel viewModel,
Conversation conversation,
int unreadMessageCount) |
boolean |
onReceived(MessageViewModel viewModel,
UiMessage message,
int left,
boolean hasPackage,
boolean offline)
接收消息回调此接口
|
void |
onResume(MessageViewModel viewModel) |
getHistoryMessageCount, onBackPressed, onLoadMessage, onMessageItemClick, onMessageItemLongClick, onMessageReceiptRequest, onReceivedCmd, onUserPortraitClick, onUserPortraitLongClickpublic void init(MessageViewModel messageViewModel, android.os.Bundle bundle)
IConversationBusinessProcessormessageViewModel - 消息处理类bundle - 上一个页面传递过来的 bundlepublic boolean onReceived(MessageViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)
IConversationBusinessProcessoronReceived in interface IConversationBusinessProcessoronReceived in class BaseBusinessProcessorpublic void onExistUnreadMessage(MessageViewModel viewModel, Conversation conversation, int unreadMessageCount)
onExistUnreadMessage in interface IConversationBusinessProcessoronExistUnreadMessage in class BaseBusinessProcessorpublic void onDestroy(MessageViewModel viewModel)
onDestroy in interface IConversationBusinessProcessoronDestroy in class BaseBusinessProcessorpublic void onConnectStatusChange(MessageViewModel viewModel, RongIMClient.ConnectionStatusListener.ConnectionStatus status)
BaseBusinessProcessoronConnectStatusChange in interface IConversationBusinessProcessoronConnectStatusChange in class BaseBusinessProcessorpublic void onResume(MessageViewModel viewModel)
onResume in interface IConversationBusinessProcessoronResume in class BaseBusinessProcessor