mc.onKeyboardHeightChange(Function callback)

监听键盘高度变化

参数

参数 类型 默认值 必填 说明
callback Function 监听键盘高度变化回调函数

callback(Object res) 回调参数

属性 类型 说明
height Number 键盘高度,单位 px

示例代码:

mc.onKeyboardHeightChange(res => {
  console.log(res.height)
})

results matching ""

    No results matching ""

    results matching ""

      No results matching ""