harmony 鸿蒙Input Device Error Codes
Input Device Error Codes
NOTE
This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
3900001 Device Not Exist
Error Message
The specified device does not exist.
Description
This error code is reported if the specified device cannot be found in the multimodal device list.
Possible Causes
- The ID of the input device has changed.
- The physical connection of the input device is disconnected.
Procedure
- Use inputDevice.getDeviceList to query the device ID, and then pass in the correct device ID.
- Check whether the keyboard cable is disconnected.
3900002 Keyboard Not Connected
Error Message
There is currently no keyboard device connected.
Description
This error code is reported if no connected keyboard is detected.
Possible Causes
The physical connection of the input device is disconnected.
Procedure
Check whether the keyboard cable is disconnected.
3900003 API Call Failed for a Non-Input Application
Error Message
It is prohibited for non-input applications.
Description
Non-input applications are not allowed to call this API.
Possible Causes
This API is not supported for a third-party application or a non-input system application.
Procedure
Use an input application to call this API.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Input_DeviceListener
harmony 鸿蒙Input_InterceptorEventCallback
harmony 鸿蒙Input_DeviceListener
harmony 鸿蒙Input_InterceptorEventCallback
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦