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