# Function: showKeyboard

showKeyboard(params: ShowKeyboardParams): Promise‹ShowKeyboardRes

显示键盘

# 参数:

属性 类型 描述
params ShowKeyboardParams 显示键盘入参

ShowKeyboardParams

属性 类型 描述
confirmHold boolean 当点击完成时键盘是否收起
confirmType ConfirmType 键盘右下角 confirm 按钮的类型,只影响按钮的文本内容
defaultValue string 键盘输入框显示的默认值
maxLength number 键盘中文本的最大长度
multiple boolean 是否为多行输入
complete? Method 接口调用结束的回调函数(调用成功、失败都会执行)
fail? Method 接口调用失败的回调函数
success? Method 接口调用成功的回调函数

# 返回值:

Promise‹ShowKeyboardRes