# IConversationBusinessProcessor

public interface IConversationBusinessProcessor

会话业务处理器

## Functions

init
Link copied to clipboard
public abstract void init(MessageViewModel messageViewModel, Bundle bundle)
第一次初始化，绑定事件等
isHistoryState
Link copied to clipboard
public abstract boolean isHistoryState(MessageViewModel viewModel)
isNormalState
Link copied to clipboard
public abstract boolean isNormalState(MessageViewModel viewModel)
newMentionMessageBarClick
Link copied to clipboard
public abstract void newMentionMessageBarClick(MessageViewModel viewModel)
newMessageBarClick
Link copied to clipboard
public abstract void newMessageBarClick(MessageViewModel viewModel)
onBackPressed
Link copied to clipboard
public abstract boolean onBackPressed(MessageViewModel viewModel)
onClearMessage
Link copied to clipboard
public abstract void onClearMessage(MessageViewModel viewModel)
onConnectStatusChange
Link copied to clipboard
public abstract void onConnectStatusChange(MessageViewModel viewModel, ConnectionStatus status)
onDestroy
Link copied to clipboard
public abstract void onDestroy(MessageViewModel viewModel)
onExistUnreadMessage
Link copied to clipboard
public abstract void onExistUnreadMessage(MessageViewModel viewModel, Conversation conversation, int unreadMessageCount)
onLoadMessage
Link copied to clipboard
public abstract void onLoadMessage(MessageViewModel viewModel, List<Message> messages)
onLoadMore
Link copied to clipboard
public abstract void onLoadMore(MessageViewModel viewModel)
onMessageItemClick
Link copied to clipboard
public abstract void onMessageItemClick(UiMessage uiMessage)
消息点击事件
onMessageItemLongClick
Link copied to clipboard
public abstract boolean onMessageItemLongClick(UiMessage uiMessage)
消息长按事件
onMessageReceiptRequest
Link copied to clipboard
public abstract void onMessageReceiptRequest(MessageViewModel viewModel, ConversationType conversationType, String targetId, String messageUId)
onReceived
Link copied to clipboard
public abstract boolean onReceived(MessageViewModel messageViewModel, UiMessage message, int left, boolean hasPackage, boolean offline)
接收消息回调此接口
onReceivedCmd
Link copied to clipboard
public abstract boolean onReceivedCmd(MessageViewModel messageViewModel, Message message)
接收到命令消息，(MessageTag 为 None 或 Status 的消息)
onRefresh
Link copied to clipboard
public abstract void onRefresh(MessageViewModel viewModel)
onResume
Link copied to clipboard
public abstract void onResume(MessageViewModel viewModel)
onScrollToBottom
Link copied to clipboard
public abstract void onScrollToBottom(MessageViewModel viewModel)
onUserPortraitClick
Link copied to clipboard
public abstract void onUserPortraitClick(Context context, ConversationType conversationType, UserInfo userInfo, String targetId)
用户头像点击事件
onUserPortraitLongClick
Link copied to clipboard
public abstract boolean onUserPortraitLongClick(Context context, ConversationType conversationType, UserInfo userInfo, String targetId)
用户头像长按事件
unreadBarClick
Link copied to clipboard
public abstract void unreadBarClick(MessageViewModel viewModel)