未验证 提交 3b7b4121 编写于 作者: O openharmony_ci 提交者: Gitee

!10323 inputdevice中off接口修改

Merge pull request !10323 from mayunteng/beta3
......@@ -73,6 +73,9 @@ function listener(data) {
console.log("type: " + data.type + ", deviceId: " + data.deviceId);
}
// 监听输入设备的热插拔事件
inputDevice.on("change", listener);
// 单独取消listener的监听。
inputDevice.off("change", listener);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册