• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Communication Subsystem
2
3The table below lists the APIs changes of the communication subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| tagSession | TagSession | getMaxSendLength(): number; | Added|
10| tagSession | TagSession | sendData(data: number[]): Promise\<number[]>;<br>sendData(data: number[], callback: AsyncCallback\<number[]>): void; | Added|
11| tagSession | TagSession | getSendDataTimeout(): number; | Added|
12| tagSession | TagSession | setSendDataTimeout(timeout: number): boolean; | Added|
13| tagSession | TagSession | isTagConnected(): boolean; | Added|
14| tagSession | TagSession | reset(): void; | Added|
15| tagSession | TagSession | connectTag(): boolean; | Added|
16| tagSession | TagSession | getTagInfo(): tag.TagInfo; | Added|
17| nfctech | NfcVTag | getDsfId(): number; | Added|
18| nfctech | NfcVTag | getResponseFlags(): number; | Added|
19| nfctech | NfcFTag | getPmm(): number[]; | Added|
20| nfctech | NfcFTag | getSystemCode(): number[]; | Added|
21| nfctech | NfcBTag | getRespProtocol(): number[]; | Added|
22| nfctech | NfcBTag | getRespAppData(): number[]; | Added|
23| nfctech | NfcATag | getAtqa(): number[]; | Added|
24| nfctech | NfcATag | getSak(): number; | Added|
25| ohos.wifiext | PowerModel | THROUGH_WALL = 2 | Added|
26| ohos.wifiext | PowerModel | GENERAL = 1 | Added|
27| ohos.wifiext | PowerModel | SLEEPING = 0 | Added|
28| ohos.wifiext | wifiext | setPowerModel(model: PowerModel) : boolean | Added|
29| ohos.wifiext | wifiext | getPowerModel (): Promise\<PowerModel>;<br>getPowerModel (callback: AsyncCallback\<PowerModel>): void; | Added|
30| ohos.wifiext | wifiext | getSupportedPowerModel(): Promise\<Array\<PowerModel>>;<br>getSupportedPowerModel(callback: AsyncCallback\<Array\<PowerModel>>): void; | Added|
31| ohos.wifiext | wifiext | disableHotspot(): boolean; | Added|
32| ohos.wifiext | wifiext | enableHotspot(): boolean; | Added|
33| ohos.wifi | GroupOwnerBand | GO_BAND_5GHZ = 2 | Added|
34| ohos.wifi | GroupOwnerBand | GO_BAND_2GHZ = 1 | Added|
35| ohos.wifi | GroupOwnerBand | GO_BAND_AUTO = 0 | Added|
36| ohos.wifi | P2pDeviceStatus | UNAVAILABLE = 4 | Added|
37| ohos.wifi | P2pDeviceStatus | AVAILABLE = 3 | Added|
38| ohos.wifi | P2pDeviceStatus | FAILED = 2 | Added|
39| ohos.wifi | P2pDeviceStatus | INVITED = 1 | Added|
40| ohos.wifi | P2pDeviceStatus | CONNECTED = 0 | Added|
41| ohos.wifi | WifiP2pLinkedInfo | groupOwnerAddr: string; | Added|
42| ohos.wifi | WifiP2pLinkedInfo | isGroupOwner: boolean; | Added|
43| ohos.wifi | WifiP2pLinkedInfo | connectState: P2pConnectState; | Added|
44| ohos.wifi | P2pConnectState | CONNECTED = 1 | Added|
45| ohos.wifi | P2pConnectState | DISCONNECTED = 0 | Added|
46| ohos.wifi | WifiP2pGroupInfo | goIpAddress: string; | Added|
47| ohos.wifi | WifiP2pGroupInfo | clientDevices: WifiP2pDevice[]; | Added|
48| ohos.wifi | WifiP2pGroupInfo | frequency: number; | Added|
49| ohos.wifi | WifiP2pGroupInfo | networkId: number; | Added|
50| ohos.wifi | WifiP2pGroupInfo | groupName: string; | Added|
51| ohos.wifi | WifiP2pGroupInfo | interface: string; | Added|
52| ohos.wifi | WifiP2pGroupInfo | passphrase: string; | Added|
53| ohos.wifi | WifiP2pGroupInfo | ownerInfo: WifiP2pDevice; | Added|
54| ohos.wifi | WifiP2pGroupInfo | isP2pGo: boolean; | Added|
55| ohos.wifi | WifiP2PConfig | goBand: GroupOwnerBand; | Added|
56| ohos.wifi | WifiP2PConfig | groupName: string; | Added|
57| ohos.wifi | WifiP2PConfig | passphrase: string; | Added|
58| ohos.wifi | WifiP2PConfig | netId: number; | Added|
59| ohos.wifi | WifiP2PConfig | deviceAddress: string; | Added|
60| ohos.wifi | WifiP2pDevice | groupCapabilitys: number; | Added|
61| ohos.wifi | WifiP2pDevice | deviceStatus: P2pDeviceStatus; | Added|
62| ohos.wifi | WifiP2pDevice | primaryDeviceType: string; | Added|
63| ohos.wifi | WifiP2pDevice | deviceAddress: string; | Added|
64| ohos.wifi | WifiP2pDevice | deviceName: string; | Added|
65| ohos.wifi | ConnState | UNKNOWN | Added|
66| ohos.wifi | ConnState | DISCONNECTED | Added|
67| ohos.wifi | ConnState | DISCONNECTING | Added|
68| ohos.wifi | ConnState | CONNECTED | Added|
69| ohos.wifi | ConnState | OBTAINING_IPADDR | Added|
70| ohos.wifi | ConnState | AUTHENTICATING | Added|
71| ohos.wifi | ConnState | CONNECTING | Added|
72| ohos.wifi | ConnState | SCANNING | Added|
73| ohos.wifi | IpInfo | leaseDuration: number; | Added|
74| ohos.wifi | IpInfo | serverIp: number; | Added|
75| ohos.wifi | IpInfo | secondDns: number; | Added|
76| ohos.wifi | IpInfo | primaryDns: number; | Added|
77| ohos.wifi | IpInfo | netmask: number; | Added|
78| ohos.wifi | IpInfo | gateway: number; | Added|
79| ohos.wifi | IpInfo | ipAddress: number; | Added|
80| ohos.wifi | WifiLinkedInfo | connState: ConnState; | Added|
81| ohos.wifi | WifiLinkedInfo | ipAddress: number; | Added|
82| ohos.wifi | WifiLinkedInfo | macAddress: string; | Added|
83| ohos.wifi | WifiLinkedInfo | isRestricted: boolean; | Added|
84| ohos.wifi | WifiLinkedInfo | isHidden: boolean; | Added|
85| ohos.wifi | WifiLinkedInfo | frequency: number; | Added|
86| ohos.wifi | WifiLinkedInfo | linkSpeed: number; | Added|
87| ohos.wifi | WifiLinkedInfo | band: number; | Added|
88| ohos.wifi | WifiLinkedInfo | rssi: number; | Added|
89| ohos.wifi | WifiLinkedInfo | bssid: string; | Added|
90| ohos.wifi | WifiLinkedInfo | ssid: string; | Added|
91| ohos.wifi | WifiScanInfo | channelWidth: number; | Added|
92| ohos.wifi | WifiScanInfo | capabilities: string; | Added|
93| ohos.wifi | wifi | off(type: "p2pDiscoveryChange", callback?: Callback\<number>): void; | Added|
94| ohos.wifi | wifi | on(type: "p2pDiscoveryChange", callback: Callback\<number>): void; | Added|
95| ohos.wifi | wifi | off(type: "p2pPersistentGroupChange", callback?: Callback\<void>): void; | Added|
96| ohos.wifi | wifi | on(type: "p2pPersistentGroupChange", callback: Callback\<void>): void; | Added|
97| ohos.wifi | wifi | off(type: "p2pPeerDeviceChange", callback?: Callback\<WifiP2pDevice[]>): void; | Added|
98| ohos.wifi | wifi | on(type: "p2pPeerDeviceChange", callback: Callback\<WifiP2pDevice[]>): void; | Added|
99| ohos.wifi | wifi | off(type: "p2pDeviceChange", callback?: Callback\<WifiP2pDevice>): void; | Added|
100| ohos.wifi | wifi | on(type: "p2pDeviceChange", callback: Callback\<WifiP2pDevice>): void; | Added|
101| ohos.wifi | wifi | off(type: "p2pConnectionChange", callback?: Callback\<WifiP2pLinkedInfo>): void; | Added|
102| ohos.wifi | wifi | on(type: "p2pConnectionChange", callback: Callback\<WifiP2pLinkedInfo>): void; | Added|
103| ohos.wifi | wifi | off(type: "p2pStateChange", callback?: Callback\<number>): void; | Added|
104| ohos.wifi | wifi | on(type: "p2pStateChange", callback: Callback\<number>): void; | Added|
105| ohos.wifi | wifi | off(type: "hotspotStateChange", callback?: Callback\<number>): void; | Added|
106| ohos.wifi | wifi | on(type: "hotspotStateChange", callback: Callback\<number>): void; | Added|
107| ohos.wifi | wifi | off(type: "wifiRssiChange", callback?: Callback\<number>): void; | Added|
108| ohos.wifi | wifi | on(type: "wifiRssiChange", callback: Callback\<number>): void; | Added|
109| ohos.wifi | wifi | off(type: "wifiScanStateChange", callback?: Callback\<number>): void; | Added|
110| ohos.wifi | wifi | on(type: "wifiScanStateChange", callback: Callback\<number>): void; | Added|
111| ohos.wifi | wifi | off(type: "wifiConnectionChange", callback?: Callback\<number>): void; | Added|
112| ohos.wifi | wifi | on(type: "wifiConnectionChange", callback: Callback\<number>): void; | Added|
113| ohos.wifi | wifi | off(type: "wifiStateChange", callback?: Callback\<number>): void; | Added|
114| ohos.wifi | wifi | on(type: "wifiStateChange", callback: Callback\<number>): void; | Added|
115| ohos.wifi | wifi | stopDiscoverDevices(): boolean; | Added|
116| ohos.wifi | wifi | startDiscoverDevices(): boolean; | Added|
117| ohos.wifi | wifi | p2pCancelConnect(): boolean; | Added|
118| ohos.wifi | wifi | p2pConnect(config: WifiP2PConfig): boolean; | Added|
119| ohos.wifi | wifi | removeGroup(): boolean; | Added|
120| ohos.wifi | wifi | createGroup(config: WifiP2PConfig): boolean; | Added|
121| ohos.wifi | wifi | getP2pPeerDevices(): Promise\<WifiP2pDevice[]>;<br>getP2pPeerDevices(callback: AsyncCallback\<WifiP2pDevice[]>): void; | Added|
122| ohos.wifi | wifi | getCurrentGroup(): Promise\<WifiP2pGroupInfo>;<br>getCurrentGroup(callback: AsyncCallback\<WifiP2pGroupInfo>): void; | Added|
123| ohos.wifi | wifi | getP2pLinkedInfo(): Promise\<WifiP2pLinkedInfo>;<br>getP2pLinkedInfo(callback: AsyncCallback\<WifiP2pLinkedInfo>): void; | Added|
124| ohos.wifi | wifi | getCountryCode(): string; | Added|
125| ohos.wifi | wifi | getIpInfo(): IpInfo; | Added|
126| ohos.wifi | wifi | isFeatureSupported(featureId: number): boolean; | Added|
127| ohos.wifi | wifi | isConnected(): boolean; | Added|
128| ohos.wifi | wifi | getLinkedInfo(): Promise\<WifiLinkedInfo>;<br>getLinkedInfo(callback: AsyncCallback\<WifiLinkedInfo>): void; | Added|
129| ohos.wifi | wifi | removeUntrustedConfig(config: WifiDeviceConfig): Promise\<boolean>;<br>removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback\<boolean>): void; | Added|
130| ohos.wifi | wifi | addUntrustedConfig(config: WifiDeviceConfig): Promise\<boolean>;<br>addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback\<boolean>): void; | Added|
131| ohos.nfc.tag | TagInfo | supportedProfiles: number[]; | Added|
132| ohos.nfc.tag | tag | getNfcVTag(tagInfo: TagInfo): NfcVTag | Added|
133| ohos.nfc.tag | tag | getNfcFTag(tagInfo: TagInfo): NfcFTag | Added|
134| ohos.nfc.tag | tag | getNfcBTag(tagInfo: TagInfo): NfcBTag | Added|
135| ohos.nfc.tag | tag | getNfcATag(tagInfo: TagInfo): NfcATag | Added|
136| ohos.nfc.tag | tag | const MIFARE_ULTRALIGHT = 9; | Added|
137| ohos.nfc.tag | tag | const MIFARE_CLASSIC = 8; | Added|
138| ohos.nfc.tag | tag | const NDEF = 6; | Added|
139| ohos.nfc.tag | tag | const NFC_V = 5; | Added|
140| ohos.nfc.tag | tag | const NFC_F = 4; | Added|
141| ohos.nfc.tag | tag | const ISO_DEP = 3; | Added|
142| ohos.nfc.tag | tag | const NFC_B = 2; | Added|
143| ohos.nfc.tag | tag | const NFC_A = 1; | Added|
144| ohos.nfc.controller | nfcController | getNfcState(): NfcState | Added|
145| ohos.nfc.controller | nfcController | isNfcOpen(): boolean | Added|
146| ohos.nfc.controller | nfcController | closeNfc(): boolean | Added|
147| ohos.nfc.controller | nfcController | openNfc(): boolean | Added|
148| ohos.nfc.controller | nfcController | off(type: "nfcStateChange", callback?: Callback\<NfcState>): void | Added|
149| ohos.nfc.controller | nfcController | on(type: "nfcStateChange", callback: Callback\<NfcState>): void | Added|
150| ohos.nfc.controller | nfcController | isNfcAvailable(): boolean | Added|
151| ohos.nfc.controller | NfcState | STATE_TURNING_OFF = 4 | Added|
152| ohos.nfc.controller | NfcState | STATE_ON = 3 | Added|
153| ohos.nfc.controller | NfcState | STATE_TURNING_ON = 2 | Added|
154| ohos.nfc.controller | NfcState | STATE_OFF = 1 | Added|
155| ohos.nfc.cardEmulation | HceService | sendResponse(responseApdu: number[]): void; | Added|
156| ohos.nfc.cardEmulation | HceService | on(type: "hceCmd", callback: AsyncCallback\<number[]>): void; | Added|
157| ohos.nfc.cardEmulation | HceService | stopHCE(): boolean; | Added|
158| ohos.nfc.cardEmulation | HceService | startHCE(aidList: string[]): boolean; | Added|
159| ohos.nfc.cardEmulation | cardEmulation | isSupported(feature: number): boolean; | Added|
160| ohos.nfc.cardEmulation | FeatureType | ESE = 2 | Added|
161| ohos.nfc.cardEmulation | FeatureType | UICC = 1 | Added|
162| ohos.nfc.cardEmulation | FeatureType | HCE = 0 | Added|
163| ohos.connectedTag | NfcRfType | NFC_RF_ENTER = 1 | Added|
164| ohos.connectedTag | NfcRfType | NFC_RF_LEAVE = 0 | Added|
165| ohos.connectedTag | connectedTag | off(type: "notify", callback?:Callback\<number>): void; | Added|
166| ohos.connectedTag | connectedTag | on(type: "notify", callback: Callback\<number>): void; | Added|
167| ohos.connectedTag | connectedTag | writeNdefTag(data: string): Promise\<void>;<br>writeNdefTag(data: string, callback: AsyncCallback\<void>): void; | Added|
168| ohos.connectedTag | connectedTag | readNdefTag(): Promise\<string>;<br>readNdefTag(callback: AsyncCallback\<string>): void; | Added|
169| ohos.connectedTag | connectedTag | uninit(): boolean; | Added|
170| ohos.connectedTag | connectedTag | init(): boolean; | Added|
171| ohos.bluetooth | ProfileId | PROFILE_HANDS_FREE_AUDIO_GATEWAY = 4 | Added|
172| ohos.bluetooth | ProfileId | PROFILE_A2DP_SOURCE = 1 | Added|
173| ohos.bluetooth | PlayingState | STATE_PLAYING | Added|
174| ohos.bluetooth | PlayingState | STATE_NOT_PLAYING | Added|
175| ohos.bluetooth | StateChangeParam | state: ProfileConnectionState; | Added|
176| ohos.bluetooth | StateChangeParam | deviceId: string; | Added|
177| ohos.bluetooth | MajorMinorClass | HEALTH_PERSONAL_MOBILITY_DEVICE = 0x093C | Added|
178| ohos.bluetooth | MajorMinorClass | HEALTH_GENERIC_HEALTH_MANAGER = 0x0938 | Added|
179| ohos.bluetooth | MajorMinorClass | HEALTH_ANKLE_PROSTHESIS = 0x0934 | Added|
180| ohos.bluetooth | MajorMinorClass | HEALTH_KNEE_PROSTHESIS = 0x0930 | Added|
181| ohos.bluetooth | MajorMinorClass | HEALTH_MEDICATION_MONITOR = 0x092C | Added|
182| ohos.bluetooth | MajorMinorClass | HEALTH_PEAK_FLOW_MOITOR = 0x0928 | Added|
183| ohos.bluetooth | MajorMinorClass | HEALTH_BODY_COMPOSITION_ANALYZER = 0x0924 | Added|
184| ohos.bluetooth | MajorMinorClass | HEALTH_STEP_COUNTER = 0x0920 | Added|
185| ohos.bluetooth | MajorMinorClass | HEALTH_DATA_DISPLAY = 0x091C | Added|
186| ohos.bluetooth | MajorMinorClass | HEALTH_PULSE_RATE = 0x0918 | Added|
187| ohos.bluetooth | MajorMinorClass | HEALTH_PULSE_OXIMETER = 0x0914 | Added|
188| ohos.bluetooth | MajorMinorClass | HEALTH_GLUCOSE = 0x0910 | Added|
189| ohos.bluetooth | MajorMinorClass | HEALTH_WEIGHING = 0x090C | Added|
190| ohos.bluetooth | MajorMinorClass | HEALTH_THERMOMETER = 0x0908 | Added|
191| ohos.bluetooth | MajorMinorClass | HEALTH_BLOOD_PRESSURE = 0x0904 | Added|
192| ohos.bluetooth | MajorMinorClass | HEALTH_UNCATEGORIZED = 0x0900 | Added|
193| ohos.bluetooth | MajorMinorClass | TOY_GAME = 0x0814 | Added|
194| ohos.bluetooth | MajorMinorClass | TOY_CONTROLLER = 0x0810 | Added|
195| ohos.bluetooth | MajorMinorClass | TOY_DOLL_ACTION_FIGURE = 0x080C | Added|
196| ohos.bluetooth | MajorMinorClass | TOY_VEHICLE = 0x0808 | Added|
197| ohos.bluetooth | MajorMinorClass | TOY_ROBOT = 0x0804 | Added|
198| ohos.bluetooth | MajorMinorClass | TOY_UNCATEGORIZED = 0x0800 | Added|
199| ohos.bluetooth | MajorMinorClass | WEARABLE_GLASSES = 0x0714 | Added|
200| ohos.bluetooth | MajorMinorClass | WEARABLE_HELMET = 0x0710 | Added|
201| ohos.bluetooth | MajorMinorClass | WEARABLE_JACKET = 0x070C | Added|
202| ohos.bluetooth | MajorMinorClass | WEARABLE_PAGER = 0x0708 | Added|
203| ohos.bluetooth | MajorMinorClass | WEARABLE_WRIST_WATCH = 0x0704 | Added|
204| ohos.bluetooth | MajorMinorClass | WEARABLE_UNCATEGORIZED = 0x0700 | Added|
205| ohos.bluetooth | MajorMinorClass | IMAGING_PRINTER = 0x0680 | Added|
206| ohos.bluetooth | MajorMinorClass | IMAGING_SCANNER = 0x0640 | Added|
207| ohos.bluetooth | MajorMinorClass | IMAGING_CAMERA = 0x0620 | Added|
208| ohos.bluetooth | MajorMinorClass | IMAGING_DISPLAY = 0x0610 | Added|
209| ohos.bluetooth | MajorMinorClass | IMAGING_UNCATEGORIZED = 0x0600 | Added|
210| ohos.bluetooth | MajorMinorClass | PERIPHERAL_GESTURAL_INPUT = 0x0522 | Added|
211| ohos.bluetooth | MajorMinorClass | PERIPHERAL_SCANNER_RFID = 0x0520 | Added|
212| ohos.bluetooth | MajorMinorClass | PERIPHERAL_DIGITAL_PEN = 0x051C | Added|
213| ohos.bluetooth | MajorMinorClass | PERIPHERAL_CARD_READER = 0x0518 | Added|
214| ohos.bluetooth | MajorMinorClass | PERIPHERAL_DIGITIZER_TABLET = 0x0514 | Added|
215| ohos.bluetooth | MajorMinorClass | PERIPHERAL_SENSING_DEVICE = 0x0510 | Added|
216| ohos.bluetooth | MajorMinorClass | PERIPHERAL_REMOTE_CONTROL = 0x05C0 | Added|
217| ohos.bluetooth | MajorMinorClass | PERIPHERAL_GAMEPAD = 0x0508 | Added|
218| ohos.bluetooth | MajorMinorClass | PERIPHERAL_JOYSTICK = 0x0504 | Added|
219| ohos.bluetooth | MajorMinorClass | PERIPHERAL_UNCATEGORIZED = 0x0500 | Added|
220| ohos.bluetooth | MajorMinorClass | PERIPHERAL_KEYBOARD_POINTING = 0x05C0 | Added|
221| ohos.bluetooth | MajorMinorClass | PERIPHERAL_POINTING_DEVICE = 0x0580 | Added|
222| ohos.bluetooth | MajorMinorClass | PERIPHERAL_KEYBOARD = 0x0540 | Added|
223| ohos.bluetooth | MajorMinorClass | PERIPHERAL_NON_KEYBOARD_NON_POINTING = 0x0500 | Added|
224| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VIDEO_GAMING_TOY = 0x0448 | Added|
225| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VIDEO_CONFERENCING = 0x0440 | Added|
226| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER = 0x043C | Added|
227| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VIDEO_MONITOR = 0x0438 | Added|
228| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_CAMCORDER = 0x0434 | Added|
229| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VIDEO_CAMERA = 0x0430 | Added|
230| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_VCR = 0x042C | Added|
231| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_HIFI_AUDIO = 0x0428 | Added|
232| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_SET_TOP_BOX = 0x0424 | Added|
233| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_CAR_AUDIO = 0x0420 | Added|
234| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_PORTABLE_AUDIO = 0x041C | Added|
235| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_HEADPHONES = 0x0418 | Added|
236| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_LOUDSPEAKER = 0x0414 | Added|
237| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_MICROPHONE = 0x0410 | Added|
238| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_HANDSFREE = 0x0408 | Added|
239| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_WEARABLE_HEADSET = 0x0404 | Added|
240| ohos.bluetooth | MajorMinorClass | AUDIO_VIDEO_UNCATEGORIZED = 0x0400 | Added|
241| ohos.bluetooth | MajorMinorClass | NETWORK_NO_SERVICE = 0x03E0 | Added|
242| ohos.bluetooth | MajorMinorClass | NETWORK_83_TO_99_UTILIZED = 0x03C0 | Added|
243| ohos.bluetooth | MajorMinorClass | NETWORK_67_TO_83_UTILIZED = 0x03A0 | Added|
244| ohos.bluetooth | MajorMinorClass | NETWORK_60_TO_67_UTILIZED = 0x0380 | Added|
245| ohos.bluetooth | MajorMinorClass | NETWORK_33_TO_50_UTILIZED = 0x0360 | Added|
246| ohos.bluetooth | MajorMinorClass | NETWORK_17_TO_33_UTILIZED = 0x0340 | Added|
247| ohos.bluetooth | MajorMinorClass | NETWORK_1_TO_17_UTILIZED = 0x0320 | Added|
248| ohos.bluetooth | MajorMinorClass | NETWORK_FULLY_AVAILABLE = 0x0300 | Added|
249| ohos.bluetooth | MajorMinorClass | PHONE_ISDN = 0x0214 | Added|
250| ohos.bluetooth | MajorMinorClass | PHONE_MODEM_OR_GATEWAY = 0x0210 | Added|
251| ohos.bluetooth | MajorMinorClass | PHONE_SMART = 0x020C | Added|
252| ohos.bluetooth | MajorMinorClass | PHONE_CORDLESS = 0x0208 | Added|
253| ohos.bluetooth | MajorMinorClass | PHONE_CELLULAR = 0x0204 | Added|
254| ohos.bluetooth | MajorMinorClass | PHONE_UNCATEGORIZED = 0x0200 | Added|
255| ohos.bluetooth | MajorMinorClass | COMPUTER_TABLET = 0x011C | Added|
256| ohos.bluetooth | MajorMinorClass | COMPUTER_WEARABLE = 0x0118 | Added|
257| ohos.bluetooth | MajorMinorClass | COMPUTER_PALM_SIZE_PC_PDA = 0x0114 | Added|
258| ohos.bluetooth | MajorMinorClass | COMPUTER_HANDHELD_PC_PDA = 0x0110 | Added|
259| ohos.bluetooth | MajorMinorClass | COMPUTER_LAPTOP = 0x010C | Added|
260| ohos.bluetooth | MajorMinorClass | COMPUTER_SERVER = 0x0108 | Added|
261| ohos.bluetooth | MajorMinorClass | COMPUTER_DESKTOP = 0x0104 | Added|
262| ohos.bluetooth | MajorMinorClass | COMPUTER_UNCATEGORIZED = 0x0100 | Added|
263| ohos.bluetooth | MajorClass | MAJOR_UNCATEGORIZED = 0x1F00 | Added|
264| ohos.bluetooth | MajorClass | MAJOR_HEALTH = 0x0900 | Added|
265| ohos.bluetooth | MajorClass | MAJOR_TOY = 0x0800 | Added|
266| ohos.bluetooth | MajorClass | MAJOR_WEARABLE = 0x0700 | Added|
267| ohos.bluetooth | MajorClass | MAJOR_IMAGING = 0x0600 | Added|
268| ohos.bluetooth | MajorClass | MAJOR_PERIPHERAL = 0x0500 | Added|
269| ohos.bluetooth | MajorClass | MAJOR_AUDIO_VIDEO = 0x0400 | Added|
270| ohos.bluetooth | MajorClass | MAJOR_NETWORKING = 0x0300 | Added|
271| ohos.bluetooth | MajorClass | MAJOR_PHONE = 0x0200 | Added|
272| ohos.bluetooth | MajorClass | MAJOR_COMPUTER = 0x0100 | Added|
273| ohos.bluetooth | MajorClass | MAJOR_MISC = 0x0000 | Added|
274| ohos.bluetooth | BondState | BOND_STATE_BONDED = 2 | Added|
275| ohos.bluetooth | BondState | BOND_STATE_BONDING = 1 | Added|
276| ohos.bluetooth | BondState | BOND_STATE_INVALID = 0 | Added|
277| ohos.bluetooth | ScanMode | SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE = 5 | Added|
278| ohos.bluetooth | ScanMode | SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE = 4 | Added|
279| ohos.bluetooth | ScanMode | SCAN_MODE_LIMITED_DISCOVERABLE = 3 | Added|
280| ohos.bluetooth | ScanMode | SCAN_MODE_GENERAL_DISCOVERABLE = 2 | Added|
281| ohos.bluetooth | ScanMode | SCAN_MODE_CONNECTABLE = 1 | Added|
282| ohos.bluetooth | ScanMode | SCAN_MODE_NONE = 0 | Added|
283| ohos.bluetooth | SppType | SPP_RFCOMM | Added|
284| ohos.bluetooth | BluetoothState | STATE_BLE_TURNING_OFF = 6 | Added|
285| ohos.bluetooth | BluetoothState | STATE_BLE_ON = 5 | Added|
286| ohos.bluetooth | BluetoothState | STATE_BLE_TURNING_ON = 4 | Added|
287| ohos.bluetooth | BluetoothState | STATE_TURNING_OFF = 3 | Added|
288| ohos.bluetooth | BluetoothState | STATE_ON = 2 | Added|
289| ohos.bluetooth | BluetoothState | STATE_TURNING_ON = 1 | Added|
290| ohos.bluetooth | BluetoothState | STATE_OFF = 0 | Added|
291| ohos.bluetooth | ProfileConnectionState | STATE_DISCONNECTING = 3 | Added|
292| ohos.bluetooth | ProfileConnectionState | STATE_CONNECTED = 2 | Added|
293| ohos.bluetooth | ProfileConnectionState | STATE_CONNECTING = 1 | Added|
294| ohos.bluetooth | ProfileConnectionState | STATE_DISCONNECTED = 0 | Added|
295| ohos.bluetooth | MatchMode | MATCH_MODE_STICKY = 2 | Added|
296| ohos.bluetooth | MatchMode | MATCH_MODE_AGGRESSIVE = 1 | Added|
297| ohos.bluetooth | ScanDuty | SCAN_MODE_LOW_LATENCY = 2 | Added|
298| ohos.bluetooth | ScanDuty | SCAN_MODE_BALANCED = 1 | Added|
299| ohos.bluetooth | ScanDuty | SCAN_MODE_LOW_POWER = 0 | Added|
300| ohos.bluetooth | BondStateParam | state: BondState; | Added|
301| ohos.bluetooth | BondStateParam | deviceId: string; | Added|
302| ohos.bluetooth | DeviceClass | classOfDevice: number; | Added|
303| ohos.bluetooth | DeviceClass | majorMinorClass: MajorMinorClass; | Added|
304| ohos.bluetooth | DeviceClass | majorClass: MajorClass; | Added|
305| ohos.bluetooth | PinRequiredParam | pinCode: string; | Added|
306| ohos.bluetooth | PinRequiredParam | deviceId: string; | Added|
307| ohos.bluetooth | SppOption | type: SppType; | Added|
308| ohos.bluetooth | SppOption | secure: boolean; | Added|
309| ohos.bluetooth | SppOption | uuid: string; | Added|
310| ohos.bluetooth | ScanOptions | matchMode?: MatchMode; | Added|
311| ohos.bluetooth | ScanOptions | dutyMode?: ScanDuty; | Added|
312| ohos.bluetooth | ScanOptions | interval?: number; | Added|
313| ohos.bluetooth | ScanFilter | serviceUuid?: string; | Added|
314| ohos.bluetooth | ScanFilter | name?: string; | Added|
315| ohos.bluetooth | ScanFilter | deviceId?: string; | Added|
316| ohos.bluetooth | ServiceData | serviceValue: ArrayBuffer; | Added|
317| ohos.bluetooth | ServiceData | serviceUuid: string; | Added|
318| ohos.bluetooth | ManufactureData | manufactureValue: ArrayBuffer; | Added|
319| ohos.bluetooth | ManufactureData | manufactureId: number; | Added|
320| ohos.bluetooth | AdvertiseData | serviceData: Array\<ServiceData>; | Added|
321| ohos.bluetooth | AdvertiseData | manufactureData: Array\<ManufactureData>; | Added|
322| ohos.bluetooth | AdvertiseData | serviceUuids: Array\<string>; | Added|
323| ohos.bluetooth | AdvertiseSetting | connectable?: boolean; | Added|
324| ohos.bluetooth | AdvertiseSetting | txPower?: number; | Added|
325| ohos.bluetooth | AdvertiseSetting | interval?: number; | Added|
326| ohos.bluetooth | ScanResult | data: ArrayBuffer; | Added|
327| ohos.bluetooth | ScanResult | rssi: number; | Added|
328| ohos.bluetooth | ScanResult | deviceId: string; | Added|
329| ohos.bluetooth | BLEConnectChangedState | state: ProfileConnectionState; | Added|
330| ohos.bluetooth | BLEConnectChangedState | deviceId: string; | Added|
331| ohos.bluetooth | ServerResponse | value: ArrayBuffer; | Added|
332| ohos.bluetooth | ServerResponse | offset: number; | Added|
333| ohos.bluetooth | ServerResponse | status: number; | Added|
334| ohos.bluetooth | ServerResponse | transId: number; | Added|
335| ohos.bluetooth | ServerResponse | deviceId: string; | Added|
336| ohos.bluetooth | DescriptorWriteReq | serviceUuid: string; | Added|
337| ohos.bluetooth | DescriptorWriteReq | characteristicUuid: string; | Added|
338| ohos.bluetooth | DescriptorWriteReq | descriptorUuid: string; | Added|
339| ohos.bluetooth | DescriptorWriteReq | value: ArrayBuffer; | Added|
340| ohos.bluetooth | DescriptorWriteReq | needRsp: boolean; | Added|
341| ohos.bluetooth | DescriptorWriteReq | isPrep: boolean; | Added|
342| ohos.bluetooth | DescriptorWriteReq | offset: number; | Added|
343| ohos.bluetooth | DescriptorWriteReq | transId: number; | Added|
344| ohos.bluetooth | DescriptorWriteReq | deviceId: string; | Added|
345| ohos.bluetooth | DescriptorReadReq | serviceUuid: string; | Added|
346| ohos.bluetooth | DescriptorReadReq | characteristicUuid: string; | Added|
347| ohos.bluetooth | DescriptorReadReq | descriptorUuid: string; | Added|
348| ohos.bluetooth | DescriptorReadReq | offset: number; | Added|
349| ohos.bluetooth | DescriptorReadReq | transId: number; | Added|
350| ohos.bluetooth | DescriptorReadReq | deviceId: string; | Added|
351| ohos.bluetooth | CharacteristicWriteReq | serviceUuid: string; | Added|
352| ohos.bluetooth | CharacteristicWriteReq | characteristicUuid: string; | Added|
353| ohos.bluetooth | CharacteristicWriteReq | value: ArrayBuffer; | Added|
354| ohos.bluetooth | CharacteristicWriteReq | needRsp: boolean; | Added|
355| ohos.bluetooth | CharacteristicWriteReq | isPrep: boolean; | Added|
356| ohos.bluetooth | CharacteristicWriteReq | offset: number; | Added|
357| ohos.bluetooth | CharacteristicWriteReq | transId: number; | Added|
358| ohos.bluetooth | CharacteristicWriteReq | deviceId: string; | Added|
359| ohos.bluetooth | CharacteristicReadReq | serviceUuid: string; | Added|
360| ohos.bluetooth | CharacteristicReadReq | characteristicUuid: string; | Added|
361| ohos.bluetooth | CharacteristicReadReq | offset: number; | Added|
362| ohos.bluetooth | CharacteristicReadReq | transId: number; | Added|
363| ohos.bluetooth | CharacteristicReadReq | deviceId: string; | Added|
364| ohos.bluetooth | NotifyCharacteristic | confirm: boolean; | Added|
365| ohos.bluetooth | NotifyCharacteristic | characteristicValue: ArrayBuffer; | Added|
366| ohos.bluetooth | NotifyCharacteristic | characteristicUuid: string; | Added|
367| ohos.bluetooth | NotifyCharacteristic | serviceUuid: string; | Added|
368| ohos.bluetooth | BLEDescriptor | descriptorValue: ArrayBuffer; | Added|
369| ohos.bluetooth | BLEDescriptor | descriptorUuid: string; | Added|
370| ohos.bluetooth | BLEDescriptor | characteristicUuid: string; | Added|
371| ohos.bluetooth | BLEDescriptor | serviceUuid: string; | Added|
372| ohos.bluetooth | BLECharacteristic | descriptors: Array\<BLEDescriptor>; | Added|
373| ohos.bluetooth | BLECharacteristic | characteristicValue: ArrayBuffer; | Added|
374| ohos.bluetooth | BLECharacteristic | characteristicUuid: string; | Added|
375| ohos.bluetooth | BLECharacteristic | serviceUuid: string; | Added|
376| ohos.bluetooth | GattService | includeServices?: Array\<GattService>; | Added|
377| ohos.bluetooth | GattService | characteristics: Array\<BLECharacteristic>; | Added|
378| ohos.bluetooth | GattService | isPrimary: boolean; | Added|
379| ohos.bluetooth | GattService | serviceUuid: string; | Added|
380| ohos.bluetooth | GattClientDevice | off(type: "BLEConnectionStateChange", callback?: Callback\<BLEConnectChangedState>): void; | Added|
381| ohos.bluetooth | GattClientDevice | on(type: "BLEConnectionStateChange", callback: Callback\<BLEConnectChangedState>): void; | Added|
382| ohos.bluetooth | GattClientDevice | off(type: "BLECharacteristicChange", callback?: Callback\<BLECharacteristic>): void; | Added|
383| ohos.bluetooth | GattClientDevice | on(type: "BLECharacteristicChange", callback: Callback\<BLECharacteristic>): void; | Added|
384| ohos.bluetooth | GattClientDevice | setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean; | Added|
385| ohos.bluetooth | GattClientDevice | setBLEMtuSize(mtu: number): boolean; | Added|
386| ohos.bluetooth | GattClientDevice | getRssiValue(callback: AsyncCallback\<number>): void;<br>getRssiValue(): Promise\<number>; | Added|
387| ohos.bluetooth | GattClientDevice | writeDescriptorValue(descriptor: BLEDescriptor): boolean; | Added|
388| ohos.bluetooth | GattClientDevice | writeCharacteristicValue(characteristic: BLECharacteristic): boolean; | Added|
389| ohos.bluetooth | GattClientDevice | readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback\<BLEDescriptor>): void;<br>readDescriptorValue(descriptor: BLEDescriptor): Promise\<BLEDescriptor>; | Added|
390| ohos.bluetooth | GattClientDevice | readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback\<BLECharacteristic>): void;<br>readCharacteristicValue(characteristic: BLECharacteristic): Promise\<BLECharacteristic>; | Added|
391| ohos.bluetooth | GattClientDevice | getServices(callback: AsyncCallback\<Array\<GattService>>): void;<br>getServices(): Promise\<Array\<GattService>>; | Added|
392| ohos.bluetooth | GattClientDevice | getDeviceName(callback: AsyncCallback\<string>): void;<br>getDeviceName(): Promise\<string>; | Added|
393| ohos.bluetooth | GattClientDevice | close(): boolean; | Added|
394| ohos.bluetooth | GattClientDevice | disconnect(): boolean; | Added|
395| ohos.bluetooth | GattClientDevice | connect(): boolean; | Added|
396| ohos.bluetooth | GattServer | off(type: "connectStateChange", callback?: Callback\<BLEConnectChangedState>): void; | Added|
397| ohos.bluetooth | GattServer | on(type: "connectStateChange", callback: Callback\<BLEConnectChangedState>): void; | Added|
398| ohos.bluetooth | GattServer | off(type: "descriptorWrite", callback?: Callback\<DescriptorWriteReq>): void; | Added|
399| ohos.bluetooth | GattServer | on(type: "descriptorWrite", callback: Callback\<DescriptorWriteReq>): void; | Added|
400| ohos.bluetooth | GattServer | off(type: "descriptorRead", callback?: Callback\<DescriptorReadReq>): void; | Added|
401| ohos.bluetooth | GattServer | on(type: "descriptorRead", callback: Callback\<DescriptorReadReq>): void; | Added|
402| ohos.bluetooth | GattServer | off(type: "characteristicWrite", callback?: Callback\<CharacteristicWriteReq>): void; | Added|
403| ohos.bluetooth | GattServer | on(type: "characteristicWrite", callback: Callback\<CharacteristicWriteReq>): void; | Added|
404| ohos.bluetooth | GattServer | off(type: "characteristicRead", callback?: Callback\<CharacteristicReadReq>): void; | Added|
405| ohos.bluetooth | GattServer | on(type: "characteristicRead", callback: Callback\<CharacteristicReadReq>): void; | Added|
406| ohos.bluetooth | GattServer | sendResponse(serverResponse: ServerResponse): boolean; | Added|
407| ohos.bluetooth | GattServer | notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean; | Added|
408| ohos.bluetooth | GattServer | close(): void; | Added|
409| ohos.bluetooth | GattServer | removeService(serviceUuid: string): boolean; | Added|
410| ohos.bluetooth | GattServer | addService(service: GattService): boolean; | Added|
411| ohos.bluetooth | GattServer | stopAdvertising(): void; | Added|
412| ohos.bluetooth | GattServer | startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void; | Added|
413| ohos.bluetooth | BLE | off(type: "BLEDeviceFind", callback?: Callback\<Array\<ScanResult>>): void; | Added|
414| ohos.bluetooth | BLE | on(type: "BLEDeviceFind", callback: Callback\<Array\<ScanResult>>): void; | Added|
415| ohos.bluetooth | BLE | stopBLEScan(): void; | Added|
416| ohos.bluetooth | BLE | startBLEScan(filters: Array\<ScanFilter>, options?: ScanOptions): void; | Added|
417| ohos.bluetooth | BLE | getConnectedBLEDevices(): Array\<string>; | Added|
418| ohos.bluetooth | BLE | createGattClientDevice(deviceId: string): GattClientDevice; | Added|
419| ohos.bluetooth | BLE | createGattServer(): GattServer; | Added|
420| ohos.bluetooth | HandsFreeAudioGatewayProfile | off(type: "connectionStateChange", callback?: Callback\<StateChangeParam>): void; | Added|
421| ohos.bluetooth | HandsFreeAudioGatewayProfile | on(type: "connectionStateChange", callback: Callback\<StateChangeParam>): void; | Added|
422| ohos.bluetooth | HandsFreeAudioGatewayProfile | disconnect(device: string): boolean; | Added|
423| ohos.bluetooth | HandsFreeAudioGatewayProfile | connect(device: string): boolean; | Added|
424| ohos.bluetooth | A2dpSourceProfile | getPlayingState(device: string): PlayingState; | Added|
425| ohos.bluetooth | A2dpSourceProfile | off(type: "connectionStateChange", callback?: Callback\<StateChangeParam>): void; | Added|
426| ohos.bluetooth | A2dpSourceProfile | on(type: "connectionStateChange", callback: Callback\<StateChangeParam>): void; | Added|
427| ohos.bluetooth | A2dpSourceProfile | disconnect(device: string): boolean; | Added|
428| ohos.bluetooth | A2dpSourceProfile | connect(device: string): boolean; | Added|
429| ohos.bluetooth | BaseProfile | getDeviceState(device: string): ProfileConnectionState; | Added|
430| ohos.bluetooth | BaseProfile | getConnectionDevices(): Array\<string>; | Added|
431| ohos.bluetooth | bluetooth | getProfile(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile; | Added|
432| ohos.bluetooth | bluetooth | off(type: "sppRead", clientSocket: number, callback?: Callback\<ArrayBuffer>): void; | Added|
433| ohos.bluetooth | bluetooth | on(type: "sppRead", clientSocket: number, callback: Callback\<ArrayBuffer>): void; | Added|
434| ohos.bluetooth | bluetooth | sppWrite(clientSocket: number, data: ArrayBuffer): boolean; | Added|
435| ohos.bluetooth | bluetooth | sppCloseClientSocket(socket: number): void; | Added|
436| ohos.bluetooth | bluetooth | sppCloseServerSocket(socket: number): void; | Added|
437| ohos.bluetooth | bluetooth | sppConnect(device: string, option: SppOption, callback: AsyncCallback\<number>): void; | Added|
438| ohos.bluetooth | bluetooth | sppAccept(serverSocket: number, callback: AsyncCallback\<number>): void; | Added|
439| ohos.bluetooth | bluetooth | sppListen(name: string, option: SppOption, callback: AsyncCallback\<number>): void; | Added|
440| ohos.bluetooth | bluetooth | off(type: "stateChange", callback?: Callback\<BluetoothState>): void; | Added|
441| ohos.bluetooth | bluetooth | on(type: "stateChange", callback: Callback\<BluetoothState>): void; | Added|
442| ohos.bluetooth | bluetooth | off(type: "pinRequired", callback?: Callback\<PinRequiredParam>): void; | Added|
443| ohos.bluetooth | bluetooth | on(type: "pinRequired", callback: Callback\<PinRequiredParam>): void; | Added|
444| ohos.bluetooth | bluetooth | off(type: "bondStateChange", callback?: Callback\<BondStateParam>): void; | Added|
445| ohos.bluetooth | bluetooth | on(type: "bondStateChange", callback: Callback\<BondStateParam>): void; | Added|
446| ohos.bluetooth | bluetooth | off(type: "bluetoothDeviceFind", callback?: Callback\<Array\<string>>): void; | Added|
447| ohos.bluetooth | bluetooth | on(type: "bluetoothDeviceFind", callback: Callback\<Array\<string>>): void; | Added|
448| ohos.bluetooth | bluetooth | stopBluetoothDiscovery(): boolean; | Added|
449| ohos.bluetooth | bluetooth | startBluetoothDiscovery(): boolean; | Added|
450| ohos.bluetooth | bluetooth | getBluetoothScanMode(): ScanMode; | Added|
451| ohos.bluetooth | bluetooth | setBluetoothScanMode(mode: ScanMode, duration: number): boolean; | Added|
452| ohos.bluetooth | bluetooth | setLocalName(name: string): boolean; | Added|
453| ohos.bluetooth | bluetooth | setDevicePairingConfirmation(device: string, accept: boolean): boolean; | Added|
454| ohos.bluetooth | bluetooth | getProfileConnState(profileId: ProfileId): ProfileConnectionState; | Added|
455| ohos.bluetooth | bluetooth | getPairedDevices(): Array\<string>; | Added|
456| ohos.bluetooth | bluetooth | getLocalName(): string; | Added|
457| ohos.bluetooth | bluetooth | disableBluetooth(): boolean; | Added|
458| ohos.bluetooth | bluetooth | enableBluetooth(): boolean; | Added|
459| ohos.bluetooth | bluetooth | getRemoteDeviceClass(deviceId: string): DeviceClass; | Added|
460| ohos.bluetooth | bluetooth | getRemoteDeviceName(deviceId: string): string; | Added|
461| ohos.bluetooth | bluetooth | pairDevice(deviceId: string): boolean; | Added|
462| ohos.bluetooth | bluetooth | getBtConnectionState(): ProfileConnectionState; | Added|
463| ohos.bluetooth | bluetooth | getState(): BluetoothState; | Added|
464