Class OpenChannelProcessor
-
- All Implemented Interfaces:
-
ai.nexconn.chatui.channel.messagelist.processor.IChannelProcessor
public class OpenChannelProcessor extends BaseChannelProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected StateContextmState
-
Constructor Summary
Constructors Constructor Description OpenChannelProcessor()
-
Method Summary
Modifier and Type Method Description voidinit(ChannelViewModel messageViewModel, Bundle bundle)First-time initialization: bind events, etc. booleanonUserPortraitLongClick(Context context, ChannelType conversationType, UserInfo userInfo, String targetId)User portrait long-press event. intgetHistoryMessageCount()voidonDestroy(ChannelViewModel viewModel)-
Methods inherited from class ai.nexconn.chatui.channel.messagelist.processor.BaseChannelProcessor
isHistoryState, isNormalState, newMentionMessageBarClick, newMessageBarClick, onBackPressed, onClearMessage, onConnectStatusChange, onExistUnreadMessage, onLoadMessage, onLoadMore, onMessageItemClick, onMessageItemLongClick, onMessageReceiptRequest, onReceived, onReceivedCmd, onRefresh, onResume, 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
-
onUserPortraitLongClick
boolean onUserPortraitLongClick(Context context, ChannelType conversationType, UserInfo userInfo, String targetId)
User portrait long-press event.
- Returns:
whether the event is consumed
-
getHistoryMessageCount
int getHistoryMessageCount()
- Returns:
the number of history messages to fetch on init; currently only chatrooms need to override this
-
onDestroy
void onDestroy(ChannelViewModel viewModel)
-
-
-
-