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

!10247 修改inputdevice中热插拔监听

Merge pull request !10247 from mayunteng/master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册