/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/controller/ |
H A D | BluetoothDeviceController.ts | 16 import BluetoothModel, { BluetoothDevice, BondState, DeviceState } from '../model/BluetoothModel'; 274 if(data.bondState !== BondState.BOND_STATE_BONDING) { 278 if(data.bondState == BondState.BOND_STATE_BONDING) { 282 } else if(data.bondState == BondState.BOND_STATE_INVALID) { 288 } else if(data.bondState == BondState.BOND_STATE_BONDED) {
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/connection/ |
H A D | napi_bluetooth_connection.cpp | 581 int pairState = static_cast<int>(BondState::BOND_STATE_INVALID); in GetPairState() 818 …SetNamedPropertyByInteger(env, bondState, static_cast<int>(BondState::BOND_STATE_INVALID), "BOND_S… in BondStateInit() 819 …SetNamedPropertyByInteger(env, bondState, static_cast<int>(BondState::BOND_STATE_BONDING), "BOND_S… in BondStateInit() 820 …SetNamedPropertyByInteger(env, bondState, static_cast<int>(BondState::BOND_STATE_BONDED), "BOND_ST… in BondStateInit() 931 bondStatus = static_cast<int>(BondState::BOND_STATE_INVALID); in DealPairStatus() 934 bondStatus = static_cast<int>(BondState::BOND_STATE_BONDING); in DealPairStatus() 937 bondStatus = static_cast<int>(BondState::BOND_STATE_BONDED); in DealPairStatus()
|
H A D | napi_bluetooth_connection.h | 25 enum class BondState { BOND_STATE_INVALID = 0, BOND_STATE_BONDING = 1, BOND_STATE_BONDED = 2 }; enum
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | how-to-connect-to-bluetooth.md | 387 if (data.state === bluetooth.BondState.BOND_STATE_BONDED) { 393 if (data.state === bluetooth.BondState.BOND_STATE_INVALID) {
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/ |
H A D | js-apis-bluetooth-connection.md | 461 getPairState(deviceId: string): BondState 481 | [BondState](#bondstate) | 表示设备的蓝牙配对状态。 | 501 let res: connection.BondState = connection.getPairState("XX:XX:XX:XX:XX:XX"); 1406 | state | BondState | 是 | 否 | 表示配对设备的状态。 | 1481 ## BondState section
|
H A D | js-apis-bluetooth.md | 3264 ## BondState<sup>(deprecated)</sup> 3269 > 从API version 8开始支持,从API version 9开始废弃。建议使用[bluetoothManager.BondState](js-apis-bluetoothManager.m… 3696 | state | BondState | 是 | 否 | 表示配对设备的状态。 |
|
H A D | js-apis-bluetoothManager.md | 4596 ## BondState<sup>(deprecated)</sup> 4601 > 从API version 9开始支持,从API version 10开始废弃。建议使用[connection.BondState](js-apis-bluetooth-connection.md… 5036 | state | BondState | 是 | 否 | 表示配对设备的状态。 |
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/ |
H A D | js-apidiff-communicate.md | 274 | ohos.bluetooth | BondState | BOND_STATE_BONDED = 2 | 新增 | 275 | ohos.bluetooth | BondState | BOND_STATE_BONDING = 1 | 新增 | 276 | ohos.bluetooth | BondState | BOND_STATE_INVALID = 0 | 新增 | 300 | ohos.bluetooth | BondStateParam | state: BondState; | 新增 |
|
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/ |
H A D | js-apidiff-communicate.md | 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| 300 | ohos.bluetooth | BondStateParam | state: BondState; | Added|
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/model/ |
H A D | BluetoothModelManager.ts | 37 export enum BondState {
|
H A D | BluetoothModel.ts | 37 export enum BondState {
|
/ohos5.0/docs/en/application-dev/reference/apis-connectivity-kit/ |
H A D | js-apis-bluetooth-connection.md | 396 getPairState(deviceId: string): BondState 416 | [BondState](#bondstate) | Bluetooth pairing state obtained.| 436 let res: connection.BondState = connection.getPairState("XX:XX:XX:XX:XX:XX"); 1341 | state | BondState | Yes | No | State of the device.| 1416 ## BondState section
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/doc/ApiDoc/BrManagerDoc/ |
H A D | 经典蓝牙Manager使用说明文档.md | 243 >| state | BondState | 是 | 否 | 表示配对设备的状态。 |
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/ |
H A D | js-apidiff-communication.md | 275 |新增|NA|类名:BondStateParam;<br>方法or属性:state: BondState;|@ohos.bluetooth.connection.d.ts| 289 |新增|NA|类名:BondState;<br>方法or属性:BOND_STATE_INVALID = 0|@ohos.bluetooth.connection.d.ts| 290 |新增|NA|类名:BondState;<br>方法or属性:BOND_STATE_BONDING = 1|@ohos.bluetooth.connection.d.ts| 291 |新增|NA|类名:BondState;<br>方法or属性:BOND_STATE_BONDED = 2|@ohos.bluetooth.connection.d.ts| 693 …弃版本有变化|类名:BondStateParam;<br>方法or属性:state: BondState;<br>旧版本信息:|类名:BondStateParam;<br>方法or属性:state… 724 …BondState;<br>方法or属性:enum BondState<br>旧版本信息:|类名:BondState;<br>方法or属性:enum BondState<br>新版本信息:10<b… 725 …BondState;<br>方法or属性:BOND_STATE_INVALID = 0<br>旧版本信息:|类名:BondState;<br>方法or属性:BOND_STATE_INVALID =… 726 …BondState;<br>方法or属性:BOND_STATE_BONDING = 1<br>旧版本信息:|类名:BondState;<br>方法or属性:BOND_STATE_BONDING =… 727 …BondState;<br>方法or属性:BOND_STATE_BONDED = 2<br>旧版本信息:|类名:BondState;<br>方法or属性:BOND_STATE_BONDED = 2…
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/ |
H A D | changelogs-bluetooth.md | 154 | bluetooth | BondState | BondState | API9接口变更,迁移到@ohos.bluetoothManager.d.ts |
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/ |
H A D | js-apidiff-communication.md | 219 |新增|NA|模块名: ohos.bluetoothManager<br>类名: BondStateParam<br>方法 or 属性: state: BondState;|@ohos.blueto… 252 |新增|NA|模块名: ohos.bluetoothManager<br>类名: BondState|@ohos.bluetoothManager.d.ts| 253 |新增|NA|模块名: ohos.bluetoothManager<br>类名: BondState<br>方法 or 属性: BOND_STATE_INVALID = 0|@ohos.blueto… 254 |新增|NA|模块名: ohos.bluetoothManager<br>类名: BondState<br>方法 or 属性: BOND_STATE_BONDING = 1|@ohos.blueto… 255 |新增|NA|模块名: ohos.bluetoothManager<br>类名: BondState<br>方法 or 属性: BOND_STATE_BONDED = 2|@ohos.bluetoo… 528 |废弃版本有变化|类名:BondState<br>废弃版本:N/A|类名:BondState<br>废弃版本:9<br>代替接口:ohos.bluetoothManager/bluetoothMan…
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/ |
H A D | changelogs-bluetooth.md | 147 |BondState | [BondState](../../../application-dev/reference/apis/js-apis-bluetooth-connection.md#bo…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-communication.md | 268 |新增|NA|类名:BondStateParam;<br>方法or属性:state: BondState;|@ohos.bluetoothManager.d.ts| 292 |新增|NA|类名:BondState;<br>方法or属性:BOND_STATE_INVALID = 0|@ohos.bluetoothManager.d.ts| 293 |新增|NA|类名:BondState;<br>方法or属性:BOND_STATE_BONDING = 1|@ohos.bluetoothManager.d.ts| 294 |新增|NA|类名:BondState;<br>方法or属性:BOND_STATE_BONDED = 2|@ohos.bluetoothManager.d.ts| 1163 …弃版本有变化|类名:BondStateParam;<br>方法or属性:state: BondState;<br>旧版本信息:|类名:BondStateParam;<br>方法or属性:state… 1193 …BondState;<br>方法or属性:enum BondState<br>旧版本信息:|类名:BondState;<br>方法or属性:enum BondState<br>新版本信息:9<br… 1194 …BondState;<br>方法or属性:BOND_STATE_INVALID = 0<br>旧版本信息:|类名:BondState;<br>方法or属性:BOND_STATE_INVALID =… 1195 …BondState;<br>方法or属性:BOND_STATE_BONDING = 1<br>旧版本信息:|类名:BondState;<br>方法or属性:BOND_STATE_BONDING =… 1196 …BondState;<br>方法or属性:BOND_STATE_BONDED = 2<br>旧版本信息:|类名:BondState;<br>方法or属性:BOND_STATE_BONDED = 2…
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.1/ |
H A D | changelogs-bluetooth.md | 147 |BondState | [BondState](../../../application-dev/reference/apis/js-apis-bluetooth-connection.md#bo…
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v4.0-beta2/ |
H A D | js-apidiff-communication.md | 275 |Added|NA|Class name: BondStateParam;<br>Method or attribute name: state: BondState;|@ohos.bluetoot… 289 |Added|NA|Class name: BondState;<br>Method or attribute name: BOND_STATE_INVALID = 0|@ohos.bluetoot… 290 |Added|NA|Class name: BondState;<br>Method or attribute name: BOND_STATE_BONDING = 1|@ohos.bluetoot… 291 |Added|NA|Class name: BondState;<br>Method or attribute name: BOND_STATE_BONDED = 2|@ohos.bluetooth… 693 …ribute name: state: BondState;<br>Old version information: |Class name: BondStateParam;<br>Method … 724 …BondState;<br>Method or attribute name: enum BondState<br>Old version information: |Class name: Bo… 725 …BondState;<br>Method or attribute name: BOND_STATE_INVALID = 0<br>Old version information: |Class … 726 …BondState;<br>Method or attribute name: BOND_STATE_BONDING = 1<br>Old version information: |Class … 727 …BondState;<br>Method or attribute name: BOND_STATE_BONDED = 2<br>Old version information: |Class n…
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.2.1/ |
H A D | changelogs-bluetooth.md | 154 | bluetooth | BondState | BondState | Migrated this API in API version 9 to **@ohos.bluetoothManage…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-communication.md | 268 |新增|NA|类名:BondStateParam;<br>方法or属性:state: BondState;|@ohos.bluetooth.connection.d.ts| 282 |新增|NA|类名:BondState;<br>方法or属性:BOND_STATE_INVALID = 0|@ohos.bluetooth.connection.d.ts| 283 |新增|NA|类名:BondState;<br>方法or属性:BOND_STATE_BONDING = 1|@ohos.bluetooth.connection.d.ts| 284 |新增|NA|类名:BondState;<br>方法or属性:BOND_STATE_BONDED = 2|@ohos.bluetooth.connection.d.ts| 942 …弃版本有变化|类名:BondStateParam;<br>方法or属性:state: BondState;<br>旧版本信息:|类名:BondStateParam;<br>方法or属性:state… 973 …BondState;<br>方法or属性:enum BondState<br>旧版本信息:|类名:BondState;<br>方法or属性:enum BondState<br>新版本信息:10<b… 974 …BondState;<br>方法or属性:BOND_STATE_INVALID = 0<br>旧版本信息:|类名:BondState;<br>方法or属性:BOND_STATE_INVALID =… 975 …BondState;<br>方法or属性:BOND_STATE_BONDING = 1<br>旧版本信息:|类名:BondState;<br>方法or属性:BOND_STATE_BONDING =… 976 …BondState;<br>方法or属性:BOND_STATE_BONDED = 2<br>旧版本信息:|类名:BondState;<br>方法or属性:BOND_STATE_BONDED = 2…
|
/ohos5.0/docs/en/release-notes/api-diff/Beta5-to-v3.2-Release/ |
H A D | js-apidiff-communication.md | 219 …nager<br>Class name: BondStateParam<br>Method or attribute name: state: BondState;|@ohos.bluetooth… 252 |Added|NA|Module name: ohos.bluetoothManager<br>Class name: BondState|@ohos.bluetoothManager.d.ts| 253 |Added|NA|Module name: ohos.bluetoothManager<br>Class name: BondState<br>Method or attribute name: … 254 |Added|NA|Module name: ohos.bluetoothManager<br>Class name: BondState<br>Method or attribute name: … 255 |Added|NA|Module name: ohos.bluetoothManager<br>Class name: BondState<br>Method or attribute name: … 528 … BondState<br>Deprecated version: N/A|Class name: BondState<br>Deprecated version: 9<br>Substitute…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-communication.md | 268 |Added|NA|Class name: BondStateParam;<br>Method or attribute name: state: BondState;|@ohos.bluetoot… 292 |Added|NA|Class name: BondState;<br>Method or attribute name: BOND_STATE_INVALID = 0|@ohos.bluetoot… 293 |Added|NA|Class name: BondState;<br>Method or attribute name: BOND_STATE_BONDING = 1|@ohos.bluetoot… 294 |Added|NA|Class name: BondState;<br>Method or attribute name: BOND_STATE_BONDED = 2|@ohos.bluetooth… 1163 …or attribute name: state: BondState;<br>Old version: |Class name: BondStateParam;<br>Method or att… 1193 …BondState;<br>Method or attribute name: enum BondState<br>Old version: |Class name: BondState;<br>… 1194 …BondState;<br>Method or attribute name: BOND_STATE_INVALID = 0<br>Old version: |Class name: BondSt… 1195 …BondState;<br>Method or attribute name: BOND_STATE_BONDING = 1<br>Old version: |Class name: BondSt… 1196 …BondState;<br>Method or attribute name: BOND_STATE_BONDED = 2<br>Old version: |Class name: BondSta…
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v3.2-Release/ |
H A D | js-apidiff-communication.md | 268 |Added|NA|Class name: BondStateParam;<br>Method or attribute name: state: BondState;|@ohos.bluetoot… 282 |Added|NA|Class name: BondState;<br>Method or attribute name: BOND_STATE_INVALID = 0|@ohos.bluetoot… 283 |Added|NA|Class name: BondState;<br>Method or attribute name: BOND_STATE_BONDING = 1|@ohos.bluetoot… 284 |Added|NA|Class name: BondState;<br>Method or attribute name: BOND_STATE_BONDED = 2|@ohos.bluetooth… 942 …ribute name: state: BondState;<br>Old version information: |Class name: BondStateParam;<br>Method … 973 …BondState;<br>Method or attribute name: enum BondState<br>Old version information: |Class name: Bo… 974 …BondState;<br>Method or attribute name: BOND_STATE_INVALID = 0<br>Old version information: |Class … 975 …BondState;<br>Method or attribute name: BOND_STATE_BONDING = 1<br>Old version information: |Class … 976 …BondState;<br>Method or attribute name: BOND_STATE_BONDED = 2<br>Old version information: |Class n…
|