“6df931fc981500cf629a3dfb5e0a01f375d0fa05”上不存在“drivers/mtd/multi_partition/include/mtd_dev.h”
提交 9c832bea 编写于 作者: M mayunteng_1

readme修改

Signed-off-by: Nmayunteng_1 <mayunteng@huawei.com>
Change-Id: I185afd73189123c52d60136fee92734fbbe21747
上级 262accb8
...@@ -33,8 +33,8 @@ on(type: “change”, listener: Callback&lt;DeviceListener&gt;): void ...@@ -33,8 +33,8 @@ on(type: “change”, listener: Callback&lt;DeviceListener&gt;): void
**示例:** **示例:**
```js ```js
let isPhysicalKeyboardExist = false; let isPhysicalKeyboardExist = true;
inputDevice.on("change", (data)=>{ inputDevice.on("change", (data) => {
console.log("type: " + data.type + ", deviceId: " + data.deviceId); console.log("type: " + data.type + ", deviceId: " + data.deviceId);
inputDevice.getKeyboardType(data.deviceId, (ret) => { inputDevice.getKeyboardType(data.deviceId, (ret) => {
console.log("The keyboard type of the device is: " + ret); console.log("The keyboard type of the device is: " + ret);
...@@ -77,6 +77,7 @@ inputDevice.off("change", this.listener); ...@@ -77,6 +77,7 @@ inputDevice.off("change", this.listener);
// 取消所有监听 // 取消所有监听
inputDevice.off("change"); inputDevice.off("change");
// 取消监听后,软键盘默认都弹出
``` ```
## inputDevice.getDeviceIds ## inputDevice.getDeviceIds
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册