Class GroupChannelProcessor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void init(ChannelViewModel messageViewModel, Bundle bundle) First-time initialization: bind events, etc.
      boolean onReceived(ChannelViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline) Callback invoked when a message is received.
      void onExistUnreadMessage(ChannelViewModel viewModel, long sentTime, int unreadMessageCount)
      void onResume(ChannelViewModel viewModel)
      boolean onUserPortraitLongClick(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
    • Constructor Detail

      • GroupChannelProcessor

        GroupChannelProcessor()
    • Method Detail

      • init

         void init(ChannelViewModel messageViewModel, Bundle bundle)

        First-time initialization: bind events, etc.

        Parameters:
        messageViewModel - the message ViewModel
        bundle - 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

      • onUserPortraitLongClick

         boolean onUserPortraitLongClick(Context context, ChannelType conversationType, UserInfo userInfo, String targetId)

        User portrait long-press event.

        Returns:

        whether the event is consumed