Class RongExtensionViewModel
-
- All Implemented Interfaces:
public class RongExtensionViewModel
-
-
Field Summary
Fields Modifier and Type Field Description public booleanisSoftInputShow
-
Constructor Summary
Constructors Constructor Description RongExtensionViewModel(Application application)
-
Method Summary
Modifier and Type Method Description booleanisSoftInputShow()voidonSendClick()voidexitMoreInputMode(Context context)Exits "more" mode. voidcollapseExtensionBoard()Collapses the panel; RongExtension shows only the InputPanel. voidsetSoftInputKeyBoard(boolean isShow)voidsetSoftInputKeyBoard(boolean isShow, boolean clearFocus)voidforceSetSoftInputKeyBoard(boolean isShow)voidforceSetSoftInputKeyBoard(boolean isShow, boolean clearFocus)EditTextgetEditTextWidget()Gets the EditText widget. voidsetEditTextWidget(EditText editText)ChannelIdentifiergetConversationIdentifier()MutableLiveData<Boolean>getExtensionBoardState()Gets the extension board open state. MutableLiveData<InputMode>getInputModeLiveData()Gets the input mode LiveData. -
-
Method Detail
-
isSoftInputShow
boolean isSoftInputShow()
-
onSendClick
void onSendClick()
-
exitMoreInputMode
void exitMoreInputMode(Context context)
Exits "more" mode.
- Parameters:
context- Context.
-
collapseExtensionBoard
void collapseExtensionBoard()
Collapses the panel; RongExtension shows only the 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()
Gets the EditText widget.
- Returns:
EditText widget.
-
setEditTextWidget
void setEditTextWidget(EditText editText)
-
getConversationIdentifier
ChannelIdentifier getConversationIdentifier()
-
getExtensionBoardState
MutableLiveData<Boolean> getExtensionBoardState()
Gets the extension board open state.
value < 0means collapsed;value > 0means open, where value is the height of the board when open.- Returns:
Board state LiveData.
-
getInputModeLiveData
MutableLiveData<InputMode> getInputModeLiveData()
Gets the input mode LiveData.
- Returns:
LiveData for the input mode.
-
-
-
-