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

## Class StateContext

- All Implemented Interfaces:

      public class StateContext

- - ### Nested Class Summary

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

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static int` | `NORMAL_STATE` |
    `public final static int` | `HISTORY_STATE` |
    `public final static int` | `CHATROOM_NORMAL_STATE` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `StateContext(int state)` |

  - ### 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` | `onNewMessageBarClick(MessageViewModel viewModel)` |
    `void` | `onHistoryBarClick(MessageViewModel viewModel)` |
    `void` | `newMentionMessageBarClick(MessageViewModel viewModel)` |
    `void` | `onScrollToBottom(MessageViewModel viewModel)` |
    `void` | `onClearMessage(MessageViewModel viewModel)` |
    `boolean` | `isNormalState(MessageViewModel viewModel)` |
    `boolean` | `isHistoryState(MessageViewModel viewModel)` |
    `void` | `onReceived(MessageViewModel messageViewModel, UiMessage message, int left, boolean hasPackage, boolean offline)` |
    `void` | `setCurrentState(IMessageState state)` |

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

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

- - ### Constructor Detail

    - #### StateContext

          StateContext(int state)

  - ### Method Detail

    - #### init

           void init(MessageViewModel messageViewModel, Bundle bundle)

    - #### onLoadMore

           void onLoadMore(MessageViewModel viewModel)

    - #### onRefresh

           void onRefresh(MessageViewModel viewModel)

    - #### onNewMessageBarClick

           void onNewMessageBarClick(MessageViewModel viewModel)

    - #### onHistoryBarClick

           void onHistoryBarClick(MessageViewModel viewModel)

    - #### newMentionMessageBarClick

           void newMentionMessageBarClick(MessageViewModel viewModel)

    - #### onScrollToBottom

           void onScrollToBottom(MessageViewModel viewModel)

    - #### onClearMessage

           void onClearMessage(MessageViewModel viewModel)

    - #### isNormalState

           boolean isNormalState(MessageViewModel viewModel)

    - #### isHistoryState

           boolean isHistoryState(MessageViewModel viewModel)

    - #### onReceived

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

    - #### setCurrentState

           void setCurrentState(IMessageState state)