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