public class RongExtensionViewModel
extends AndroidViewModel
Constructor and Description |
---|
RongExtensionViewModel(android.app.Application application) |
Modifier and Type | Method and Description |
---|---|
void |
collapseExtensionBoard()
收起面板,RongExtension 仅显示 InputPanel。
|
void |
exitMoreInputMode(android.content.Context context)
退出"更多"模式
|
void |
forceSetSoftInputKeyBoard(boolean isShow) |
android.widget.EditText |
getEditTextWidget()
获取 EditText 控件
|
<any> |
getExtensionBoardState()
获取面板打开状态。 value < 0 面板收起; value > 0, 代表面板打开,value 为面板打开后的高度。
|
<any> |
getInputModeLiveData()
获取输入模式的 LiveData
|
boolean |
isSoftInputShow() |
void |
onSendClick() |
void |
setEditTextWidget(android.widget.EditText editText) |
void |
setSoftInputKeyBoard(boolean isShow) |
public RongExtensionViewModel(android.app.Application application)
public void onSendClick()
public boolean isSoftInputShow()
public void exitMoreInputMode(android.content.Context context)
context
- 上下文public void collapseExtensionBoard()
public void setSoftInputKeyBoard(boolean isShow)
public void forceSetSoftInputKeyBoard(boolean isShow)
public android.widget.EditText getEditTextWidget()
public void setEditTextWidget(android.widget.EditText editText)
public <any> getExtensionBoardState()
public <any> getInputModeLiveData()