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

## Class NormalState

- All Implemented Interfaces:

      public class NormalState

  会话页面当前状态，正常模式

- - ### 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
    --- | --- | ---
    `void` | `init(MessageViewModel messageViewModel, Bundle bundle)` | 正常模式，初始化，拉取本地历史记录，处理未读数
    `void` | `onLoadMore(MessageViewModel viewModel)` | 正常模式上拉加载更多
    `void` | `onRefresh(MessageViewModel viewModel)` |
    `void` | `onReceived(MessageViewModel viewModel, UiMessage uiMessage, int left, boolean hasPackage, boolean offline)` | 正常模式，按流程处理
    `void` | `onNewMessageBarClick(MessageViewModel viewModel)` |
    `void` | `onNewMentionMessageBarClick(MessageViewModel viewModel)` |
    `void` | `onScrollToBottom(MessageViewModel viewModel)` |
    `void` | `onHistoryBarClick(MessageViewModel messageViewModel)` |
    `void` | `onClearMessage(MessageViewModel viewModel)` |
    `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

           void init(MessageViewModel messageViewModel, Bundle bundle)

      正常模式，初始化，拉取本地历史记录，处理未读数

      Parameters:
        `messageViewModel` - MessageViewModel
        `bundle` - Bundle

    - #### onLoadMore

           void onLoadMore(MessageViewModel viewModel)

      正常模式上拉加载更多

      Parameters:
        `viewModel` - MessageViewModel

    - #### onRefresh

           void onRefresh(MessageViewModel viewModel)

    - #### onReceived

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

      正常模式，按流程处理

      Parameters:
        `viewModel` - MessageViewModel
        `uiMessage` - 接收到的消息对象
        `left` - 每个数据包数据逐条上抛后，还剩余的条数
        `hasPackage` - 是否在服务端还存在未下发的消息包
        `offline` - 消息是否离线消息

    - #### onNewMessageBarClick

           void onNewMessageBarClick(MessageViewModel viewModel)

    - #### onNewMentionMessageBarClick

           void onNewMentionMessageBarClick(MessageViewModel viewModel)

    - #### onScrollToBottom

           void onScrollToBottom(MessageViewModel viewModel)

    - #### onHistoryBarClick

           void onHistoryBarClick(MessageViewModel messageViewModel)

    - #### onClearMessage

           void onClearMessage(MessageViewModel viewModel)

    - #### isNormalState

           boolean isNormalState(MessageViewModel viewModel)