提交 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
**示例:**
```js
let isPhysicalKeyboardExist = false;
inputDevice.on("change", (data)=>{
let isPhysicalKeyboardExist = true;
inputDevice.on("change", (data) => {
console.log("type: " + data.type + ", deviceId: " + data.deviceId);
inputDevice.getKeyboardType(data.deviceId, (ret) => {
console.log("The keyboard type of the device is: " + ret);
......@@ -77,6 +77,7 @@ inputDevice.off("change", this.listener);
// 取消所有监听
inputDevice.off("change");
// 取消监听后,软键盘默认都弹出
```
## inputDevice.getDeviceIds
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册