Class GroupChannelProcessor
-
- All Implemented Interfaces:
-
ai.nexconn.chatui.channel.messagelist.processor.IChannelProcessor
public class GroupChannelProcessor extends BaseChannelProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected StateContextmState
-
Constructor Summary
Constructors Constructor Description GroupChannelProcessor()
-
Method Summary
Modifier and Type Method Description voidinit(ChannelViewModel messageViewModel, Bundle bundle)First-time initialization: bind events, etc. booleanonReceived(ChannelViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)Callback invoked when a message is received. voidonExistUnreadMessage(ChannelViewModel viewModel, long sentTime, int unreadMessageCount)voidonResume(ChannelViewModel viewModel)booleanonUserPortraitLongClick(Context context, ChannelType conversationType, UserInfo userInfo, String targetId)User portrait long-press event. -
Methods inherited from class ai.nexconn.chatui.channel.messagelist.processor.BaseChannelProcessor
getHistoryMessageCount, isHistoryState, isNormalState, newMentionMessageBarClick, newMessageBarClick, onBackPressed, onClearMessage, onConnectStatusChange, onDestroy, onLoadMessage, onLoadMore, onMessageItemClick, onMessageItemLongClick, onMessageReceiptRequest, onReceivedCmd, onRefresh, onScrollToBottom, onUserPortraitClick, unreadBarClick -
Methods inherited from class ai.nexconn.chatui.channel.messagelist.processor.IChannelProcessor
onExistUnreadMessage, onReceived -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
init
void init(ChannelViewModel messageViewModel, Bundle bundle)
First-time initialization: bind events, etc.
- Parameters:
messageViewModel- the message ViewModelbundle- the bundle passed from the previous page
-
onReceived
boolean onReceived(ChannelViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)
Callback invoked when a message is received.
- Returns:
whether the event is intercepted
-
onExistUnreadMessage
void onExistUnreadMessage(ChannelViewModel viewModel, long sentTime, int unreadMessageCount)
-
onResume
void onResume(ChannelViewModel viewModel)
-
onUserPortraitLongClick
boolean onUserPortraitLongClick(Context context, ChannelType conversationType, UserInfo userInfo, String targetId)
User portrait long-press event.
- Returns:
whether the event is consumed
-
-
-
-