harmony 鸿蒙Accessibility Error Codes
Accessibility Error Codes
NOTE
This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
9300001 Invalid Bundle Name or Ability Name
Error Message
Invalid bundle name or ability name.
Description
This error code is reported when the entered bundle name or ability name is invalid.
Possible Causes
- The bundle name does not exist.
- The bundle does not contain the target ability.
Solution
- Verify the bundle name.
- Check whether the ability name corresponding to the bundle name is correct.
9300002 Target Ability Already Enabled
Error Message
Target ability already enabled.
Description
This error code is reported when the target ability is already enabled.
Possible Causes
The target ability is already enabled and cannot be enabled again.
Solution
Stop the target ability.
Re-enable the target ability.
9300003 No Accessibility Permission to Perform the Operation
Error Message
No accessibility permission to perform the operation.
Description
This error code is reported when an application performs an accessibility operation for which the related permission has not been granted.
Possible Causes
The permission for performing the accessibility operation is not granted when the accessibility application is enabled.
Solution
- Request from the user the permission for performing the accessibility operation, stating the reason for the request.
- Have the accessibility application re-enabled and the required accessibility operation enabled.
9300004 Attribute Not Found
Error Message
This property does not exist.
Description
This error code is reported when the entered attribute of the accessibility element does not exist.
Possible Causes
The attribute does not exist in the accessibility element.
Solution
Make sure the accessibility element has the target attribute.
9300005 Operation Not Supported
Error Message
This action is not supported.
Description
This error code is reported when the application performs an operation that is not supported by the accessibility element.
Possible Causes
The accessibility element does not support the target operation.
Solution
Make sure the operation is included in the list of operations supported by the accessibility element.
9300006 Failed to Connect the Target Application and Accessibility Services
Error Message
The connection between the target application and accessibility services failed.
Description
This error code is reported when the connection handle between the target application and the accessibility framework does not exist.
Possible Causes
The target application has not registered the connection with the accessibility framework service.
Solution
Call this method later.
9300007 Failed to Trigger Amplification
Error Message
Failed to trigger amplification.
Description
This error code is reported when the amplification feature fails to be triggered.
Possible Causes
- The amplification feature is not enabled in Settings.
- The amplification mode is not configured.
Solution
Enable the amplification feature and configure the amplification mode.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙@ohos.accessibility.GesturePath (Gesture Path)
harmony 鸿蒙@ohos.accessibility.GesturePoint (Gesture Point)
harmony 鸿蒙@ohos.accessibility.config (SystemAPI)
harmony 鸿蒙@ohos.accessibility (Accessibility)
harmony 鸿蒙@ohos.application.AccessibilityExtensionAbility (AccessibilityExtensionAbility)
harmony 鸿蒙AccessibilityExtensionContext (System API)
harmony 鸿蒙AccessibilityExtensionContext (Accessibility Extension Context)
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦