1 Star 0 Fork 4K

Feng Lin/interface_sdk-js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
@ohos.bluetooth.constant.d.ts 37.41 KB
一键复制 编辑 原始数据 按行查看 历史
quguiren 提交于 2024-09-05 15:25 +08:00 . add bluetooth.constant @crossplatform 
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599
/*
* Copyright (C) 2023-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit ConnectivityKit
*/
/**
* The definition of constant.
*
* @namespace constant
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* The definition of constant.
*
* @namespace constant
* @syscap SystemCapability.Communication.Bluetooth.Core
* @atomicservice
* @since 12
*/
/**
* The definition of constant.
*
* @namespace constant
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @atomicservice
* @since 13
*/
declare namespace constant {
/**
* The enum of profile id.
*
* @enum { number }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* The enum of profile id.
*
* @enum { number }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
export enum ProfileId {
/**
* A2DP profile.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* A2DP profile.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_A2DP_SOURCE = 1,
/**
* HFP profile.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* HFP profile.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_HANDSFREE_AUDIO_GATEWAY = 4,
/**
* Human Interface Device (HID) profile.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PROFILE_HID_HOST = 6,
/**
* PAN profile.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PROFILE_PAN_NETWORK = 7
}
/**
* Enum for the profile's uuid
*
* @enum { string }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* Enum for the profile's uuid
*
* @enum { string }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* Enum for the profile's uuid
*
* @enum { string }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
export enum ProfileUuids {
/**
* Hands-Free Profile: Audio Gateway
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* Hands-Free Profile: Audio Gateway
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* Hands-Free Profile: Audio Gateway
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_UUID_HFP_AG = '0000111F-0000-1000-8000-00805F9B34FB',
/**
* Hands-Free Profile: Hands Free
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* Hands-Free Profile: Hands Free
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* Hands-Free Profile: Hands Free
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_UUID_HFP_HF = '0000111E-0000-1000-8000-00805F9B34FB',
/**
* Headset Profile: Audio Gateway
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* Headset Profile: Audio Gateway
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* Headset Profile: Audio Gateway
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_UUID_HSP_AG = '00001112-0000-1000-8000-00805F9B34FB',
/**
* Headset Profile: Headset
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* Headset Profile: Headset
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* Headset Profile: Headset
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_UUID_HSP_HS = '00001108-0000-1000-8000-00805F9B34FB',
/**
* Advanced Audio Distribution Profile: Source
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* Advanced Audio Distribution Profile: Source
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* Advanced Audio Distribution Profile: Source
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_UUID_A2DP_SRC = '0000110A-0000-1000-8000-00805F9B34FB',
/**
* Advanced Audio Distribution Profile: Sink
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* Advanced Audio Distribution Profile: Sink
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* Advanced Audio Distribution Profile: Sink
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_UUID_A2DP_SINK = '0000110B-0000-1000-8000-00805F9B34FB',
/**
* Audio/Video Remote Control Profile: Controller
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* Audio/Video Remote Control Profile: Controller
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* Audio/Video Remote Control Profile: Controller
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_UUID_AVRCP_CT = '0000110E-0000-1000-8000-00805F9B34FB',
/**
* Audio/Video Remote Control Profile: Target
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* Audio/Video Remote Control Profile: Target
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* Audio/Video Remote Control Profile: Target
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_UUID_AVRCP_TG = '0000110C-0000-1000-8000-00805F9B34FB',
/**
* Human Interface Device Profile
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* Human Interface Device Profile
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* Human Interface Device Profile
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_UUID_HID = '00001124-0000-1000-8000-00805F9B34FB',
/**
* HID over GATT Profile
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 10
*/
/**
* HID over GATT Profile
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 12
*/
/**
* HID over GATT Profile
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PROFILE_UUID_HOGP = '00001812-0000-1000-8000-00805F9B34FB'
}
/**
* The enum of profile connection state.
*
* @enum { number }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* The enum of profile connection state.
*
* @enum { number }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @atomicservice
* @since 12
*/
/**
* The enum of profile connection state.
*
* @enum { number }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @atomicservice
* @since 13
*/
export enum ProfileConnectionState {
/**
* the current profile is disconnected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* the current profile is disconnected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @atomicservice
* @since 12
*/
/**
* the current profile is disconnected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @atomicservice
* @since 13
*/
STATE_DISCONNECTED = 0,
/**
* the current profile is being connected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* the current profile is being connected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @atomicservice
* @since 12
*/
/**
* the current profile is being connected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @atomicservice
* @since 13
*/
STATE_CONNECTING = 1,
/**
* the current profile is connected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* the current profile is connected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @atomicservice
* @since 12
*/
/**
* the current profile is connected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @atomicservice
* @since 13
*/
STATE_CONNECTED = 2,
/**
* the current profile is being disconnected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* the current profile is being disconnected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @atomicservice
* @since 12
*/
/**
* the current profile is being disconnected
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @atomicservice
* @since 13
*/
STATE_DISCONNECTING = 3
}
/**
* The enum of major class of a bluetooth device.
*
* @enum { number }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* The enum of major class of a bluetooth device.
*
* @enum { number }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
export enum MajorClass {
/**
* Miscellaneous device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
MAJOR_MISC = 0x0000,
/**
* Computer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
MAJOR_COMPUTER = 0x0100,
/**
* Mobile phone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
MAJOR_PHONE = 0x0200,
/**
* Network device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
MAJOR_NETWORKING = 0x0300,
/**
* Audio or video device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Audio or video device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
MAJOR_AUDIO_VIDEO = 0x0400,
/**
* Peripheral device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
MAJOR_PERIPHERAL = 0x0500,
/**
* Imaging device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
MAJOR_IMAGING = 0x0600,
/**
* Wearable device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
MAJOR_WEARABLE = 0x0700,
/**
* Toy.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
MAJOR_TOY = 0x0800,
/**
* Health device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Health device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
MAJOR_HEALTH = 0x0900,
/**
* Unclassified device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
MAJOR_UNCATEGORIZED = 0x1F00
}
/**
* The enum of major minor class of a bluetooth device.
*
* @enum { number }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* The enum of major minor class of a bluetooth device.
*
* @enum { number }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
export enum MajorMinorClass {
/**
* The Minor Device Class field
* Computer Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* The Minor Device Class field
* Computer Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
COMPUTER_UNCATEGORIZED = 0x0100,
/**
* Desktop computer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Desktop computer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
COMPUTER_DESKTOP = 0x0104,
/**
* Server.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Server.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
COMPUTER_SERVER = 0x0108,
/**
* Laptop.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Laptop.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
COMPUTER_LAPTOP = 0x010C,
/**
* Hand-held computer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Hand-held computer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
COMPUTER_HANDHELD_PC_PDA = 0x0110,
/**
* Palmtop computer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Palmtop computer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
COMPUTER_PALM_SIZE_PC_PDA = 0x0114,
/**
* Wearable computer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Wearable computer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
COMPUTER_WEARABLE = 0x0118,
/**
* Tablet.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
COMPUTER_TABLET = 0x011C,
/**
* Phone Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Phone Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PHONE_UNCATEGORIZED = 0x0200,
/**
* Portable phone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Portable phone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PHONE_CELLULAR = 0x0204,
/**
* Cordless phone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Cordless phone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PHONE_CORDLESS = 0x0208,
/**
* Smartphone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Smartphone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PHONE_SMART = 0x020C,
/**
* Modem or gateway phone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Modem or gateway phone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PHONE_MODEM_OR_GATEWAY = 0x0210,
/**
* ISDN phone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* ISDN phone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PHONE_ISDN = 0x0214,
/**
* LAN/Network Access Point Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
NETWORK_FULLY_AVAILABLE = 0x0300,
/**
* Device used on network 1 to 17.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
NETWORK_1_TO_17_UTILIZED = 0x0320,
/**
* Device used on network 17 to 33.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
NETWORK_17_TO_33_UTILIZED = 0x0340,
/**
* Device used on network 33 to 50.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
NETWORK_33_TO_50_UTILIZED = 0x0360,
/**
* Device used on network 60 to 67.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
NETWORK_60_TO_67_UTILIZED = 0x0380,
/**
* Device used on network 67 to 83.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
NETWORK_67_TO_83_UTILIZED = 0x03A0,
/**
* Device used on network 83 to 99.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
NETWORK_83_TO_99_UTILIZED = 0x03C0,
/**
* Device without network service.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
NETWORK_NO_SERVICE = 0x03E0,
/**
* Unclassified audio or video device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
AUDIO_VIDEO_UNCATEGORIZED = 0x0400,
/**
* Wearable audio or video headset.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Wearable audio or video headset.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_WEARABLE_HEADSET = 0x0404,
/**
* Hands-free audio or video device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Hands-free audio or video device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_HANDSFREE = 0x0408,
/**
* Audio or video microphone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Audio or video microphone.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_MICROPHONE = 0x0410,
/**
* Audio or video loudspeaker.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Audio or video loudspeaker.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_LOUDSPEAKER = 0x0414,
/**
* Audio or video headphones.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Audio or video headphones.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_HEADPHONES = 0x0418,
/**
* Portable audio or video device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Portable audio or video device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_PORTABLE_AUDIO = 0x041C,
/**
* In-vehicle audio or video device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* In-vehicle audio or video device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_CAR_AUDIO = 0x0420,
/**
* Audio or video STB device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Audio or video STB device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_SET_TOP_BOX = 0x0424,
/**
* High-fidelity speaker device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* High-fidelity speaker device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_HIFI_AUDIO = 0x0428,
/**
* Video cassette recording (VCR) device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Video cassette recording (VCR) device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_VCR = 0x042C,
/**
* Camera.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Camera.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_VIDEO_CAMERA = 0x0430,
/**
* Camcorder.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Camcorder.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_CAMCORDER = 0x0434,
/**
* Audio or video monitor.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Audio or video monitor.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_VIDEO_MONITOR = 0x0438,
/**
* Video display or loudspeaker.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Video display or loudspeaker.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER = 0x043C,
/**
* Video conferencing device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Video conferencing device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_VIDEO_CONFERENCING = 0x0440,
/**
* Audio or video gaming toy.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Audio or video gaming toy.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
AUDIO_VIDEO_VIDEO_GAMING_TOY = 0x0448,
/**
* Peripheral Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Peripheral Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PERIPHERAL_NON_KEYBOARD_NON_POINTING = 0x0500,
/**
* Keyboard device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Keyboard device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PERIPHERAL_KEYBOARD = 0x0540,
/**
* Pointing peripheral device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Pointing peripheral device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PERIPHERAL_POINTING_DEVICE = 0x0580,
/**
* Keyboard pointing device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Keyboard pointing device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
PERIPHERAL_KEYBOARD_POINTING = 0x05C0,
/**
* Unclassified peripheral device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PERIPHERAL_UNCATEGORIZED = 0x0500,
/**
* Peripheral joystick.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PERIPHERAL_JOYSTICK = 0x0504,
/**
* Peripheral game pad.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PERIPHERAL_GAMEPAD = 0x0508,
/**
* Peripheral remote control device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PERIPHERAL_REMOTE_CONTROL = 0x05C0,
/**
* Peripheral sensing device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PERIPHERAL_SENSING_DEVICE = 0x0510,
/**
* Peripheral digitizer tablet.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PERIPHERAL_DIGITIZER_TABLET = 0x0514,
/**
* Peripheral card reader.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PERIPHERAL_CARD_READER = 0x0518,
/**
* Peripheral digital pen.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PERIPHERAL_DIGITAL_PEN = 0x051C,
/**
* Peripheral RFID scanner.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PERIPHERAL_SCANNER_RFID = 0x0520,
/**
* Gesture input device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
PERIPHERAL_GESTURAL_INPUT = 0x0522,
/**
* Imaging Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
IMAGING_UNCATEGORIZED = 0x0600,
/**
* Imaging display device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
IMAGING_DISPLAY = 0x0610,
/**
* Imaging camera device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
IMAGING_CAMERA = 0x0620,
/**
* Imaging scanner.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
IMAGING_SCANNER = 0x0640,
/**
* Imaging printer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
IMAGING_PRINTER = 0x0680,
/**
* Wearable Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Wearable Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
WEARABLE_UNCATEGORIZED = 0x0700,
/**
* Smart watch.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Smart watch.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
WEARABLE_WRIST_WATCH = 0x0704,
/**
* Wearable pager.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Wearable pager.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
WEARABLE_PAGER = 0x0708,
/**
* Smart jacket.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Smart jacket.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
WEARABLE_JACKET = 0x070C,
/**
* Wearable helmet.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Wearable helmet.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
WEARABLE_HELMET = 0x0710,
/**
* Wearable glasses.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Wearable glasses.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
WEARABLE_GLASSES = 0x0714,
/**
* Minor Device Class field - Toy Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Minor Device Class field - Toy Major Class
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
TOY_UNCATEGORIZED = 0x0800,
/**
* Toy robot.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Toy robot.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
TOY_ROBOT = 0x0804,
/**
* Toy vehicle.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Toy vehicle.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
TOY_VEHICLE = 0x0808,
/**
* Humanoid toy doll.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Humanoid toy doll.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
TOY_DOLL_ACTION_FIGURE = 0x080C,
/**
* Toy controller.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Toy controller.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
TOY_CONTROLLER = 0x0810,
/**
* Toy gaming device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Toy gaming device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
TOY_GAME = 0x0814,
/**
* Minor Device Class field - Health
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
HEALTH_UNCATEGORIZED = 0x0900,
/**
* Blood pressure device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Blood pressure device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
HEALTH_BLOOD_PRESSURE = 0x0904,
/**
* Thermometer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Thermometer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
HEALTH_THERMOMETER = 0x0908,
/**
* Body scale.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Body scale.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
HEALTH_WEIGHING = 0x090C,
/**
* Blood glucose monitor.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Blood glucose monitor.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
HEALTH_GLUCOSE = 0x0910,
/**
* Pulse oximeter.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Pulse oximeter.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
HEALTH_PULSE_OXIMETER = 0x0914,
/**
* Heart rate monitor.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Heart rate monitor.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
HEALTH_PULSE_RATE = 0x0918,
/**
* Health data display.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
/**
* Health data display.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @crossplatform
* @since 13
*/
HEALTH_DATA_DISPLAY = 0x091C,
/**
* Step counter.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
HEALTH_STEP_COUNTER = 0x0920,
/**
* Body composition analyzer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
HEALTH_BODY_COMPOSITION_ANALYZER = 0x0924,
/**
* Hygrometer.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
HEALTH_PEAK_FLOW_MONITOR = 0x0928,
/**
* Medication monitor.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
HEALTH_MEDICATION_MONITOR = 0x092C,
/**
* Prosthetic knee.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
HEALTH_KNEE_PROSTHESIS = 0x0930,
/**
* Prosthetic ankle.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
HEALTH_ANKLE_PROSTHESIS = 0x0934,
/**
* Generic health management device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
HEALTH_GENERIC_HEALTH_MANAGER = 0x0938,
/**
* Personal mobility device.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @since 10
*/
HEALTH_PERSONAL_MOBILITY_DEVICE = 0x093C
}
/**
* Enum for the PBAP or MAP access authorization.
*
* @enum { number }
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 11
*/
export enum AccessAuthorization {
/**
* Authorization unknown.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 11
*/
UNKNOWN = 0,
/**
* Allow access.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 11
*/
ALLOWED = 1,
/**
* Access rejected.
*
* @syscap SystemCapability.Communication.Bluetooth.Core
* @systemapi
* @since 11
*/
REJECTED = 2
}
}
export default constant;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lffl8796/interface_sdk-js.git
git@gitee.com:lffl8796/interface_sdk-js.git
lffl8796
interface_sdk-js
interface_sdk-js
master

搜索帮助