Class GroupBusinessProcessor
-
- All Implemented Interfaces:
-
io.rong.imkit.conversation.messgelist.processor.IConversationBusinessProcessor
public class GroupBusinessProcessor extends BaseBusinessProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected StateContextmState
-
Constructor Summary
Constructors Constructor Description GroupBusinessProcessor()
-
Method Summary
Modifier and Type Method Description voidinit(MessageViewModel messageViewModel, Bundle bundle)第一次初始化,绑定事件等 booleanonReceived(MessageViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)接收消息回调此接口 voidonExistUnreadMessage(MessageViewModel viewModel, Conversation conversation, int unreadMessageCount)booleanonUserPortraitLongClick(Context context, Conversation.ConversationType conversationType, UserInfo userInfo, String targetId)用户头像长按事件 voidonLoadMessage(MessageViewModel viewModel, List<Message> messages)当加载完消息,群组发送已读回执 voidonResume(MessageViewModel viewModel)voidonMessageReceiptRequest(MessageViewModel viewModel, Conversation.ConversationType conversationType, String targetId, String messageUId)-
Methods inherited from class io.rong.imkit.conversation.messgelist.processor.BaseBusinessProcessor
getHistoryMessageCount, isHistoryState, isNormalState, newMentionMessageBarClick, newMessageBarClick, onBackPressed, onClearMessage, onConnectStatusChange, onDestroy, onLoadMore, onMessageItemClick, onMessageItemLongClick, onReceivedCmd, onRefresh, onScrollToBottom, onUserPortraitClick, unreadBarClick -
Methods inherited from class io.rong.imkit.conversation.messgelist.processor.IConversationBusinessProcessor
onReceived -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
init
void init(MessageViewModel messageViewModel, Bundle bundle)
第一次初始化,绑定事件等
- Parameters:
messageViewModel- 消息处理类bundle- 上一个页面传递过来的 bundle
-
onReceived
boolean onReceived(MessageViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)
接收消息回调此接口
- Returns:
是否拦截
-
onExistUnreadMessage
void onExistUnreadMessage(MessageViewModel viewModel, Conversation conversation, int unreadMessageCount)
-
onUserPortraitLongClick
boolean onUserPortraitLongClick(Context context, Conversation.ConversationType conversationType, UserInfo userInfo, String targetId)
用户头像长按事件
-
onLoadMessage
void onLoadMessage(MessageViewModel viewModel, List<Message> messages)
当加载完消息,群组发送已读回执
-
onResume
void onResume(MessageViewModel viewModel)
-
onMessageReceiptRequest
void onMessageReceiptRequest(MessageViewModel viewModel, Conversation.ConversationType conversationType, String targetId, String messageUId)
-
-
-
-