1e41f4b71Sopenharmony_ci# @ohos.accessibility.config (SystemAPI)
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciThe **accessibility.config** module provides APIs for configuring system accessibility features, including accessibility extension, high-contrast text, mouse buttons, and captions.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **NOTE**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> - The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8e41f4b71Sopenharmony_ci> - The APIs provided by this module are system APIs.
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci## Modules to Import
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci```ts
13e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
14e41f4b71Sopenharmony_ci```
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci## Attributes
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci| Name                                | Type                                                                                        | Readable | Writable | Description                                                       |
21e41f4b71Sopenharmony_ci|------------------------------------|--------------------------------------------------------------------------------------------| -------- | -------- |-----------------------------------------------------------|
22e41f4b71Sopenharmony_ci| highContrastText                   | [Config](#config)\<boolean>                                                                | Yes | Yes | Whether to enable high-contrast text.                                          |
23e41f4b71Sopenharmony_ci| invertColor                        | [Config](#config)\<boolean>                                                                | Yes | Yes | Whether to enable color inversion.                                            |
24e41f4b71Sopenharmony_ci| daltonizationState<sup>11+</sup>   | [Config](#config)\<boolean>                                                                | Yes | Yes | Whether to enable daltonization. It must be used with **daltonizationColorFilter**.               |
25e41f4b71Sopenharmony_ci| daltonizationColorFilter           | [Config](#config)&lt;[DaltonizationColorFilter](#daltonizationcolorfilter)&gt;             | Yes | Yes | Configuration of the daltonization filter.                                              |
26e41f4b71Sopenharmony_ci| contentTimeout                     | [Config](#config)\<number>                                                                 | Yes | Yes | Recommended duration for content display. The value ranges from 0 to 5000, in milliseconds.                            |
27e41f4b71Sopenharmony_ci| animationOff                       | [Config](#config)\<boolean>                                                                | Yes | Yes | Whether to disable animation.                                            |
28e41f4b71Sopenharmony_ci| brightnessDiscount                 | [Config](#config)\<number>                                                                 | Yes | Yes | Brightness discount. The value ranges from 0 to 1.0.                                     |
29e41f4b71Sopenharmony_ci| mouseKey                           | [Config](#config)\<boolean>                                                                | Yes | Yes | Whether to enable the mouse button feature.                                             |
30e41f4b71Sopenharmony_ci| mouseAutoClick                     | [Config](#config)\<number>                                                                 | Yes | Yes | Interval for automatic mouse clicks. The value ranges from 0 to 5000, in milliseconds.                          |
31e41f4b71Sopenharmony_ci| shortkey                           | [Config](#config)\<boolean>                                                                | Yes | Yes | Whether to enable the accessibility extension shortcut key.                                         |
32e41f4b71Sopenharmony_ci| shortkeyTarget                     | [Config](#config)\<string>                                                                 | Yes | Yes | Target application for the accessibility extension shortcut key. The value format is 'bundleName/abilityName'.  |
33e41f4b71Sopenharmony_ci| captions                           | [Config](#config)\<boolean>                                                                | Yes | Yes | Whether to enable captions.                                            |
34e41f4b71Sopenharmony_ci| captionsStyle                      | [Config](#config)\<[accessibility.CaptionsStyle](js-apis-accessibility.md#captionsstyle8)> | Yes | Yes | Captions style.                                               |
35e41f4b71Sopenharmony_ci| audioMono<sup>10+</sup>            | [Config](#config)\<boolean>                                                                | Yes | Yes | Whether to enable mono audio.                                              |
36e41f4b71Sopenharmony_ci| audioBalance<sup>10+</sup>         | [Config](#config)\<number>                                                                 | Yes | Yes | Audio balance for the left and right audio channels. The value ranges from -1.0 to 1.0.                               |
37e41f4b71Sopenharmony_ci| shortkeyMultiTargets<sup>11+</sup> | [Config](#config)&lt;Array\<string>&gt;                                                    | Yes | Yes | List of target applications for the accessibility shortcut keys. The value format is ['bundleName/abilityName']. |
38e41f4b71Sopenharmony_ci| clickResponseTime<sup>11+</sup>    | [Config](#config)&lt;[ClickResponseTime](#clickresponsetime11)&gt;                         | Yes | Yes | Length of time required for a click.                                            |
39e41f4b71Sopenharmony_ci| ignoreRepeatClick<sup>11+</sup>    | [Config](#config)\<boolean>                                                                | Yes | Yes | Whether to ignore repeated clicks. This parameter must be used together with **repeatClickInterval**.                  |
40e41f4b71Sopenharmony_ci| repeatClickInterval<sup>11+</sup>  | [Config](#config)&lt;[RepeatClickInterval](#repeatclickinterval11)&gt;                     | Yes | Yes | Interval between repeated clicks.                                            |
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ciFor a boolean return value, **True** means that the feature is enabled, and **False** means the opposite.
43e41f4b71Sopenharmony_ci[]()
44e41f4b71Sopenharmony_ci## enableAbility
45e41f4b71Sopenharmony_ci
46e41f4b71Sopenharmony_cienableAbility(name: string, capability: Array&lt;accessibility.Capability&gt;): Promise&lt;void&gt;;
47e41f4b71Sopenharmony_ci
48e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.WRITE_ACCESSIBILITY_CONFIG
49e41f4b71Sopenharmony_ci
50e41f4b71Sopenharmony_ciEnables an accessibility extension ability. This API uses a promise to return the result.
51e41f4b71Sopenharmony_ci
52e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
53e41f4b71Sopenharmony_ci
54e41f4b71Sopenharmony_ci**Parameters**
55e41f4b71Sopenharmony_ci
56e41f4b71Sopenharmony_ci| Name | Type                                                                          | Mandatory | Description |
57e41f4b71Sopenharmony_ci| -------- |------------------------------------------------------------------------------| -------- | -------- |
58e41f4b71Sopenharmony_ci| name | string                                                                       | Yes | Name of the accessibility extension ability. The format is 'bundleName/abilityName'. |
59e41f4b71Sopenharmony_ci| capability | Array&lt;[accessibility.Capability](js-apis-accessibility.md#capability)&gt; | Yes | Capability of the accessibility extension ability. |
60e41f4b71Sopenharmony_ci
61e41f4b71Sopenharmony_ci**Return value**
62e41f4b71Sopenharmony_ci
63e41f4b71Sopenharmony_ci| Type | Description |
64e41f4b71Sopenharmony_ci| -------- | -------- |
65e41f4b71Sopenharmony_ci| Promise\<void> | that returns no value. |
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci**Error codes**
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ci| Error Code | Error Message |
72e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
73e41f4b71Sopenharmony_ci| 201 | Permission verification failed. The application does not have the permission required to call the API.  |
74e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
75e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
76e41f4b71Sopenharmony_ci| 9300001 | Invalid bundle name or ability name.  |
77e41f4b71Sopenharmony_ci| 9300002 | Target ability already enabled. |
78e41f4b71Sopenharmony_ci
79e41f4b71Sopenharmony_ci**Example**
80e41f4b71Sopenharmony_ci
81e41f4b71Sopenharmony_ci```ts
82e41f4b71Sopenharmony_ciimport { accessibility, config } from '@kit.AccessibilityKit';
83e41f4b71Sopenharmony_ciimport { BusinessError } from '@kit.BasicServicesKit';
84e41f4b71Sopenharmony_ci
85e41f4b71Sopenharmony_cilet name: string = 'com.ohos.example/axExtension';
86e41f4b71Sopenharmony_cilet capability: accessibility.Capability[] = ['retrieve'];
87e41f4b71Sopenharmony_ci
88e41f4b71Sopenharmony_ciconfig.enableAbility(name, capability).then(() => {
89e41f4b71Sopenharmony_ci  console.info(`Succeeded  in enable ability, name is ${name}, capability is ${capability}`);
90e41f4b71Sopenharmony_ci}).catch((err: BusinessError) => {
91e41f4b71Sopenharmony_ci  console.error(`failed to enable ability, Code is ${err.code}, message is ${err.message}`);
92e41f4b71Sopenharmony_ci});
93e41f4b71Sopenharmony_ci```
94e41f4b71Sopenharmony_ci
95e41f4b71Sopenharmony_ci## enableAbility
96e41f4b71Sopenharmony_ci
97e41f4b71Sopenharmony_cienableAbility(name: string, capability: Array&lt;[accessibility.Capability](js-apis-accessibility.md#capability)&gt;, callback: AsyncCallback&lt;void&gt;): void;
98e41f4b71Sopenharmony_ci
99e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.WRITE_ACCESSIBILITY_CONFIG
100e41f4b71Sopenharmony_ci
101e41f4b71Sopenharmony_ciEnables an accessibility extension ability. This API uses an asynchronous callback to return the result.
102e41f4b71Sopenharmony_ci
103e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
104e41f4b71Sopenharmony_ci
105e41f4b71Sopenharmony_ci**Parameters**
106e41f4b71Sopenharmony_ci
107e41f4b71Sopenharmony_ci| Name | Type                                                                             | Mandatory | Description |
108e41f4b71Sopenharmony_ci| -------- |---------------------------------------------------------------------------------| -------- | -------- |
109e41f4b71Sopenharmony_ci| name | string                                                                          | Yes | Name of the accessibility extension ability. The format is 'bundleName/abilityName'. |
110e41f4b71Sopenharmony_ci| capability | Array&lt;[accessibility.Capability](js-apis-accessibility.md#capability)&gt; | Yes | Capability of the accessibility extension ability. |
111e41f4b71Sopenharmony_ci| callback | AsyncCallback&lt;void&gt;                                                       | Yes | Callback used to return |
112e41f4b71Sopenharmony_ci
113e41f4b71Sopenharmony_ci**Error codes**
114e41f4b71Sopenharmony_ci
115e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
116e41f4b71Sopenharmony_ci
117e41f4b71Sopenharmony_ci| Error Code | Error Message |
118e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
119e41f4b71Sopenharmony_ci| 201 | Permission verification failed. The application does not have the permission required to call the API.  |
120e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
121e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
122e41f4b71Sopenharmony_ci| 9300001 | Invalid bundle name or ability name.  |
123e41f4b71Sopenharmony_ci| 9300002 | Target ability already enabled. |
124e41f4b71Sopenharmony_ci
125e41f4b71Sopenharmony_ci**Example**
126e41f4b71Sopenharmony_ci
127e41f4b71Sopenharmony_ci```ts
128e41f4b71Sopenharmony_ciimport { accessibility, config } from '@kit.AccessibilityKit';
129e41f4b71Sopenharmony_ciimport { BusinessError } from '@kit.BasicServicesKit';
130e41f4b71Sopenharmony_ci
131e41f4b71Sopenharmony_cilet name: string = 'com.ohos.example/axExtension';
132e41f4b71Sopenharmony_cilet capability: accessibility.Capability[] = ['retrieve'];
133e41f4b71Sopenharmony_ci
134e41f4b71Sopenharmony_ciconfig.enableAbility(name, capability, (err: BusinessError) => {
135e41f4b71Sopenharmony_ci  if (err) {
136e41f4b71Sopenharmony_ci    console.error(`failed to enable ability, Code is ${err.code}, message is ${err.message}`);
137e41f4b71Sopenharmony_ci    return;
138e41f4b71Sopenharmony_ci  }
139e41f4b71Sopenharmony_ci  console.info(`Succeeded in enable ability, name is ${name}, capability is ${capability}`); 
140e41f4b71Sopenharmony_ci});
141e41f4b71Sopenharmony_ci```
142e41f4b71Sopenharmony_ci
143e41f4b71Sopenharmony_ci## disableAbility
144e41f4b71Sopenharmony_ci
145e41f4b71Sopenharmony_cidisableAbility(name: string): Promise&lt;void&gt;;
146e41f4b71Sopenharmony_ci
147e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.WRITE_ACCESSIBILITY_CONFIG
148e41f4b71Sopenharmony_ci
149e41f4b71Sopenharmony_ciDisables an accessibility extension ability. This API uses a promise to return the result.
150e41f4b71Sopenharmony_ci
151e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
152e41f4b71Sopenharmony_ci
153e41f4b71Sopenharmony_ci**Parameters**
154e41f4b71Sopenharmony_ci
155e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
156e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
157e41f4b71Sopenharmony_ci| name | string | Yes | Name of the accessibility extension ability. The format is 'bundleName/abilityName'. |
158e41f4b71Sopenharmony_ci
159e41f4b71Sopenharmony_ci**Return value**
160e41f4b71Sopenharmony_ci
161e41f4b71Sopenharmony_ci| Type | Description |
162e41f4b71Sopenharmony_ci| -------- | -------- |
163e41f4b71Sopenharmony_ci| Promise\<void> | that returns no value. |
164e41f4b71Sopenharmony_ci
165e41f4b71Sopenharmony_ci**Error codes**
166e41f4b71Sopenharmony_ci
167e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
168e41f4b71Sopenharmony_ci
169e41f4b71Sopenharmony_ci| Error Code | Error Message |
170e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
171e41f4b71Sopenharmony_ci| 201 | Permission verification failed. The application does not have the permission required to call the API.  |
172e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
173e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
174e41f4b71Sopenharmony_ci| 9300001 | Invalid bundle name or ability name.  |
175e41f4b71Sopenharmony_ci
176e41f4b71Sopenharmony_ci**Example**
177e41f4b71Sopenharmony_ci
178e41f4b71Sopenharmony_ci```ts
179e41f4b71Sopenharmony_ciimport { accessibility, config } from '@kit.AccessibilityKit';
180e41f4b71Sopenharmony_ciimport { BusinessError } from '@kit.BasicServicesKit';
181e41f4b71Sopenharmony_ci
182e41f4b71Sopenharmony_cilet name: string = 'com.ohos.example/axExtension';
183e41f4b71Sopenharmony_ci
184e41f4b71Sopenharmony_ciconfig.disableAbility(name).then(() => {
185e41f4b71Sopenharmony_ci  console.info(`Succeeded in disable ability, name is ${name}`);
186e41f4b71Sopenharmony_ci}).catch((err: BusinessError) => {
187e41f4b71Sopenharmony_ci  console.error(`failed to disable ability, Code is ${err.code}, message is ${err.message}`);
188e41f4b71Sopenharmony_ci})
189e41f4b71Sopenharmony_ci```
190e41f4b71Sopenharmony_ci
191e41f4b71Sopenharmony_ci## disableAbility
192e41f4b71Sopenharmony_ci
193e41f4b71Sopenharmony_cidisableAbility(name: string, callback: AsyncCallback&lt;void&gt;): void;
194e41f4b71Sopenharmony_ci
195e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.WRITE_ACCESSIBILITY_CONFIG
196e41f4b71Sopenharmony_ci
197e41f4b71Sopenharmony_ciDisables an accessibility extension ability. This API uses an asynchronous callback to return the result.
198e41f4b71Sopenharmony_ci
199e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
200e41f4b71Sopenharmony_ci
201e41f4b71Sopenharmony_ci**Parameters**
202e41f4b71Sopenharmony_ci
203e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
204e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
205e41f4b71Sopenharmony_ci| name | string | Yes | Name of the accessibility extension ability. The format is 'bundleName/abilityName'. |
206e41f4b71Sopenharmony_ci| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the result. |
207e41f4b71Sopenharmony_ci
208e41f4b71Sopenharmony_ci**Error codes**
209e41f4b71Sopenharmony_ci
210e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
211e41f4b71Sopenharmony_ci
212e41f4b71Sopenharmony_ci| Error Code | Error Message |
213e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
214e41f4b71Sopenharmony_ci| 201 | Permission verification failed. The application does not have the permission required to call the API.  |
215e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
216e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
217e41f4b71Sopenharmony_ci| 9300001 | Invalid bundle name or ability name.  |
218e41f4b71Sopenharmony_ci
219e41f4b71Sopenharmony_ci**Example**
220e41f4b71Sopenharmony_ci
221e41f4b71Sopenharmony_ci```ts
222e41f4b71Sopenharmony_ciimport { accessibility, config } from '@kit.AccessibilityKit';
223e41f4b71Sopenharmony_ciimport { BusinessError } from '@kit.BasicServicesKit';
224e41f4b71Sopenharmony_ci
225e41f4b71Sopenharmony_cilet name: string = 'com.ohos.example/axExtension';
226e41f4b71Sopenharmony_ci
227e41f4b71Sopenharmony_ciconfig.disableAbility(name, (err: BusinessError) => {
228e41f4b71Sopenharmony_ci  if (err) {
229e41f4b71Sopenharmony_ci    console.error(`failed to enable ability, Code is ${err.code}, message is ${err.message}`);
230e41f4b71Sopenharmony_ci    return;
231e41f4b71Sopenharmony_ci  }
232e41f4b71Sopenharmony_ci  console.info(`Succeeded in disable, name is ${name}`);
233e41f4b71Sopenharmony_ci});
234e41f4b71Sopenharmony_ci```
235e41f4b71Sopenharmony_ci
236e41f4b71Sopenharmony_ci## on('enabledAccessibilityExtensionListChange')
237e41f4b71Sopenharmony_ci
238e41f4b71Sopenharmony_cion(type: 'enabledAccessibilityExtensionListChange', callback: Callback&lt;void&gt;): void;
239e41f4b71Sopenharmony_ci
240e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.READ_ACCESSIBILITY_CONFIG
241e41f4b71Sopenharmony_ci
242e41f4b71Sopenharmony_ciAdds a listener for changes in the list of enabled accessibility extension abilities. This API uses an asynchronous callback to return the result.
243e41f4b71Sopenharmony_ci
244e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
245e41f4b71Sopenharmony_ci
246e41f4b71Sopenharmony_ci**Parameters**
247e41f4b71Sopenharmony_ci
248e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
249e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
250e41f4b71Sopenharmony_ci| type | string | Yes | Listening type. The value is fixed at **'enabledAccessibilityExtensionListChange'**, indicating listening for changes in the list of enabled accessibility extension abilities. |
251e41f4b71Sopenharmony_ci| callback | Callback&lt;void&gt; | Yes | Callback invoked when the list of enabled accessibility extension abilities changes. |
252e41f4b71Sopenharmony_ci
253e41f4b71Sopenharmony_ci**Error codes**
254e41f4b71Sopenharmony_ci
255e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
256e41f4b71Sopenharmony_ci
257e41f4b71Sopenharmony_ci| Error Code | Error Message |
258e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
259e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
260e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
261e41f4b71Sopenharmony_ci
262e41f4b71Sopenharmony_ci**Example**
263e41f4b71Sopenharmony_ci
264e41f4b71Sopenharmony_ci```ts
265e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
266e41f4b71Sopenharmony_ci
267e41f4b71Sopenharmony_ciconfig.on('enabledAccessibilityExtensionListChange', () => {
268e41f4b71Sopenharmony_ci  console.info('subscribe enabled accessibility extension list change state success');
269e41f4b71Sopenharmony_ci});
270e41f4b71Sopenharmony_ci```
271e41f4b71Sopenharmony_ci
272e41f4b71Sopenharmony_ci## off('enabledAccessibilityExtensionListChange')
273e41f4b71Sopenharmony_ci
274e41f4b71Sopenharmony_cioff(type: 'enabledAccessibilityExtensionListChange', callback?: Callback&lt;void&gt;): void;
275e41f4b71Sopenharmony_ci
276e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.READ_ACCESSIBILITY_CONFIG
277e41f4b71Sopenharmony_ci
278e41f4b71Sopenharmony_ciCancels the listener for changes in the list of enabled accessibility extension abilities. This API uses an asynchronous callback to return the result.
279e41f4b71Sopenharmony_ci
280e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
281e41f4b71Sopenharmony_ci
282e41f4b71Sopenharmony_ci**Parameters**
283e41f4b71Sopenharmony_ci
284e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
285e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
286e41f4b71Sopenharmony_ci| type |  string | Yes | Listening type. The value is fixed at **'enabledAccessibilityExtensionListChange'**, indicating listening for changes in the list of enabled accessibility extension abilities. |
287e41f4b71Sopenharmony_ci| callback | Callback&lt;void&gt; | No | Callback for the event. The value must be the same as the value of **callback** in **on('enabledAccessibilityExtensionListChange')**. If this parameter is not specified, listening will be disabled for all callbacks corresponding to the specified type. |
288e41f4b71Sopenharmony_ci
289e41f4b71Sopenharmony_ci**Error codes**
290e41f4b71Sopenharmony_ci
291e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
292e41f4b71Sopenharmony_ci
293e41f4b71Sopenharmony_ci| Error Code | Error Message |
294e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
295e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
296e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
297e41f4b71Sopenharmony_ci
298e41f4b71Sopenharmony_ci**Example**
299e41f4b71Sopenharmony_ci
300e41f4b71Sopenharmony_ci```ts
301e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
302e41f4b71Sopenharmony_ci
303e41f4b71Sopenharmony_ciconfig.off('enabledAccessibilityExtensionListChange', () => {
304e41f4b71Sopenharmony_ci  console.info('Unsubscribe enabled accessibility extension list change state success');
305e41f4b71Sopenharmony_ci});
306e41f4b71Sopenharmony_ci```
307e41f4b71Sopenharmony_ci
308e41f4b71Sopenharmony_ci## on('installedAccessibilityListChange')<sup>12+</sup>
309e41f4b71Sopenharmony_ci
310e41f4b71Sopenharmony_cion(type: 'installedAccessibilityListChange', callback: Callback&lt;void&gt;): void;
311e41f4b71Sopenharmony_ci
312e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.READ_ACCESSIBILITY_CONFIG
313e41f4b71Sopenharmony_ci
314e41f4b71Sopenharmony_ciAdds a listener for changes in the list of installed accessibility extension abilities. This API uses an asynchronous callback to return the result.
315e41f4b71Sopenharmony_ci
316e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
317e41f4b71Sopenharmony_ci
318e41f4b71Sopenharmony_ci**Parameters**
319e41f4b71Sopenharmony_ci
320e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
321e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
322e41f4b71Sopenharmony_ci| type | string | Yes | Listening type. The value is fixed at 'enabledAccessibilityExtensionListChange', indicating listening for changes in the list of enabled accessibility extension abilities. |
323e41f4b71Sopenharmony_ci| callback | Callback&lt;void&gt; | Yes | Callback invoked when the list of installed accessibility extension abilities changes. |
324e41f4b71Sopenharmony_ci
325e41f4b71Sopenharmony_ci**Error codes**
326e41f4b71Sopenharmony_ci
327e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
328e41f4b71Sopenharmony_ci
329e41f4b71Sopenharmony_ci| Error Code | Error Message |
330e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
331e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
332e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
333e41f4b71Sopenharmony_ci
334e41f4b71Sopenharmony_ci**Example**
335e41f4b71Sopenharmony_ci
336e41f4b71Sopenharmony_ci```ts
337e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
338e41f4b71Sopenharmony_ci
339e41f4b71Sopenharmony_ciconfig.on('installedAccessibilityListChange', () => {
340e41f4b71Sopenharmony_ci  console.info('subscribe installed accessibility extension list change state success');
341e41f4b71Sopenharmony_ci});
342e41f4b71Sopenharmony_ci```
343e41f4b71Sopenharmony_ci
344e41f4b71Sopenharmony_ci## off('installedAccessibilityListChange')<sup>12+</sup>
345e41f4b71Sopenharmony_ci
346e41f4b71Sopenharmony_cioff(type: 'installedAccessibilityListChange', callback?: Callback&lt;void&gt;): void;
347e41f4b71Sopenharmony_ci
348e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.READ_ACCESSIBILITY_CONFIG
349e41f4b71Sopenharmony_ci
350e41f4b71Sopenharmony_ciCancels a listener for changes in the list of installed accessibility extension abilities. This API uses an asynchronous callback to return the result.
351e41f4b71Sopenharmony_ci
352e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
353e41f4b71Sopenharmony_ci
354e41f4b71Sopenharmony_ci**Parameters**
355e41f4b71Sopenharmony_ci
356e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
357e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
358e41f4b71Sopenharmony_ci| type |  string | Yes | Listening type. The value is fixed at 'enabledAccessibilityExtensionListChange', indicating listening for changes in the list of enabled accessibility extension abilities. |
359e41f4b71Sopenharmony_ci| callback | Callback&lt;void&gt; | No | Callback for the event. The value must be the same as the value of **callback** in **on('installedAccessibilityListChange')**. If this parameter is not specified, listening will be disabled for all callbacks corresponding to the specified type. |
360e41f4b71Sopenharmony_ci
361e41f4b71Sopenharmony_ci**Error codes**
362e41f4b71Sopenharmony_ci
363e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
364e41f4b71Sopenharmony_ci
365e41f4b71Sopenharmony_ci| Error Code | Error Message |
366e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
367e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
368e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
369e41f4b71Sopenharmony_ci
370e41f4b71Sopenharmony_ci**Example**
371e41f4b71Sopenharmony_ci
372e41f4b71Sopenharmony_ci```ts
373e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
374e41f4b71Sopenharmony_ci
375e41f4b71Sopenharmony_ciconfig.off('installedAccessibilityListChange', () => {
376e41f4b71Sopenharmony_ci  console.info('Unsubscribe installed accessibility extension list change state success');
377e41f4b71Sopenharmony_ci});
378e41f4b71Sopenharmony_ci```
379e41f4b71Sopenharmony_ci
380e41f4b71Sopenharmony_ci## Config
381e41f4b71Sopenharmony_ci
382e41f4b71Sopenharmony_ciImplements configuration, acquisition, and listening for attributes.
383e41f4b71Sopenharmony_ci
384e41f4b71Sopenharmony_ci### set
385e41f4b71Sopenharmony_ci
386e41f4b71Sopenharmony_ciset(value: T): Promise&lt;void&gt;;
387e41f4b71Sopenharmony_ci
388e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.WRITE_ACCESSIBILITY_CONFIG
389e41f4b71Sopenharmony_ci
390e41f4b71Sopenharmony_ciSets the attribute value. This API uses a promise to return the result.
391e41f4b71Sopenharmony_ci
392e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
393e41f4b71Sopenharmony_ci
394e41f4b71Sopenharmony_ci**Parameters**
395e41f4b71Sopenharmony_ci
396e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
397e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
398e41f4b71Sopenharmony_ci| value | T | Yes | Attribute value to set. |
399e41f4b71Sopenharmony_ci
400e41f4b71Sopenharmony_ci**Return value**
401e41f4b71Sopenharmony_ci
402e41f4b71Sopenharmony_ci| Type | Description |
403e41f4b71Sopenharmony_ci| -------- | -------- |
404e41f4b71Sopenharmony_ci| Promise\<void> | Promise that returns no value. |
405e41f4b71Sopenharmony_ci
406e41f4b71Sopenharmony_ci**Error codes**
407e41f4b71Sopenharmony_ci
408e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
409e41f4b71Sopenharmony_ci
410e41f4b71Sopenharmony_ci| Error Code | Error Message |
411e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
412e41f4b71Sopenharmony_ci| 201 | Permission verification failed. The application does not have the permission required to call the API.  |
413e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
414e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
415e41f4b71Sopenharmony_ci
416e41f4b71Sopenharmony_ci**Example**
417e41f4b71Sopenharmony_ci
418e41f4b71Sopenharmony_ci```ts
419e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
420e41f4b71Sopenharmony_ciimport { BusinessError } from '@kit.BasicServicesKit';
421e41f4b71Sopenharmony_ci
422e41f4b71Sopenharmony_cilet value: boolean = true;
423e41f4b71Sopenharmony_ci
424e41f4b71Sopenharmony_ciconfig.highContrastText.set(value).then(() => {
425e41f4b71Sopenharmony_ci  console.info(`Succeeded in set highContrastText value is ${value}`);
426e41f4b71Sopenharmony_ci}).catch((err: BusinessError) => {
427e41f4b71Sopenharmony_ci  console.error(`failed to set highContrastText, Code is ${err.code}, message is ${err.message}`);
428e41f4b71Sopenharmony_ci});
429e41f4b71Sopenharmony_ci```
430e41f4b71Sopenharmony_ci
431e41f4b71Sopenharmony_ci### set
432e41f4b71Sopenharmony_ci
433e41f4b71Sopenharmony_ciset(value: T, callback: AsyncCallback&lt;void&gt;): void;
434e41f4b71Sopenharmony_ci
435e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.WRITE_ACCESSIBILITY_CONFIG
436e41f4b71Sopenharmony_ci
437e41f4b71Sopenharmony_ciSets the attribute value. This API uses an asynchronous callback to return the result.
438e41f4b71Sopenharmony_ci
439e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
440e41f4b71Sopenharmony_ci
441e41f4b71Sopenharmony_ci**Parameters**
442e41f4b71Sopenharmony_ci
443e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
444e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
445e41f4b71Sopenharmony_ci| value | T | Yes | Attribute value to set. |
446e41f4b71Sopenharmony_ci| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the result. |
447e41f4b71Sopenharmony_ci
448e41f4b71Sopenharmony_ci**Error codes**
449e41f4b71Sopenharmony_ci
450e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
451e41f4b71Sopenharmony_ci
452e41f4b71Sopenharmony_ci| Error Code | Error Message |
453e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
454e41f4b71Sopenharmony_ci| 201 | Permission verification failed. The application does not have the permission required to call the API.  |
455e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
456e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
457e41f4b71Sopenharmony_ci
458e41f4b71Sopenharmony_ci**Example**
459e41f4b71Sopenharmony_ci
460e41f4b71Sopenharmony_ci```ts
461e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
462e41f4b71Sopenharmony_ciimport { BusinessError } from '@kit.BasicServicesKit';
463e41f4b71Sopenharmony_ci
464e41f4b71Sopenharmony_cilet value: boolean = true;
465e41f4b71Sopenharmony_ci
466e41f4b71Sopenharmony_ciconfig.highContrastText.set(value, (err: BusinessError) => {
467e41f4b71Sopenharmony_ci  if (err) {
468e41f4b71Sopenharmony_ci    console.error(`failed to set highContrastText, Code is ${err.code}, message is ${err.message}`);
469e41f4b71Sopenharmony_ci    return;
470e41f4b71Sopenharmony_ci  }
471e41f4b71Sopenharmony_ci  console.info(`Succeeded in set highContrastText, value is ${value}`);
472e41f4b71Sopenharmony_ci});
473e41f4b71Sopenharmony_ci```
474e41f4b71Sopenharmony_ci
475e41f4b71Sopenharmony_ci### get
476e41f4b71Sopenharmony_ci
477e41f4b71Sopenharmony_ciget(): Promise&lt;T&gt;;
478e41f4b71Sopenharmony_ci
479e41f4b71Sopenharmony_ciObtains the attribute value. This API uses a promise to return the result.
480e41f4b71Sopenharmony_ci
481e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
482e41f4b71Sopenharmony_ci
483e41f4b71Sopenharmony_ci**Return value**
484e41f4b71Sopenharmony_ci
485e41f4b71Sopenharmony_ci| Type | Description |
486e41f4b71Sopenharmony_ci| -------- | -------- |
487e41f4b71Sopenharmony_ci| Promise&lt;T&gt; | Promise used to return the value obtained. |
488e41f4b71Sopenharmony_ci
489e41f4b71Sopenharmony_ci**Error codes**
490e41f4b71Sopenharmony_ci
491e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
492e41f4b71Sopenharmony_ci
493e41f4b71Sopenharmony_ci| Error Code | Error Message |
494e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
495e41f4b71Sopenharmony_ci| 201 | Permission verification failed. The application does not have the permission required to call the API.  |
496e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
497e41f4b71Sopenharmony_ci
498e41f4b71Sopenharmony_ci**Example**
499e41f4b71Sopenharmony_ci
500e41f4b71Sopenharmony_ci```ts
501e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
502e41f4b71Sopenharmony_ciimport { BusinessError } from '@kit.BasicServicesKit';
503e41f4b71Sopenharmony_ci
504e41f4b71Sopenharmony_ciconfig.highContrastText.get().then((data: boolean) => {
505e41f4b71Sopenharmony_ci  console.info(`Succeeded in get highContrastText, data is ${data}`);
506e41f4b71Sopenharmony_ci}).catch((err: BusinessError) => {
507e41f4b71Sopenharmony_ci  console.error(`failed to get highContrastText, Code is ${err.code}, message is ${err.message}`);
508e41f4b71Sopenharmony_ci});
509e41f4b71Sopenharmony_ci```
510e41f4b71Sopenharmony_ci
511e41f4b71Sopenharmony_ci### get
512e41f4b71Sopenharmony_ci
513e41f4b71Sopenharmony_ciget(callback: AsyncCallback&lt;T&gt;): void;
514e41f4b71Sopenharmony_ci
515e41f4b71Sopenharmony_ciObtains the attribute value. This API uses an asynchronous callback to return the result.
516e41f4b71Sopenharmony_ci
517e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
518e41f4b71Sopenharmony_ci
519e41f4b71Sopenharmony_ci**Parameters**
520e41f4b71Sopenharmony_ci
521e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
522e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
523e41f4b71Sopenharmony_ci| callback | AsyncCallback&lt;T&gt; | Yes | Callback used to return the attribute value. |
524e41f4b71Sopenharmony_ci
525e41f4b71Sopenharmony_ci**Error codes**
526e41f4b71Sopenharmony_ci
527e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
528e41f4b71Sopenharmony_ci
529e41f4b71Sopenharmony_ci| Error Code | Error Message |
530e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
531e41f4b71Sopenharmony_ci| 201 | Permission verification failed. The application does not have the permission required to call the API.  |
532e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
533e41f4b71Sopenharmony_ci
534e41f4b71Sopenharmony_ci**Example**
535e41f4b71Sopenharmony_ci
536e41f4b71Sopenharmony_ci```ts
537e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
538e41f4b71Sopenharmony_ciimport { BusinessError } from '@kit.BasicServicesKit';
539e41f4b71Sopenharmony_ci
540e41f4b71Sopenharmony_ciconfig.highContrastText.get((err: BusinessError, data: boolean) => {
541e41f4b71Sopenharmony_ci  if (err) {
542e41f4b71Sopenharmony_ci    console.error(`failed to get highContrastText, Code is ${err.code}, message is ${err.message}`);
543e41f4b71Sopenharmony_ci    return;
544e41f4b71Sopenharmony_ci  }
545e41f4b71Sopenharmony_ci  console.info(`Succeeded in get highContrastText, data is ${data}`);
546e41f4b71Sopenharmony_ci});
547e41f4b71Sopenharmony_ci```
548e41f4b71Sopenharmony_ci
549e41f4b71Sopenharmony_ci### on
550e41f4b71Sopenharmony_ci
551e41f4b71Sopenharmony_cion(callback: Callback&lt;T&gt;): void;
552e41f4b71Sopenharmony_ci
553e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.READ_ACCESSIBILITY_CONFIG
554e41f4b71Sopenharmony_ci
555e41f4b71Sopenharmony_ciAdds a listener for attribute changes. This API uses an asynchronous callback to return the result.
556e41f4b71Sopenharmony_ci
557e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
558e41f4b71Sopenharmony_ci
559e41f4b71Sopenharmony_ci**Parameters**
560e41f4b71Sopenharmony_ci
561e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
562e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
563e41f4b71Sopenharmony_ci| callback | Callback&lt;T&gt; | Yes | Callback invoked when the attribute changes. |
564e41f4b71Sopenharmony_ci
565e41f4b71Sopenharmony_ci**Error codes**
566e41f4b71Sopenharmony_ci
567e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
568e41f4b71Sopenharmony_ci
569e41f4b71Sopenharmony_ci| Error Code | Error Message |
570e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
571e41f4b71Sopenharmony_ci| 201 | Permission verification failed. The application does not have the permission required to call the API.  |
572e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
573e41f4b71Sopenharmony_ci| 401  | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. |
574e41f4b71Sopenharmony_ci
575e41f4b71Sopenharmony_ci**Example**
576e41f4b71Sopenharmony_ci
577e41f4b71Sopenharmony_ci```ts
578e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
579e41f4b71Sopenharmony_ci
580e41f4b71Sopenharmony_ciconfig.highContrastText.on((data: boolean) => {
581e41f4b71Sopenharmony_ci  console.info(`subscribe highContrastText success, result: ${JSON.stringify(data)}`);
582e41f4b71Sopenharmony_ci});
583e41f4b71Sopenharmony_ci```
584e41f4b71Sopenharmony_ci
585e41f4b71Sopenharmony_ci### off
586e41f4b71Sopenharmony_ci
587e41f4b71Sopenharmony_cioff(callback?: Callback&lt;T&gt;): void;
588e41f4b71Sopenharmony_ci
589e41f4b71Sopenharmony_ci**Required permissions**: ohos.permission.READ_ACCESSIBILITY_CONFIG
590e41f4b71Sopenharmony_ci
591e41f4b71Sopenharmony_ciCancels the listener for attribute changes. This API uses an asynchronous callback to return the result.
592e41f4b71Sopenharmony_ci
593e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
594e41f4b71Sopenharmony_ci
595e41f4b71Sopenharmony_ci**Parameters**
596e41f4b71Sopenharmony_ci
597e41f4b71Sopenharmony_ci| Name | Type | Mandatory | Description |
598e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
599e41f4b71Sopenharmony_ci| callback | Callback&lt;T&gt; | No | Callback for the event. The value must be the same as the value of **callback** in **on()**. If this parameter is not specified, listening will be disabled for all callbacks corresponding to the specified type. |
600e41f4b71Sopenharmony_ci
601e41f4b71Sopenharmony_ci**Error codes**
602e41f4b71Sopenharmony_ci
603e41f4b71Sopenharmony_ciFor details about the error codes, see [Accessibility Error Codes](errorcode-accessibility.md).
604e41f4b71Sopenharmony_ci
605e41f4b71Sopenharmony_ci| Error Code | Error Message |
606e41f4b71Sopenharmony_ci| ------- | -------------------------------- |
607e41f4b71Sopenharmony_ci| 202 | Permission verification failed. A non-system application calls a system API. |
608e41f4b71Sopenharmony_ci
609e41f4b71Sopenharmony_ci**Example**
610e41f4b71Sopenharmony_ci
611e41f4b71Sopenharmony_ci```ts
612e41f4b71Sopenharmony_ciimport { config } from '@kit.AccessibilityKit';
613e41f4b71Sopenharmony_ci
614e41f4b71Sopenharmony_ciconfig.highContrastText.off((data: boolean) => {
615e41f4b71Sopenharmony_ci  console.info(`Unsubscribe highContrastText success, result: ${JSON.stringify(data)}`);
616e41f4b71Sopenharmony_ci});
617e41f4b71Sopenharmony_ci```
618e41f4b71Sopenharmony_ci
619e41f4b71Sopenharmony_ci## DaltonizationColorFilter
620e41f4b71Sopenharmony_ci
621e41f4b71Sopenharmony_ciEnumerates the daltonization filters. 
622e41f4b71Sopenharmony_ciWhen daltonization is enabled (with [daltonizationState](#attributes) set to **true**), the filter set for users with disabilities is used; otherwise, the filter for normal uses is used.<sup>11+</sup>
623e41f4b71Sopenharmony_ci
624e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
625e41f4b71Sopenharmony_ci
626e41f4b71Sopenharmony_ci| Name | Description |
627e41f4b71Sopenharmony_ci| -------- | -------- |
628e41f4b71Sopenharmony_ci| Normal | Filter for normal users. |
629e41f4b71Sopenharmony_ci| Protanomaly | Filter for protanomaly. |
630e41f4b71Sopenharmony_ci| Deuteranomaly | Filter for deuteranomaly. |
631e41f4b71Sopenharmony_ci| Tritanomaly  | Filter for tritanomaly. |
632e41f4b71Sopenharmony_ci
633e41f4b71Sopenharmony_ci## ClickResponseTime<sup>11+</sup>
634e41f4b71Sopenharmony_ci
635e41f4b71Sopenharmony_ciDefines the length of time for a click. 
636e41f4b71Sopenharmony_ci
637e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
638e41f4b71Sopenharmony_ci
639e41f4b71Sopenharmony_ci| Name         | Description        |
640e41f4b71Sopenharmony_ci|-------------|------------|
641e41f4b71Sopenharmony_ci| Short       | Short (default). |
642e41f4b71Sopenharmony_ci| Medium      | Medium.      |
643e41f4b71Sopenharmony_ci| Long        | Long.      |
644e41f4b71Sopenharmony_ci
645e41f4b71Sopenharmony_ci## RepeatClickInterval<sup>11+</sup>
646e41f4b71Sopenharmony_ci
647e41f4b71Sopenharmony_ciDefines the interval between repeated clicks. 
648e41f4b71Sopenharmony_ci**RepeatClickInterval** takes effect only when repeated clicks are ignored ([ignoreRepeatClick](#attributes) set to **true**).
649e41f4b71Sopenharmony_ci
650e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core
651e41f4b71Sopenharmony_ci
652e41f4b71Sopenharmony_ci| Name      | Description   |
653e41f4b71Sopenharmony_ci|----------|-------|
654e41f4b71Sopenharmony_ci| Shortest | Shortest. |
655e41f4b71Sopenharmony_ci| Short    | Short. |
656e41f4b71Sopenharmony_ci| Medium   | Medium. |
657e41f4b71Sopenharmony_ci| Long     | Long. |
658e41f4b71Sopenharmony_ci| Longest  | Longest. |
659