Package io.rong.imkit.conversation.extension

## Class RongExtensionViewModel

- All Implemented Interfaces:

      public class RongExtensionViewModel

- - ### Nested Class Summary

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

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public boolean` | `isSoftInputShow` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RongExtensionViewModel(Application application)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `isSoftInputShow()` |
    `void` | `onSendClick()` |
    `void` | `exitMoreInputMode(Context context)` | 退出"更多"模式
    `void` | `collapseExtensionBoard()` | 收起面板，RongExtension 仅显示 InputPanel。
    `void` | `setSoftInputKeyBoard(boolean isShow)` |
    `void` | `setSoftInputKeyBoard(boolean isShow, boolean clearFocus)` |
    `void` | `forceSetSoftInputKeyBoard(boolean isShow)` |
    `void` | `forceSetSoftInputKeyBoard(boolean isShow, boolean clearFocus)` |
    `EditText` | `getEditTextWidget()` | 获取 EditText 控件
    `void` | `setEditTextWidget(EditText editText)` |
    `ConversationIdentifier` | `getConversationIdentifier()` |
    `MutableLiveData<Boolean>` | `getExtensionBoardState()` | 获取面板打开状态。 `value < 0` 面板收起； `value > 0`, 代表面板打开，value 为面板打开后的高度。
    `MutableLiveData<InputMode>` | `getInputModeLiveData()` | 获取输入模式的 LiveData

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

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

- - ### Constructor Detail

    - #### RongExtensionViewModel

          RongExtensionViewModel(Application application)

  - ### Method Detail

    - #### isSoftInputShow

           boolean isSoftInputShow()

    - #### onSendClick

           void onSendClick()

    - #### exitMoreInputMode

           void exitMoreInputMode(Context context)

      退出"更多"模式

      Parameters:
        `context` - 上下文

    - #### collapseExtensionBoard

           void collapseExtensionBoard()

      收起面板，RongExtension 仅显示 InputPanel。

    - #### setSoftInputKeyBoard

           void setSoftInputKeyBoard(boolean isShow)

    - #### setSoftInputKeyBoard

           void setSoftInputKeyBoard(boolean isShow, boolean clearFocus)

    - #### forceSetSoftInputKeyBoard

           void forceSetSoftInputKeyBoard(boolean isShow)

    - #### forceSetSoftInputKeyBoard

           void forceSetSoftInputKeyBoard(boolean isShow, boolean clearFocus)

    - #### getEditTextWidget

           EditText getEditTextWidget()

      获取 EditText 控件

      Returns:

        EditText 控件

    - #### setEditTextWidget

           void setEditTextWidget(EditText editText)

    - #### getConversationIdentifier

           ConversationIdentifier getConversationIdentifier()

    - #### getExtensionBoardState

           MutableLiveData<Boolean> getExtensionBoardState()

      获取面板打开状态。 `value < 0` 面板收起； `value > 0`, 代表面板打开，value 为面板打开后的高度。

      Returns:

        面板状态 LiveData

    - #### getInputModeLiveData

           MutableLiveData<InputMode> getInputModeLiveData()

      获取输入模式的 LiveData

      Returns:

        输入模式对应的 LiveData