1/* 2 * Copyright (C) 2023-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @file 18 * @kit ConnectivityKit 19 */ 20 21/** 22 * The definition of constant. 23 * 24 * @namespace constant 25 * @syscap SystemCapability.Communication.Bluetooth.Core 26 * @since 10 27 */ 28/** 29 * The definition of constant. 30 * 31 * @namespace constant 32 * @syscap SystemCapability.Communication.Bluetooth.Core 33 * @atomicservice 34 * @since 12 35 */ 36/** 37 * The definition of constant. 38 * 39 * @namespace constant 40 * @syscap SystemCapability.Communication.Bluetooth.Core 41 * @crossplatform 42 * @atomicservice 43 * @since arkts {'1.1':'13','1.2':'20'} 44 * @arkts 1.1&1.2 45 */ 46declare namespace constant { 47 /** 48 * The enum of profile id. 49 * 50 * @enum { number } 51 * @syscap SystemCapability.Communication.Bluetooth.Core 52 * @since 10 53 */ 54 /** 55 * The enum of profile id. 56 * 57 * @enum { number } 58 * @syscap SystemCapability.Communication.Bluetooth.Core 59 * @crossplatform 60 * @since 13 61 */ 62 export enum ProfileId { 63 /** 64 * A2DP profile. 65 * 66 * @syscap SystemCapability.Communication.Bluetooth.Core 67 * @since 10 68 */ 69 /** 70 * A2DP profile. 71 * 72 * @syscap SystemCapability.Communication.Bluetooth.Core 73 * @crossplatform 74 * @since 13 75 */ 76 PROFILE_A2DP_SOURCE = 1, 77 78 /** 79 * HFP profile. 80 * 81 * @syscap SystemCapability.Communication.Bluetooth.Core 82 * @since 10 83 */ 84 /** 85 * HFP profile. 86 * 87 * @syscap SystemCapability.Communication.Bluetooth.Core 88 * @crossplatform 89 * @since 13 90 */ 91 PROFILE_HANDSFREE_AUDIO_GATEWAY = 4, 92 93 /** 94 * Human Interface Device (HID) profile. 95 * 96 * @syscap SystemCapability.Communication.Bluetooth.Core 97 * @since 10 98 */ 99 PROFILE_HID_HOST = 6, 100 101 /** 102 * PAN profile. 103 * 104 * @syscap SystemCapability.Communication.Bluetooth.Core 105 * @since 10 106 */ 107 PROFILE_PAN_NETWORK = 7 108 } 109 110 /** 111 * Enum for the profile's uuid 112 * 113 * @enum { string } 114 * @syscap SystemCapability.Communication.Bluetooth.Core 115 * @systemapi 116 * @since 10 117 */ 118 /** 119 * Enum for the profile's uuid 120 * 121 * @enum { string } 122 * @syscap SystemCapability.Communication.Bluetooth.Core 123 * @since 12 124 */ 125 /** 126 * Enum for the profile's uuid 127 * 128 * @enum { string } 129 * @syscap SystemCapability.Communication.Bluetooth.Core 130 * @crossplatform 131 * @since 13 132 */ 133 export enum ProfileUuids { 134 /** 135 * Hands-Free Profile: Audio Gateway 136 * 137 * @syscap SystemCapability.Communication.Bluetooth.Core 138 * @systemapi 139 * @since 10 140 */ 141 /** 142 * Hands-Free Profile: Audio Gateway 143 * 144 * @syscap SystemCapability.Communication.Bluetooth.Core 145 * @since 12 146 */ 147 /** 148 * Hands-Free Profile: Audio Gateway 149 * 150 * @syscap SystemCapability.Communication.Bluetooth.Core 151 * @crossplatform 152 * @since 13 153 */ 154 PROFILE_UUID_HFP_AG = '0000111F-0000-1000-8000-00805F9B34FB', 155 /** 156 * Hands-Free Profile: Hands Free 157 * 158 * @syscap SystemCapability.Communication.Bluetooth.Core 159 * @systemapi 160 * @since 10 161 */ 162 /** 163 * Hands-Free Profile: Hands Free 164 * 165 * @syscap SystemCapability.Communication.Bluetooth.Core 166 * @since 12 167 */ 168 /** 169 * Hands-Free Profile: Hands Free 170 * 171 * @syscap SystemCapability.Communication.Bluetooth.Core 172 * @crossplatform 173 * @since 13 174 */ 175 PROFILE_UUID_HFP_HF = '0000111E-0000-1000-8000-00805F9B34FB', 176 /** 177 * Headset Profile: Audio Gateway 178 * 179 * @syscap SystemCapability.Communication.Bluetooth.Core 180 * @systemapi 181 * @since 10 182 */ 183 /** 184 * Headset Profile: Audio Gateway 185 * 186 * @syscap SystemCapability.Communication.Bluetooth.Core 187 * @since 12 188 */ 189 /** 190 * Headset Profile: Audio Gateway 191 * 192 * @syscap SystemCapability.Communication.Bluetooth.Core 193 * @crossplatform 194 * @since 13 195 */ 196 PROFILE_UUID_HSP_AG = '00001112-0000-1000-8000-00805F9B34FB', 197 /** 198 * Headset Profile: Headset 199 * 200 * @syscap SystemCapability.Communication.Bluetooth.Core 201 * @systemapi 202 * @since 10 203 */ 204 /** 205 * Headset Profile: Headset 206 * 207 * @syscap SystemCapability.Communication.Bluetooth.Core 208 * @since 12 209 */ 210 /** 211 * Headset Profile: Headset 212 * 213 * @syscap SystemCapability.Communication.Bluetooth.Core 214 * @crossplatform 215 * @since 13 216 */ 217 PROFILE_UUID_HSP_HS = '00001108-0000-1000-8000-00805F9B34FB', 218 /** 219 * Advanced Audio Distribution Profile: Source 220 * 221 * @syscap SystemCapability.Communication.Bluetooth.Core 222 * @systemapi 223 * @since 10 224 */ 225 /** 226 * Advanced Audio Distribution Profile: Source 227 * 228 * @syscap SystemCapability.Communication.Bluetooth.Core 229 * @since 12 230 */ 231 /** 232 * Advanced Audio Distribution Profile: Source 233 * 234 * @syscap SystemCapability.Communication.Bluetooth.Core 235 * @crossplatform 236 * @since 13 237 */ 238 PROFILE_UUID_A2DP_SRC = '0000110A-0000-1000-8000-00805F9B34FB', 239 /** 240 * Advanced Audio Distribution Profile: Sink 241 * 242 * @syscap SystemCapability.Communication.Bluetooth.Core 243 * @systemapi 244 * @since 10 245 */ 246 /** 247 * Advanced Audio Distribution Profile: Sink 248 * 249 * @syscap SystemCapability.Communication.Bluetooth.Core 250 * @since 12 251 */ 252 /** 253 * Advanced Audio Distribution Profile: Sink 254 * 255 * @syscap SystemCapability.Communication.Bluetooth.Core 256 * @crossplatform 257 * @since 13 258 */ 259 PROFILE_UUID_A2DP_SINK = '0000110B-0000-1000-8000-00805F9B34FB', 260 /** 261 * Audio/Video Remote Control Profile: Controller 262 * 263 * @syscap SystemCapability.Communication.Bluetooth.Core 264 * @systemapi 265 * @since 10 266 */ 267 /** 268 * Audio/Video Remote Control Profile: Controller 269 * 270 * @syscap SystemCapability.Communication.Bluetooth.Core 271 * @since 12 272 */ 273 /** 274 * Audio/Video Remote Control Profile: Controller 275 * 276 * @syscap SystemCapability.Communication.Bluetooth.Core 277 * @crossplatform 278 * @since 13 279 */ 280 PROFILE_UUID_AVRCP_CT = '0000110E-0000-1000-8000-00805F9B34FB', 281 /** 282 * Audio/Video Remote Control Profile: Target 283 * 284 * @syscap SystemCapability.Communication.Bluetooth.Core 285 * @systemapi 286 * @since 10 287 */ 288 /** 289 * Audio/Video Remote Control Profile: Target 290 * 291 * @syscap SystemCapability.Communication.Bluetooth.Core 292 * @since 12 293 */ 294 /** 295 * Audio/Video Remote Control Profile: Target 296 * 297 * @syscap SystemCapability.Communication.Bluetooth.Core 298 * @crossplatform 299 * @since 13 300 */ 301 PROFILE_UUID_AVRCP_TG = '0000110C-0000-1000-8000-00805F9B34FB', 302 /** 303 * Human Interface Device Profile 304 * 305 * @syscap SystemCapability.Communication.Bluetooth.Core 306 * @systemapi 307 * @since 10 308 */ 309 /** 310 * Human Interface Device Profile 311 * 312 * @syscap SystemCapability.Communication.Bluetooth.Core 313 * @since 12 314 */ 315 /** 316 * Human Interface Device Profile 317 * 318 * @syscap SystemCapability.Communication.Bluetooth.Core 319 * @crossplatform 320 * @since 13 321 */ 322 PROFILE_UUID_HID = '00001124-0000-1000-8000-00805F9B34FB', 323 /** 324 * HID over GATT Profile 325 * 326 * @syscap SystemCapability.Communication.Bluetooth.Core 327 * @systemapi 328 * @since 10 329 */ 330 /** 331 * HID over GATT Profile 332 * 333 * @syscap SystemCapability.Communication.Bluetooth.Core 334 * @since 12 335 */ 336 /** 337 * HID over GATT Profile 338 * 339 * @syscap SystemCapability.Communication.Bluetooth.Core 340 * @crossplatform 341 * @since 13 342 */ 343 PROFILE_UUID_HOGP = '00001812-0000-1000-8000-00805F9B34FB' 344 } 345 346 /** 347 * The enum of profile connection state. 348 * 349 * @enum { number } 350 * @syscap SystemCapability.Communication.Bluetooth.Core 351 * @since 10 352 */ 353 /** 354 * The enum of profile connection state. 355 * 356 * @enum { number } 357 * @syscap SystemCapability.Communication.Bluetooth.Core 358 * @atomicservice 359 * @since 12 360 */ 361 /** 362 * The enum of profile connection state. 363 * 364 * @enum { number } 365 * @syscap SystemCapability.Communication.Bluetooth.Core 366 * @crossplatform 367 * @atomicservice 368 * @since arkts {'1.1':'13','1.2':'20'} 369 * @arkts 1.1&1.2 370 */ 371 export enum ProfileConnectionState { 372 /** 373 * the current profile is disconnected 374 * 375 * @syscap SystemCapability.Communication.Bluetooth.Core 376 * @since 10 377 */ 378 /** 379 * the current profile is disconnected 380 * 381 * @syscap SystemCapability.Communication.Bluetooth.Core 382 * @atomicservice 383 * @since 12 384 */ 385 /** 386 * the current profile is disconnected 387 * 388 * @syscap SystemCapability.Communication.Bluetooth.Core 389 * @crossplatform 390 * @atomicservice 391 * @since arkts {'1.1':'13','1.2':'20'} 392 * @arkts 1.1&1.2 393 */ 394 STATE_DISCONNECTED = 0, 395 /** 396 * the current profile is being connected 397 * 398 * @syscap SystemCapability.Communication.Bluetooth.Core 399 * @since 10 400 */ 401 /** 402 * the current profile is being connected 403 * 404 * @syscap SystemCapability.Communication.Bluetooth.Core 405 * @atomicservice 406 * @since 12 407 */ 408 /** 409 * the current profile is being connected 410 * 411 * @syscap SystemCapability.Communication.Bluetooth.Core 412 * @crossplatform 413 * @atomicservice 414 * @since 13 415 */ 416 STATE_CONNECTING = 1, 417 /** 418 * the current profile is connected 419 * 420 * @syscap SystemCapability.Communication.Bluetooth.Core 421 * @since 10 422 */ 423 /** 424 * the current profile is connected 425 * 426 * @syscap SystemCapability.Communication.Bluetooth.Core 427 * @atomicservice 428 * @since 12 429 */ 430 /** 431 * the current profile is connected 432 * 433 * @syscap SystemCapability.Communication.Bluetooth.Core 434 * @crossplatform 435 * @atomicservice 436 * @since arkts {'1.1':'13','1.2':'20'} 437 * @arkts 1.1&1.2 438 */ 439 STATE_CONNECTED = 2, 440 /** 441 * the current profile is being disconnected 442 * 443 * @syscap SystemCapability.Communication.Bluetooth.Core 444 * @since 10 445 */ 446 /** 447 * the current profile is being disconnected 448 * 449 * @syscap SystemCapability.Communication.Bluetooth.Core 450 * @atomicservice 451 * @since 12 452 */ 453 /** 454 * the current profile is being disconnected 455 * 456 * @syscap SystemCapability.Communication.Bluetooth.Core 457 * @crossplatform 458 * @atomicservice 459 * @since 13 460 */ 461 STATE_DISCONNECTING = 3 462 } 463 464 /** 465 * The enum of major class of a bluetooth device. 466 * 467 * @enum { number } 468 * @syscap SystemCapability.Communication.Bluetooth.Core 469 * @since 10 470 */ 471 /** 472 * The enum of major class of a bluetooth device. 473 * 474 * @enum { number } 475 * @syscap SystemCapability.Communication.Bluetooth.Core 476 * @crossplatform 477 * @since arkts {'1.1':'13','1.2':'20'} 478 * @arkts 1.1&1.2 479 */ 480 export enum MajorClass { 481 /** 482 * Miscellaneous device. 483 * 484 * @syscap SystemCapability.Communication.Bluetooth.Core 485 * @since 10 486 */ 487 MAJOR_MISC = 0x0000, 488 /** 489 * Computer. 490 * 491 * @syscap SystemCapability.Communication.Bluetooth.Core 492 * @since 10 493 */ 494 MAJOR_COMPUTER = 0x0100, 495 /** 496 * Mobile phone. 497 * 498 * @syscap SystemCapability.Communication.Bluetooth.Core 499 * @since arkts {'1.1':'10','1.2':'20'} 500 * @arkts 1.1&1.2 501 */ 502 MAJOR_PHONE = 0x0200, 503 /** 504 * Network device. 505 * 506 * @syscap SystemCapability.Communication.Bluetooth.Core 507 * @since 10 508 */ 509 MAJOR_NETWORKING = 0x0300, 510 /** 511 * Audio or video device. 512 * 513 * @syscap SystemCapability.Communication.Bluetooth.Core 514 * @since 10 515 */ 516 /** 517 * Audio or video device. 518 * 519 * @syscap SystemCapability.Communication.Bluetooth.Core 520 * @crossplatform 521 * @since arkts {'1.1':'13','1.2':'20'} 522 * @arkts 1.1&1.2 523 */ 524 MAJOR_AUDIO_VIDEO = 0x0400, 525 /** 526 * Peripheral device. 527 * 528 * @syscap SystemCapability.Communication.Bluetooth.Core 529 * @since 10 530 */ 531 MAJOR_PERIPHERAL = 0x0500, 532 /** 533 * Imaging device. 534 * 535 * @syscap SystemCapability.Communication.Bluetooth.Core 536 * @since 10 537 */ 538 MAJOR_IMAGING = 0x0600, 539 /** 540 * Wearable device. 541 * 542 * @syscap SystemCapability.Communication.Bluetooth.Core 543 * @since 10 544 */ 545 MAJOR_WEARABLE = 0x0700, 546 /** 547 * Toy. 548 * 549 * @syscap SystemCapability.Communication.Bluetooth.Core 550 * @since 10 551 */ 552 MAJOR_TOY = 0x0800, 553 /** 554 * Health device. 555 * 556 * @syscap SystemCapability.Communication.Bluetooth.Core 557 * @since 10 558 */ 559 /** 560 * Health device. 561 * 562 * @syscap SystemCapability.Communication.Bluetooth.Core 563 * @crossplatform 564 * @since 13 565 */ 566 MAJOR_HEALTH = 0x0900, 567 /** 568 * Unclassified device. 569 * 570 * @syscap SystemCapability.Communication.Bluetooth.Core 571 * @since arkts {'1.1':'10','1.2':'20'} 572 * @arkts 1.1&1.2 573 */ 574 MAJOR_UNCATEGORIZED = 0x1F00 575 } 576 577 /** 578 * The enum of major minor class of a bluetooth device. 579 * 580 * @enum { number } 581 * @syscap SystemCapability.Communication.Bluetooth.Core 582 * @since 10 583 */ 584 /** 585 * The enum of major minor class of a bluetooth device. 586 * 587 * @enum { number } 588 * @syscap SystemCapability.Communication.Bluetooth.Core 589 * @crossplatform 590 * @since arkts {'1.1':'13','1.2':'20'} 591 * @arkts 1.1&1.2 592 */ 593 export enum MajorMinorClass { 594 /** 595 * The Minor Device Class field 596 * Computer Major Class 597 * 598 * @syscap SystemCapability.Communication.Bluetooth.Core 599 * @since 10 600 */ 601 /** 602 * The Minor Device Class field 603 * Computer Major Class 604 * 605 * @syscap SystemCapability.Communication.Bluetooth.Core 606 * @crossplatform 607 * @since 13 608 */ 609 COMPUTER_UNCATEGORIZED = 0x0100, 610 /** 611 * Desktop computer. 612 * 613 * @syscap SystemCapability.Communication.Bluetooth.Core 614 * @since 10 615 */ 616 /** 617 * Desktop computer. 618 * 619 * @syscap SystemCapability.Communication.Bluetooth.Core 620 * @crossplatform 621 * @since 13 622 */ 623 COMPUTER_DESKTOP = 0x0104, 624 /** 625 * Server. 626 * 627 * @syscap SystemCapability.Communication.Bluetooth.Core 628 * @since 10 629 */ 630 /** 631 * Server. 632 * 633 * @syscap SystemCapability.Communication.Bluetooth.Core 634 * @crossplatform 635 * @since 13 636 */ 637 COMPUTER_SERVER = 0x0108, 638 /** 639 * Laptop. 640 * 641 * @syscap SystemCapability.Communication.Bluetooth.Core 642 * @since 10 643 */ 644 /** 645 * Laptop. 646 * 647 * @syscap SystemCapability.Communication.Bluetooth.Core 648 * @crossplatform 649 * @since 13 650 */ 651 COMPUTER_LAPTOP = 0x010C, 652 /** 653 * Hand-held computer. 654 * 655 * @syscap SystemCapability.Communication.Bluetooth.Core 656 * @since 10 657 */ 658 /** 659 * Hand-held computer. 660 * 661 * @syscap SystemCapability.Communication.Bluetooth.Core 662 * @crossplatform 663 * @since 13 664 */ 665 COMPUTER_HANDHELD_PC_PDA = 0x0110, 666 /** 667 * Palmtop computer. 668 * 669 * @syscap SystemCapability.Communication.Bluetooth.Core 670 * @since 10 671 */ 672 /** 673 * Palmtop computer. 674 * 675 * @syscap SystemCapability.Communication.Bluetooth.Core 676 * @crossplatform 677 * @since 13 678 */ 679 COMPUTER_PALM_SIZE_PC_PDA = 0x0114, 680 /** 681 * Wearable computer. 682 * 683 * @syscap SystemCapability.Communication.Bluetooth.Core 684 * @since 10 685 */ 686 /** 687 * Wearable computer. 688 * 689 * @syscap SystemCapability.Communication.Bluetooth.Core 690 * @crossplatform 691 * @since 13 692 */ 693 COMPUTER_WEARABLE = 0x0118, 694 /** 695 * Tablet. 696 * 697 * @syscap SystemCapability.Communication.Bluetooth.Core 698 * @since 10 699 */ 700 COMPUTER_TABLET = 0x011C, 701 702 /** 703 * Phone Major Class 704 * 705 * @syscap SystemCapability.Communication.Bluetooth.Core 706 * @since 10 707 */ 708 /** 709 * Phone Major Class 710 * 711 * @syscap SystemCapability.Communication.Bluetooth.Core 712 * @crossplatform 713 * @since 13 714 */ 715 PHONE_UNCATEGORIZED = 0x0200, 716 /** 717 * Portable phone. 718 * 719 * @syscap SystemCapability.Communication.Bluetooth.Core 720 * @since 10 721 */ 722 /** 723 * Portable phone. 724 * 725 * @syscap SystemCapability.Communication.Bluetooth.Core 726 * @crossplatform 727 * @since 13 728 */ 729 PHONE_CELLULAR = 0x0204, 730 /** 731 * Cordless phone. 732 * 733 * @syscap SystemCapability.Communication.Bluetooth.Core 734 * @since 10 735 */ 736 /** 737 * Cordless phone. 738 * 739 * @syscap SystemCapability.Communication.Bluetooth.Core 740 * @crossplatform 741 * @since 13 742 */ 743 PHONE_CORDLESS = 0x0208, 744 /** 745 * Smartphone. 746 * 747 * @syscap SystemCapability.Communication.Bluetooth.Core 748 * @since 10 749 */ 750 /** 751 * Smartphone. 752 * 753 * @syscap SystemCapability.Communication.Bluetooth.Core 754 * @crossplatform 755 * @since 13 756 */ 757 PHONE_SMART = 0x020C, 758 /** 759 * Modem or gateway phone. 760 * 761 * @syscap SystemCapability.Communication.Bluetooth.Core 762 * @since 10 763 */ 764 /** 765 * Modem or gateway phone. 766 * 767 * @syscap SystemCapability.Communication.Bluetooth.Core 768 * @crossplatform 769 * @since 13 770 */ 771 PHONE_MODEM_OR_GATEWAY = 0x0210, 772 /** 773 * ISDN phone. 774 * 775 * @syscap SystemCapability.Communication.Bluetooth.Core 776 * @since 10 777 */ 778 /** 779 * ISDN phone. 780 * 781 * @syscap SystemCapability.Communication.Bluetooth.Core 782 * @crossplatform 783 * @since 13 784 */ 785 PHONE_ISDN = 0x0214, 786 787 /** 788 * LAN/Network Access Point Major Class 789 * 790 * @syscap SystemCapability.Communication.Bluetooth.Core 791 * @since 10 792 */ 793 NETWORK_FULLY_AVAILABLE = 0x0300, 794 /** 795 * Device used on network 1 to 17. 796 * 797 * @syscap SystemCapability.Communication.Bluetooth.Core 798 * @since 10 799 */ 800 NETWORK_1_TO_17_UTILIZED = 0x0320, 801 /** 802 * Device used on network 17 to 33. 803 * 804 * @syscap SystemCapability.Communication.Bluetooth.Core 805 * @since 10 806 */ 807 NETWORK_17_TO_33_UTILIZED = 0x0340, 808 /** 809 * Device used on network 33 to 50. 810 * 811 * @syscap SystemCapability.Communication.Bluetooth.Core 812 * @since 10 813 */ 814 NETWORK_33_TO_50_UTILIZED = 0x0360, 815 /** 816 * Device used on network 60 to 67. 817 * 818 * @syscap SystemCapability.Communication.Bluetooth.Core 819 * @since 10 820 */ 821 NETWORK_60_TO_67_UTILIZED = 0x0380, 822 /** 823 * Device used on network 67 to 83. 824 * 825 * @syscap SystemCapability.Communication.Bluetooth.Core 826 * @since 10 827 */ 828 NETWORK_67_TO_83_UTILIZED = 0x03A0, 829 /** 830 * Device used on network 83 to 99. 831 * 832 * @syscap SystemCapability.Communication.Bluetooth.Core 833 * @since 10 834 */ 835 NETWORK_83_TO_99_UTILIZED = 0x03C0, 836 /** 837 * Device without network service. 838 * 839 * @syscap SystemCapability.Communication.Bluetooth.Core 840 * @since 10 841 */ 842 NETWORK_NO_SERVICE = 0x03E0, 843 844 /** 845 * Unclassified audio or video device. 846 * 847 * @syscap SystemCapability.Communication.Bluetooth.Core 848 * @since 10 849 */ 850 AUDIO_VIDEO_UNCATEGORIZED = 0x0400, 851 /** 852 * Wearable audio or video headset. 853 * 854 * @syscap SystemCapability.Communication.Bluetooth.Core 855 * @since 10 856 */ 857 /** 858 * Wearable audio or video headset. 859 * 860 * @syscap SystemCapability.Communication.Bluetooth.Core 861 * @crossplatform 862 * @since arkts {'1.1':'13','1.2':'20'} 863 * @arkts 1.1&1.2 864 */ 865 AUDIO_VIDEO_WEARABLE_HEADSET = 0x0404, 866 /** 867 * Hands-free audio or video device. 868 * 869 * @syscap SystemCapability.Communication.Bluetooth.Core 870 * @since 10 871 */ 872 /** 873 * Hands-free audio or video device. 874 * 875 * @syscap SystemCapability.Communication.Bluetooth.Core 876 * @crossplatform 877 * @since 13 878 */ 879 AUDIO_VIDEO_HANDSFREE = 0x0408, 880 /** 881 * Audio or video microphone. 882 * 883 * @syscap SystemCapability.Communication.Bluetooth.Core 884 * @since 10 885 */ 886 /** 887 * Audio or video microphone. 888 * 889 * @syscap SystemCapability.Communication.Bluetooth.Core 890 * @crossplatform 891 * @since 13 892 */ 893 AUDIO_VIDEO_MICROPHONE = 0x0410, 894 /** 895 * Audio or video loudspeaker. 896 * 897 * @syscap SystemCapability.Communication.Bluetooth.Core 898 * @since 10 899 */ 900 /** 901 * Audio or video loudspeaker. 902 * 903 * @syscap SystemCapability.Communication.Bluetooth.Core 904 * @crossplatform 905 * @since arkts {'1.1':'13','1.2':'20'} 906 * @arkts 1.1&1.2 907 */ 908 AUDIO_VIDEO_LOUDSPEAKER = 0x0414, 909 /** 910 * Audio or video headphones. 911 * 912 * @syscap SystemCapability.Communication.Bluetooth.Core 913 * @since 10 914 */ 915 /** 916 * Audio or video headphones. 917 * 918 * @syscap SystemCapability.Communication.Bluetooth.Core 919 * @crossplatform 920 * @since arkts {'1.1':'13','1.2':'20'} 921 * @arkts 1.1&1.2 922 */ 923 AUDIO_VIDEO_HEADPHONES = 0x0418, 924 /** 925 * Portable audio or video device. 926 * 927 * @syscap SystemCapability.Communication.Bluetooth.Core 928 * @since 10 929 */ 930 /** 931 * Portable audio or video device. 932 * 933 * @syscap SystemCapability.Communication.Bluetooth.Core 934 * @crossplatform 935 * @since 13 936 */ 937 AUDIO_VIDEO_PORTABLE_AUDIO = 0x041C, 938 /** 939 * In-vehicle audio or video device. 940 * 941 * @syscap SystemCapability.Communication.Bluetooth.Core 942 * @since 10 943 */ 944 /** 945 * In-vehicle audio or video device. 946 * 947 * @syscap SystemCapability.Communication.Bluetooth.Core 948 * @crossplatform 949 * @since 13 950 */ 951 AUDIO_VIDEO_CAR_AUDIO = 0x0420, 952 /** 953 * Audio or video STB device. 954 * 955 * @syscap SystemCapability.Communication.Bluetooth.Core 956 * @since 10 957 */ 958 /** 959 * Audio or video STB device. 960 * 961 * @syscap SystemCapability.Communication.Bluetooth.Core 962 * @crossplatform 963 * @since 13 964 */ 965 AUDIO_VIDEO_SET_TOP_BOX = 0x0424, 966 /** 967 * High-fidelity speaker device. 968 * 969 * @syscap SystemCapability.Communication.Bluetooth.Core 970 * @since 10 971 */ 972 /** 973 * High-fidelity speaker device. 974 * 975 * @syscap SystemCapability.Communication.Bluetooth.Core 976 * @crossplatform 977 * @since 13 978 */ 979 AUDIO_VIDEO_HIFI_AUDIO = 0x0428, 980 /** 981 * Video cassette recording (VCR) device. 982 * 983 * @syscap SystemCapability.Communication.Bluetooth.Core 984 * @since 10 985 */ 986 /** 987 * Video cassette recording (VCR) device. 988 * 989 * @syscap SystemCapability.Communication.Bluetooth.Core 990 * @crossplatform 991 * @since 13 992 */ 993 AUDIO_VIDEO_VCR = 0x042C, 994 /** 995 * Camera. 996 * 997 * @syscap SystemCapability.Communication.Bluetooth.Core 998 * @since 10 999 */ 1000 /** 1001 * Camera. 1002 * 1003 * @syscap SystemCapability.Communication.Bluetooth.Core 1004 * @crossplatform 1005 * @since 13 1006 */ 1007 AUDIO_VIDEO_VIDEO_CAMERA = 0x0430, 1008 /** 1009 * Camcorder. 1010 * 1011 * @syscap SystemCapability.Communication.Bluetooth.Core 1012 * @since 10 1013 */ 1014 /** 1015 * Camcorder. 1016 * 1017 * @syscap SystemCapability.Communication.Bluetooth.Core 1018 * @crossplatform 1019 * @since 13 1020 */ 1021 AUDIO_VIDEO_CAMCORDER = 0x0434, 1022 /** 1023 * Audio or video monitor. 1024 * 1025 * @syscap SystemCapability.Communication.Bluetooth.Core 1026 * @since 10 1027 */ 1028 /** 1029 * Audio or video monitor. 1030 * 1031 * @syscap SystemCapability.Communication.Bluetooth.Core 1032 * @crossplatform 1033 * @since 13 1034 */ 1035 AUDIO_VIDEO_VIDEO_MONITOR = 0x0438, 1036 /** 1037 * Video display or loudspeaker. 1038 * 1039 * @syscap SystemCapability.Communication.Bluetooth.Core 1040 * @since 10 1041 */ 1042 /** 1043 * Video display or loudspeaker. 1044 * 1045 * @syscap SystemCapability.Communication.Bluetooth.Core 1046 * @crossplatform 1047 * @since 13 1048 */ 1049 AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER = 0x043C, 1050 /** 1051 * Video conferencing device. 1052 * 1053 * @syscap SystemCapability.Communication.Bluetooth.Core 1054 * @since 10 1055 */ 1056 /** 1057 * Video conferencing device. 1058 * 1059 * @syscap SystemCapability.Communication.Bluetooth.Core 1060 * @crossplatform 1061 * @since 13 1062 */ 1063 AUDIO_VIDEO_VIDEO_CONFERENCING = 0x0440, 1064 /** 1065 * Audio or video gaming toy. 1066 * 1067 * @syscap SystemCapability.Communication.Bluetooth.Core 1068 * @since 10 1069 */ 1070 /** 1071 * Audio or video gaming toy. 1072 * 1073 * @syscap SystemCapability.Communication.Bluetooth.Core 1074 * @crossplatform 1075 * @since 13 1076 */ 1077 AUDIO_VIDEO_VIDEO_GAMING_TOY = 0x0448, 1078 1079 /** 1080 * Peripheral Major Class 1081 * 1082 * @syscap SystemCapability.Communication.Bluetooth.Core 1083 * @since 10 1084 */ 1085 /** 1086 * Peripheral Major Class 1087 * 1088 * @syscap SystemCapability.Communication.Bluetooth.Core 1089 * @crossplatform 1090 * @since 13 1091 */ 1092 PERIPHERAL_NON_KEYBOARD_NON_POINTING = 0x0500, 1093 /** 1094 * Keyboard device. 1095 * 1096 * @syscap SystemCapability.Communication.Bluetooth.Core 1097 * @since 10 1098 */ 1099 /** 1100 * Keyboard device. 1101 * 1102 * @syscap SystemCapability.Communication.Bluetooth.Core 1103 * @crossplatform 1104 * @since 13 1105 */ 1106 PERIPHERAL_KEYBOARD = 0x0540, 1107 /** 1108 * Pointing peripheral device. 1109 * 1110 * @syscap SystemCapability.Communication.Bluetooth.Core 1111 * @since 10 1112 */ 1113 /** 1114 * Pointing peripheral device. 1115 * 1116 * @syscap SystemCapability.Communication.Bluetooth.Core 1117 * @crossplatform 1118 * @since 13 1119 */ 1120 PERIPHERAL_POINTING_DEVICE = 0x0580, 1121 /** 1122 * Keyboard pointing device. 1123 * 1124 * @syscap SystemCapability.Communication.Bluetooth.Core 1125 * @since 10 1126 */ 1127 /** 1128 * Keyboard pointing device. 1129 * 1130 * @syscap SystemCapability.Communication.Bluetooth.Core 1131 * @crossplatform 1132 * @since 13 1133 */ 1134 PERIPHERAL_KEYBOARD_POINTING = 0x05C0, 1135 /** 1136 * Unclassified peripheral device. 1137 * 1138 * @syscap SystemCapability.Communication.Bluetooth.Core 1139 * @since 10 1140 */ 1141 PERIPHERAL_UNCATEGORIZED = 0x0500, 1142 /** 1143 * Peripheral joystick. 1144 * 1145 * @syscap SystemCapability.Communication.Bluetooth.Core 1146 * @since 10 1147 */ 1148 PERIPHERAL_JOYSTICK = 0x0504, 1149 /** 1150 * Peripheral game pad. 1151 * 1152 * @syscap SystemCapability.Communication.Bluetooth.Core 1153 * @since 10 1154 */ 1155 PERIPHERAL_GAMEPAD = 0x0508, 1156 /** 1157 * Peripheral remote control device. 1158 * 1159 * @syscap SystemCapability.Communication.Bluetooth.Core 1160 * @since 10 1161 */ 1162 PERIPHERAL_REMOTE_CONTROL = 0x05C0, 1163 /** 1164 * Peripheral sensing device. 1165 * 1166 * @syscap SystemCapability.Communication.Bluetooth.Core 1167 * @since 10 1168 */ 1169 PERIPHERAL_SENSING_DEVICE = 0x0510, 1170 /** 1171 * Peripheral digitizer tablet. 1172 * 1173 * @syscap SystemCapability.Communication.Bluetooth.Core 1174 * @since 10 1175 */ 1176 PERIPHERAL_DIGITIZER_TABLET = 0x0514, 1177 /** 1178 * Peripheral card reader. 1179 * 1180 * @syscap SystemCapability.Communication.Bluetooth.Core 1181 * @since 10 1182 */ 1183 PERIPHERAL_CARD_READER = 0x0518, 1184 /** 1185 * Peripheral digital pen. 1186 * 1187 * @syscap SystemCapability.Communication.Bluetooth.Core 1188 * @since 10 1189 */ 1190 PERIPHERAL_DIGITAL_PEN = 0x051C, 1191 /** 1192 * Peripheral RFID scanner. 1193 * 1194 * @syscap SystemCapability.Communication.Bluetooth.Core 1195 * @since 10 1196 */ 1197 PERIPHERAL_SCANNER_RFID = 0x0520, 1198 /** 1199 * Gesture input device. 1200 * 1201 * @syscap SystemCapability.Communication.Bluetooth.Core 1202 * @since 10 1203 */ 1204 PERIPHERAL_GESTURAL_INPUT = 0x0522, 1205 1206 /** 1207 * Imaging Major Class 1208 * 1209 * @syscap SystemCapability.Communication.Bluetooth.Core 1210 * @since 10 1211 */ 1212 IMAGING_UNCATEGORIZED = 0x0600, 1213 /** 1214 * Imaging display device. 1215 * 1216 * @syscap SystemCapability.Communication.Bluetooth.Core 1217 * @since 10 1218 */ 1219 IMAGING_DISPLAY = 0x0610, 1220 /** 1221 * Imaging camera device. 1222 * 1223 * @syscap SystemCapability.Communication.Bluetooth.Core 1224 * @since 10 1225 */ 1226 IMAGING_CAMERA = 0x0620, 1227 /** 1228 * Imaging scanner. 1229 * 1230 * @syscap SystemCapability.Communication.Bluetooth.Core 1231 * @since 10 1232 */ 1233 IMAGING_SCANNER = 0x0640, 1234 /** 1235 * Imaging printer. 1236 * 1237 * @syscap SystemCapability.Communication.Bluetooth.Core 1238 * @since 10 1239 */ 1240 IMAGING_PRINTER = 0x0680, 1241 1242 /** 1243 * Wearable Major Class 1244 * 1245 * @syscap SystemCapability.Communication.Bluetooth.Core 1246 * @since 10 1247 */ 1248 /** 1249 * Wearable Major Class 1250 * 1251 * @syscap SystemCapability.Communication.Bluetooth.Core 1252 * @crossplatform 1253 * @since 13 1254 */ 1255 WEARABLE_UNCATEGORIZED = 0x0700, 1256 /** 1257 * Smart watch. 1258 * 1259 * @syscap SystemCapability.Communication.Bluetooth.Core 1260 * @since 10 1261 */ 1262 /** 1263 * Smart watch. 1264 * 1265 * @syscap SystemCapability.Communication.Bluetooth.Core 1266 * @crossplatform 1267 * @since 13 1268 */ 1269 WEARABLE_WRIST_WATCH = 0x0704, 1270 /** 1271 * Wearable pager. 1272 * 1273 * @syscap SystemCapability.Communication.Bluetooth.Core 1274 * @since 10 1275 */ 1276 /** 1277 * Wearable pager. 1278 * 1279 * @syscap SystemCapability.Communication.Bluetooth.Core 1280 * @crossplatform 1281 * @since 13 1282 */ 1283 WEARABLE_PAGER = 0x0708, 1284 /** 1285 * Smart jacket. 1286 * 1287 * @syscap SystemCapability.Communication.Bluetooth.Core 1288 * @since 10 1289 */ 1290 /** 1291 * Smart jacket. 1292 * 1293 * @syscap SystemCapability.Communication.Bluetooth.Core 1294 * @crossplatform 1295 * @since 13 1296 */ 1297 WEARABLE_JACKET = 0x070C, 1298 /** 1299 * Wearable helmet. 1300 * 1301 * @syscap SystemCapability.Communication.Bluetooth.Core 1302 * @since 10 1303 */ 1304 /** 1305 * Wearable helmet. 1306 * 1307 * @syscap SystemCapability.Communication.Bluetooth.Core 1308 * @crossplatform 1309 * @since 13 1310 */ 1311 WEARABLE_HELMET = 0x0710, 1312 /** 1313 * Wearable glasses. 1314 * 1315 * @syscap SystemCapability.Communication.Bluetooth.Core 1316 * @since 10 1317 */ 1318 /** 1319 * Wearable glasses. 1320 * 1321 * @syscap SystemCapability.Communication.Bluetooth.Core 1322 * @crossplatform 1323 * @since 13 1324 */ 1325 WEARABLE_GLASSES = 0x0714, 1326 1327 /** 1328 * Minor Device Class field - Toy Major Class 1329 * 1330 * @syscap SystemCapability.Communication.Bluetooth.Core 1331 * @since 10 1332 */ 1333 /** 1334 * Minor Device Class field - Toy Major Class 1335 * 1336 * @syscap SystemCapability.Communication.Bluetooth.Core 1337 * @crossplatform 1338 * @since 13 1339 */ 1340 TOY_UNCATEGORIZED = 0x0800, 1341 /** 1342 * Toy robot. 1343 * 1344 * @syscap SystemCapability.Communication.Bluetooth.Core 1345 * @since 10 1346 */ 1347 /** 1348 * Toy robot. 1349 * 1350 * @syscap SystemCapability.Communication.Bluetooth.Core 1351 * @crossplatform 1352 * @since 13 1353 */ 1354 TOY_ROBOT = 0x0804, 1355 /** 1356 * Toy vehicle. 1357 * 1358 * @syscap SystemCapability.Communication.Bluetooth.Core 1359 * @since 10 1360 */ 1361 /** 1362 * Toy vehicle. 1363 * 1364 * @syscap SystemCapability.Communication.Bluetooth.Core 1365 * @crossplatform 1366 * @since 13 1367 */ 1368 TOY_VEHICLE = 0x0808, 1369 /** 1370 * Humanoid toy doll. 1371 * 1372 * @syscap SystemCapability.Communication.Bluetooth.Core 1373 * @since 10 1374 */ 1375 /** 1376 * Humanoid toy doll. 1377 * 1378 * @syscap SystemCapability.Communication.Bluetooth.Core 1379 * @crossplatform 1380 * @since 13 1381 */ 1382 TOY_DOLL_ACTION_FIGURE = 0x080C, 1383 /** 1384 * Toy controller. 1385 * 1386 * @syscap SystemCapability.Communication.Bluetooth.Core 1387 * @since 10 1388 */ 1389 /** 1390 * Toy controller. 1391 * 1392 * @syscap SystemCapability.Communication.Bluetooth.Core 1393 * @crossplatform 1394 * @since 13 1395 */ 1396 TOY_CONTROLLER = 0x0810, 1397 /** 1398 * Toy gaming device. 1399 * 1400 * @syscap SystemCapability.Communication.Bluetooth.Core 1401 * @since 10 1402 */ 1403 /** 1404 * Toy gaming device. 1405 * 1406 * @syscap SystemCapability.Communication.Bluetooth.Core 1407 * @crossplatform 1408 * @since 13 1409 */ 1410 TOY_GAME = 0x0814, 1411 1412 /** 1413 * Minor Device Class field - Health 1414 * 1415 * @syscap SystemCapability.Communication.Bluetooth.Core 1416 * @since 10 1417 */ 1418 HEALTH_UNCATEGORIZED = 0x0900, 1419 /** 1420 * Blood pressure device. 1421 * 1422 * @syscap SystemCapability.Communication.Bluetooth.Core 1423 * @since 10 1424 */ 1425 /** 1426 * Blood pressure device. 1427 * 1428 * @syscap SystemCapability.Communication.Bluetooth.Core 1429 * @crossplatform 1430 * @since 13 1431 */ 1432 HEALTH_BLOOD_PRESSURE = 0x0904, 1433 /** 1434 * Thermometer. 1435 * 1436 * @syscap SystemCapability.Communication.Bluetooth.Core 1437 * @since 10 1438 */ 1439 /** 1440 * Thermometer. 1441 * 1442 * @syscap SystemCapability.Communication.Bluetooth.Core 1443 * @crossplatform 1444 * @since 13 1445 */ 1446 HEALTH_THERMOMETER = 0x0908, 1447 /** 1448 * Body scale. 1449 * 1450 * @syscap SystemCapability.Communication.Bluetooth.Core 1451 * @since 10 1452 */ 1453 /** 1454 * Body scale. 1455 * 1456 * @syscap SystemCapability.Communication.Bluetooth.Core 1457 * @crossplatform 1458 * @since 13 1459 */ 1460 HEALTH_WEIGHING = 0x090C, 1461 /** 1462 * Blood glucose monitor. 1463 * 1464 * @syscap SystemCapability.Communication.Bluetooth.Core 1465 * @since 10 1466 */ 1467 /** 1468 * Blood glucose monitor. 1469 * 1470 * @syscap SystemCapability.Communication.Bluetooth.Core 1471 * @crossplatform 1472 * @since 13 1473 */ 1474 HEALTH_GLUCOSE = 0x0910, 1475 /** 1476 * Pulse oximeter. 1477 * 1478 * @syscap SystemCapability.Communication.Bluetooth.Core 1479 * @since 10 1480 */ 1481 /** 1482 * Pulse oximeter. 1483 * 1484 * @syscap SystemCapability.Communication.Bluetooth.Core 1485 * @crossplatform 1486 * @since 13 1487 */ 1488 HEALTH_PULSE_OXIMETER = 0x0914, 1489 /** 1490 * Heart rate monitor. 1491 * 1492 * @syscap SystemCapability.Communication.Bluetooth.Core 1493 * @since 10 1494 */ 1495 /** 1496 * Heart rate monitor. 1497 * 1498 * @syscap SystemCapability.Communication.Bluetooth.Core 1499 * @crossplatform 1500 * @since 13 1501 */ 1502 HEALTH_PULSE_RATE = 0x0918, 1503 /** 1504 * Health data display. 1505 * 1506 * @syscap SystemCapability.Communication.Bluetooth.Core 1507 * @since 10 1508 */ 1509 /** 1510 * Health data display. 1511 * 1512 * @syscap SystemCapability.Communication.Bluetooth.Core 1513 * @crossplatform 1514 * @since 13 1515 */ 1516 HEALTH_DATA_DISPLAY = 0x091C, 1517 /** 1518 * Step counter. 1519 * 1520 * @syscap SystemCapability.Communication.Bluetooth.Core 1521 * @since 10 1522 */ 1523 HEALTH_STEP_COUNTER = 0x0920, 1524 /** 1525 * Body composition analyzer. 1526 * 1527 * @syscap SystemCapability.Communication.Bluetooth.Core 1528 * @since 10 1529 */ 1530 HEALTH_BODY_COMPOSITION_ANALYZER = 0x0924, 1531 /** 1532 * Hygrometer. 1533 * 1534 * @syscap SystemCapability.Communication.Bluetooth.Core 1535 * @since 10 1536 */ 1537 HEALTH_PEAK_FLOW_MONITOR = 0x0928, 1538 /** 1539 * Medication monitor. 1540 * 1541 * @syscap SystemCapability.Communication.Bluetooth.Core 1542 * @since 10 1543 */ 1544 HEALTH_MEDICATION_MONITOR = 0x092C, 1545 /** 1546 * Prosthetic knee. 1547 * 1548 * @syscap SystemCapability.Communication.Bluetooth.Core 1549 * @since 10 1550 */ 1551 HEALTH_KNEE_PROSTHESIS = 0x0930, 1552 /** 1553 * Prosthetic ankle. 1554 * 1555 * @syscap SystemCapability.Communication.Bluetooth.Core 1556 * @since 10 1557 */ 1558 HEALTH_ANKLE_PROSTHESIS = 0x0934, 1559 /** 1560 * Generic health management device. 1561 * 1562 * @syscap SystemCapability.Communication.Bluetooth.Core 1563 * @since 10 1564 */ 1565 HEALTH_GENERIC_HEALTH_MANAGER = 0x0938, 1566 /** 1567 * Personal mobility device. 1568 * 1569 * @syscap SystemCapability.Communication.Bluetooth.Core 1570 * @since 10 1571 */ 1572 HEALTH_PERSONAL_MOBILITY_DEVICE = 0x093C 1573 } 1574 1575 /** 1576 * Enum for the PBAP or MAP access authorization. 1577 * 1578 * @enum { number } 1579 * @syscap SystemCapability.Communication.Bluetooth.Core 1580 * @systemapi 1581 * @since 11 1582 */ 1583 export enum AccessAuthorization { 1584 /** 1585 * Authorization unknown. 1586 * 1587 * @syscap SystemCapability.Communication.Bluetooth.Core 1588 * @systemapi 1589 * @since 11 1590 */ 1591 UNKNOWN = 0, 1592 /** 1593 * Allow access. 1594 * 1595 * @syscap SystemCapability.Communication.Bluetooth.Core 1596 * @systemapi 1597 * @since 11 1598 */ 1599 ALLOWED = 1, 1600 /** 1601 * Access rejected. 1602 * 1603 * @syscap SystemCapability.Communication.Bluetooth.Core 1604 * @systemapi 1605 * @since 11 1606 */ 1607 REJECTED = 2 1608 } 1609} 1610 1611export default constant;