Package io.rong.imkit.conversation.messgelist.status

## Interface IMessageState

- All Implemented Interfaces:

      public interface IMessageState

  处理，消息列表，历史消息展示条，新消息展示条相关逻辑

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract void` | `init(MessageViewModel viewModel, Bundle bundle)` | 处理历史消息
    `abstract void` | `onLoadMore(MessageViewModel viewModel)` | 处理上拉加载更多
    `abstract void` | `onRefresh(MessageViewModel viewModel)` | 处理下拉刷新
    `abstract void` | `onReceived(MessageViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)` | 收到消息回调
    `abstract void` | `onNewMessageBarClick(MessageViewModel viewModel)` | 新消息按钮点击
    `abstract void` | `onNewMentionMessageBarClick(MessageViewModel viewModel)` | 新的 `@` 消息点击
    `abstract void` | `onScrollToBottom(MessageViewModel viewModel)` | 滑动到底部
    `abstract void` | `onHistoryBarClick(MessageViewModel viewModel)` | 历史消息 bar 点击事件
    `abstract void` | `onClearMessage(MessageViewModel viewModel)` | 清除消息
    `abstract boolean` | `isNormalState(MessageViewModel viewModel)` | 是否是正常会话状态

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### init

           abstract void init(MessageViewModel viewModel, Bundle bundle)

      处理历史消息

      Parameters:
        `viewModel` - MessageViewModel
        `bundle` - Bundle

    - #### onLoadMore

           abstract void onLoadMore(MessageViewModel viewModel)

      处理上拉加载更多

      Parameters:
        `viewModel` - MessageViewModel

    - #### onRefresh

           abstract void onRefresh(MessageViewModel viewModel)

      处理下拉刷新

      Parameters:
        `viewModel` - MessageViewModel

    - #### onReceived

           abstract void onReceived(MessageViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)

      收到消息回调

      Parameters:
        `viewModel` - MessageViewModel
        `message` - 消息
        `left` - 剩余未拉取消息数目
        `hasPackage` - 标识是否还有剩余的消息包
        `offline` - 是否离线

    - #### onNewMessageBarClick

           abstract void onNewMessageBarClick(MessageViewModel viewModel)

      新消息按钮点击

      Parameters:
        `viewModel` - MessageViewModel

    - #### onNewMentionMessageBarClick

           abstract void onNewMentionMessageBarClick(MessageViewModel viewModel)

      新的 `@` 消息点击

      Parameters:
        `viewModel` - MessageViewModel

    - #### onScrollToBottom

           abstract void onScrollToBottom(MessageViewModel viewModel)

      滑动到底部

      Parameters:
        `viewModel` - MessageViewModel

    - #### onHistoryBarClick

           abstract void onHistoryBarClick(MessageViewModel viewModel)

      历史消息 bar 点击事件

      Parameters:
        `viewModel` - MessageViewModel

    - #### onClearMessage

           abstract void onClearMessage(MessageViewModel viewModel)

      清除消息

      Parameters:
        `viewModel` - MessageViewModel

    - #### isNormalState

           abstract boolean isNormalState(MessageViewModel viewModel)

      是否是正常会话状态

      Parameters:
        `viewModel` - MessageViewModel
      Returns:

        是否是正常会话状态