161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (C) 2022-2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ConnectivityKit
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ciimport type { AsyncCallback, Callback } from './@ohos.base';
2261847f8eSopenharmony_ci
2361847f8eSopenharmony_ci/**
2461847f8eSopenharmony_ci * Provides methods to operate or manage Bluetooth.
2561847f8eSopenharmony_ci *
2661847f8eSopenharmony_ci * @namespace bluetoothManager
2761847f8eSopenharmony_ci * @syscap SystemCapability.Communication.Bluetooth.Core
2861847f8eSopenharmony_ci * @since 9
2961847f8eSopenharmony_ci * @deprecated since 10
3061847f8eSopenharmony_ci */
3161847f8eSopenharmony_cideclare namespace bluetoothManager {
3261847f8eSopenharmony_ci  /**
3361847f8eSopenharmony_ci   * Obtains the Bluetooth status of a device.
3461847f8eSopenharmony_ci   *
3561847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
3661847f8eSopenharmony_ci   * @returns { BluetoothState } Returns the Bluetooth status, which can be {@link BluetoothState#STATE_OFF},
3761847f8eSopenharmony_ci   * {@link BluetoothState#STATE_TURNING_ON}, {@link BluetoothState#STATE_ON}, {@link BluetoothState#STATE_TURNING_OFF},
3861847f8eSopenharmony_ci   * {@link BluetoothState#STATE_BLE_TURNING_ON}, {@link BluetoothState#STATE_BLE_ON},
3961847f8eSopenharmony_ci   * or {@link BluetoothState#STATE_BLE_TURNING_OFF}.
4061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
4161847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
4261847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
4361847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
4461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
4561847f8eSopenharmony_ci   * @since 9
4661847f8eSopenharmony_ci   * @deprecated since 10
4761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access#getState
4861847f8eSopenharmony_ci   */
4961847f8eSopenharmony_ci  /**
5061847f8eSopenharmony_ci   * Obtains the Bluetooth status of a device.
5161847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
5261847f8eSopenharmony_ci   *
5361847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
5461847f8eSopenharmony_ci   * @returns { BluetoothState } Returns the Bluetooth status, which can be {@link BluetoothState#STATE_OFF},
5561847f8eSopenharmony_ci   * {@link BluetoothState#STATE_TURNING_ON}, {@link BluetoothState#STATE_ON}, {@link BluetoothState#STATE_TURNING_OFF},
5661847f8eSopenharmony_ci   * {@link BluetoothState#STATE_BLE_TURNING_ON}, {@link BluetoothState#STATE_BLE_ON},
5761847f8eSopenharmony_ci   * or {@link BluetoothState#STATE_BLE_TURNING_OFF}.
5861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
5961847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
6061847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
6161847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
6261847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
6361847f8eSopenharmony_ci   * @since 10
6461847f8eSopenharmony_ci   * @deprecated since 10
6561847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access#getState
6661847f8eSopenharmony_ci   */
6761847f8eSopenharmony_ci  function getState(): BluetoothState;
6861847f8eSopenharmony_ci
6961847f8eSopenharmony_ci  /**
7061847f8eSopenharmony_ci   * Get the local device connection state to any profile of any remote device.
7161847f8eSopenharmony_ci   *
7261847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
7361847f8eSopenharmony_ci   * @returns { ProfileConnectionState } One of {@link ProfileConnectionState#STATE_DISCONNECTED},
7461847f8eSopenharmony_ci   * {@link ProfileConnectionState#STATE_CONNECTING}, {@link ProfileConnectionState#STATE_CONNECTED},
7561847f8eSopenharmony_ci   * {@link ProfileConnectionState#STATE_DISCONNECTING}.
7661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
7761847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
7861847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
7961847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
8061847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
8161847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
8261847f8eSopenharmony_ci   * @since 9
8361847f8eSopenharmony_ci   * @deprecated since 10
8461847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getProfileConnectionState
8561847f8eSopenharmony_ci   */
8661847f8eSopenharmony_ci  /**
8761847f8eSopenharmony_ci   * Get the local device connection state to any profile of any remote device.
8861847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
8961847f8eSopenharmony_ci   *
9061847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
9161847f8eSopenharmony_ci   * @returns { ProfileConnectionState } One of {@link ProfileConnectionState#STATE_DISCONNECTED},
9261847f8eSopenharmony_ci   * {@link ProfileConnectionState#STATE_CONNECTING}, {@link ProfileConnectionState#STATE_CONNECTED},
9361847f8eSopenharmony_ci   * {@link ProfileConnectionState#STATE_DISCONNECTING}.
9461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
9561847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
9661847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
9761847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
9861847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
9961847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
10061847f8eSopenharmony_ci   * @since 10
10161847f8eSopenharmony_ci   * @deprecated since 10
10261847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getProfileConnectionState
10361847f8eSopenharmony_ci   */
10461847f8eSopenharmony_ci  function getBtConnectionState(): ProfileConnectionState;
10561847f8eSopenharmony_ci
10661847f8eSopenharmony_ci  /**
10761847f8eSopenharmony_ci   * Starts pairing with a remote Bluetooth device.
10861847f8eSopenharmony_ci   *
10961847f8eSopenharmony_ci   * @permission ohos.permission.DISCOVER_BLUETOOTH
11061847f8eSopenharmony_ci   * @param { string } deviceId - The address of the remote device to pair.
11161847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
11261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
11361847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
11461847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
11561847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
11661847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
11761847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
11861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
11961847f8eSopenharmony_ci   * @since 9
12061847f8eSopenharmony_ci   * @deprecated since 10
12161847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#pairDevice
12261847f8eSopenharmony_ci   */
12361847f8eSopenharmony_ci  /**
12461847f8eSopenharmony_ci   * Starts pairing with a remote Bluetooth device.
12561847f8eSopenharmony_ci   * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
12661847f8eSopenharmony_ci   *
12761847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
12861847f8eSopenharmony_ci   * @param { string } deviceId - The address of the remote device to pair.
12961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
13061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
13161847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
13261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
13361847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
13461847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
13561847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
13661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
13761847f8eSopenharmony_ci   * @since 10
13861847f8eSopenharmony_ci   * @deprecated since 10
13961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#pairDevice
14061847f8eSopenharmony_ci   */
14161847f8eSopenharmony_ci  function pairDevice(deviceId: string): void;
14261847f8eSopenharmony_ci
14361847f8eSopenharmony_ci  /**
14461847f8eSopenharmony_ci   * Remove a paired remote device.
14561847f8eSopenharmony_ci   *
14661847f8eSopenharmony_ci   * @permission ohos.permission.DISCOVER_BLUETOOTH
14761847f8eSopenharmony_ci   * @param { string } deviceId - The address of the remote device to be removed.
14861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
14961847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
15061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
15161847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
15261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
15361847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
15461847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
15561847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
15661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
15761847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
15861847f8eSopenharmony_ci   * @since 9
15961847f8eSopenharmony_ci   * @deprecated since 10
16061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#cancelPairedDevice
16161847f8eSopenharmony_ci   */
16261847f8eSopenharmony_ci  /**
16361847f8eSopenharmony_ci   * Remove a paired remote device.
16461847f8eSopenharmony_ci   * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
16561847f8eSopenharmony_ci   *
16661847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
16761847f8eSopenharmony_ci   * @param { string } deviceId - The address of the remote device to be removed.
16861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
16961847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
17061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
17161847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
17261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
17361847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
17461847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
17561847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
17661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
17761847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
17861847f8eSopenharmony_ci   * @since 10
17961847f8eSopenharmony_ci   * @deprecated since 10
18061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#cancelPairedDevice
18161847f8eSopenharmony_ci   */
18261847f8eSopenharmony_ci  function cancelPairedDevice(deviceId: string): void;
18361847f8eSopenharmony_ci
18461847f8eSopenharmony_ci  /**
18561847f8eSopenharmony_ci   * Obtains the name of a peer Bluetooth device.
18661847f8eSopenharmony_ci   *
18761847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
18861847f8eSopenharmony_ci   * @param { string } deviceId - The address of the remote device.
18961847f8eSopenharmony_ci   * @returns { string } Returns the device name in character string format.
19061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
19161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
19261847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
19361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
19461847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
19561847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
19661847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
19761847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
19861847f8eSopenharmony_ci   * @since 9
19961847f8eSopenharmony_ci   * @deprecated since 10
20061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getRemoteDeviceName
20161847f8eSopenharmony_ci   */
20261847f8eSopenharmony_ci  /**
20361847f8eSopenharmony_ci   * Obtains the name of a peer Bluetooth device.
20461847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
20561847f8eSopenharmony_ci   *
20661847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
20761847f8eSopenharmony_ci   * @param { string } deviceId - The address of the remote device.
20861847f8eSopenharmony_ci   * @returns { string } Returns the device name in character string format.
20961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
21061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
21161847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
21261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
21361847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
21461847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
21561847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
21661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
21761847f8eSopenharmony_ci   * @since 10
21861847f8eSopenharmony_ci   * @deprecated since 10
21961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getRemoteDeviceName
22061847f8eSopenharmony_ci   */
22161847f8eSopenharmony_ci  function getRemoteDeviceName(deviceId: string): string;
22261847f8eSopenharmony_ci
22361847f8eSopenharmony_ci  /**
22461847f8eSopenharmony_ci   * Obtains the class of a peer Bluetooth device.
22561847f8eSopenharmony_ci   *
22661847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
22761847f8eSopenharmony_ci   * @param { string } deviceId - The address of the remote device.
22861847f8eSopenharmony_ci   * @returns { DeviceClass } The class of the remote device, {@link DeviceClass}.
22961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
23061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
23161847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
23261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
23361847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
23461847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
23561847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
23661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
23761847f8eSopenharmony_ci   * @since 9
23861847f8eSopenharmony_ci   * @deprecated since 10
23961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getRemoteDeviceClass
24061847f8eSopenharmony_ci   */
24161847f8eSopenharmony_ci  /**
24261847f8eSopenharmony_ci   * Obtains the class of a peer Bluetooth device.
24361847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
24461847f8eSopenharmony_ci   *
24561847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
24661847f8eSopenharmony_ci   * @param { string } deviceId - The address of the remote device.
24761847f8eSopenharmony_ci   * @returns { DeviceClass } The class of the remote device, {@link DeviceClass}.
24861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
24961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
25061847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
25161847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
25261847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
25361847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
25461847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
25561847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
25661847f8eSopenharmony_ci   * @since 10
25761847f8eSopenharmony_ci   * @deprecated since 10
25861847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getRemoteDeviceClass
25961847f8eSopenharmony_ci   */
26061847f8eSopenharmony_ci  function getRemoteDeviceClass(deviceId: string): DeviceClass;
26161847f8eSopenharmony_ci
26261847f8eSopenharmony_ci  /**
26361847f8eSopenharmony_ci   * Enables Bluetooth on a device.
26461847f8eSopenharmony_ci   *
26561847f8eSopenharmony_ci   * @permission ohos.permission.DISCOVER_BLUETOOTH
26661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
26761847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
26861847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
26961847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
27061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
27161847f8eSopenharmony_ci   * @since 9
27261847f8eSopenharmony_ci   * @deprecated since 10
27361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access#enableBluetooth
27461847f8eSopenharmony_ci   */
27561847f8eSopenharmony_ci  /**
27661847f8eSopenharmony_ci   * Enables Bluetooth on a device.
27761847f8eSopenharmony_ci   * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
27861847f8eSopenharmony_ci   *
27961847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
28061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
28161847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
28261847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
28361847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
28461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
28561847f8eSopenharmony_ci   * @since 10
28661847f8eSopenharmony_ci   * @deprecated since 10
28761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access#enableBluetooth
28861847f8eSopenharmony_ci   */
28961847f8eSopenharmony_ci  function enableBluetooth(): void;
29061847f8eSopenharmony_ci
29161847f8eSopenharmony_ci  /**
29261847f8eSopenharmony_ci   * Disables Bluetooth on a device.
29361847f8eSopenharmony_ci   *
29461847f8eSopenharmony_ci   * @permission ohos.permission.DISCOVER_BLUETOOTH
29561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
29661847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
29761847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
29861847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
29961847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
30061847f8eSopenharmony_ci   * @since 9
30161847f8eSopenharmony_ci   * @deprecated since 10
30261847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access#disableBluetooth
30361847f8eSopenharmony_ci   */
30461847f8eSopenharmony_ci  /**
30561847f8eSopenharmony_ci   * Disables Bluetooth on a device.
30661847f8eSopenharmony_ci   * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
30761847f8eSopenharmony_ci   *
30861847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
30961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
31061847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
31161847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
31261847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
31361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
31461847f8eSopenharmony_ci   * @since 10
31561847f8eSopenharmony_ci   * @deprecated since 10
31661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access#disableBluetooth
31761847f8eSopenharmony_ci   */
31861847f8eSopenharmony_ci  function disableBluetooth(): void;
31961847f8eSopenharmony_ci
32061847f8eSopenharmony_ci  /**
32161847f8eSopenharmony_ci   * Obtains the Bluetooth local name of a device.
32261847f8eSopenharmony_ci   *
32361847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
32461847f8eSopenharmony_ci   * @returns { string } Returns the name the device.
32561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
32661847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
32761847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
32861847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
32961847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
33061847f8eSopenharmony_ci   * @since 9
33161847f8eSopenharmony_ci   * @deprecated since 10
33261847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getLocalName
33361847f8eSopenharmony_ci   */
33461847f8eSopenharmony_ci  /**
33561847f8eSopenharmony_ci   * Obtains the Bluetooth local name of a device.
33661847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
33761847f8eSopenharmony_ci   *
33861847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
33961847f8eSopenharmony_ci   * @returns { string } Returns the name the device.
34061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
34161847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
34261847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
34361847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
34461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
34561847f8eSopenharmony_ci   * @since 10
34661847f8eSopenharmony_ci   * @deprecated since 10
34761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getLocalName
34861847f8eSopenharmony_ci   */
34961847f8eSopenharmony_ci  function getLocalName(): string;
35061847f8eSopenharmony_ci
35161847f8eSopenharmony_ci  /**
35261847f8eSopenharmony_ci   * Obtains the list of Bluetooth devices that have been paired with the current device.
35361847f8eSopenharmony_ci   *
35461847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
35561847f8eSopenharmony_ci   * @returns { Array<string> } Returns a list of paired Bluetooth devices's address.
35661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
35761847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
35861847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
35961847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
36061847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
36161847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
36261847f8eSopenharmony_ci   * @since 9
36361847f8eSopenharmony_ci   * @deprecated since 10
36461847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getPairedDevices
36561847f8eSopenharmony_ci   */
36661847f8eSopenharmony_ci  /**
36761847f8eSopenharmony_ci   * Obtains the list of Bluetooth devices that have been paired with the current device.
36861847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
36961847f8eSopenharmony_ci   *
37061847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
37161847f8eSopenharmony_ci   * @returns { Array<string> } Returns a list of paired Bluetooth devices's address.
37261847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
37361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
37461847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
37561847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
37661847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
37761847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
37861847f8eSopenharmony_ci   * @since 10
37961847f8eSopenharmony_ci   * @deprecated since 10
38061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getPairedDevices
38161847f8eSopenharmony_ci   */
38261847f8eSopenharmony_ci  function getPairedDevices(): Array<string>;
38361847f8eSopenharmony_ci
38461847f8eSopenharmony_ci  /**
38561847f8eSopenharmony_ci   * Obtains the connection state of profile.
38661847f8eSopenharmony_ci   *
38761847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
38861847f8eSopenharmony_ci   * @param { ProfileId } profileId - The profile id.
38961847f8eSopenharmony_ci   * @returns { ProfileConnectionState } Returns the connection state.
39061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
39161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
39261847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
39361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
39461847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
39561847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
39661847f8eSopenharmony_ci   * @throws { BusinessError } 2900004 - Profile not supported.
39761847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
39861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
39961847f8eSopenharmony_ci   * @since 9
40061847f8eSopenharmony_ci   * @deprecated since 10
40161847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getProfileConnectionState
40261847f8eSopenharmony_ci   */
40361847f8eSopenharmony_ci  /**
40461847f8eSopenharmony_ci   * Obtains the connection state of profile.
40561847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
40661847f8eSopenharmony_ci   *
40761847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
40861847f8eSopenharmony_ci   * @param { ProfileId } profileId - The profile id.
40961847f8eSopenharmony_ci   * @returns { ProfileConnectionState } Returns the connection state.
41061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
41161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
41261847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
41361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
41461847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
41561847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
41661847f8eSopenharmony_ci   * @throws { BusinessError } 2900004 - Profile not supported.
41761847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
41861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
41961847f8eSopenharmony_ci   * @since 10
42061847f8eSopenharmony_ci   * @deprecated since 10
42161847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getProfileConnectionState
42261847f8eSopenharmony_ci   */
42361847f8eSopenharmony_ci  function getProfileConnectionState(profileId: ProfileId): ProfileConnectionState;
42461847f8eSopenharmony_ci
42561847f8eSopenharmony_ci  /**
42661847f8eSopenharmony_ci   * Sets the confirmation of pairing with a certain device.
42761847f8eSopenharmony_ci   *
42861847f8eSopenharmony_ci   * @permission ohos.permission.MANAGE_BLUETOOTH
42961847f8eSopenharmony_ci   * @param { string } device - The address of the remote device.
43061847f8eSopenharmony_ci   * @param { boolean } accept - Indicates whether to accept the pairing request, {@code true} indicates accept or {@code false} otherwise.
43161847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
43261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
43361847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
43461847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
43561847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
43661847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
43761847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
43861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
43961847f8eSopenharmony_ci   * @since 9
44061847f8eSopenharmony_ci   * @deprecated since 10
44161847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#setDevicePairingConfirmation
44261847f8eSopenharmony_ci   */
44361847f8eSopenharmony_ci  /**
44461847f8eSopenharmony_ci   * Sets the confirmation of pairing with a certain device.
44561847f8eSopenharmony_ci   * The permission required by this interface is changed from MANAGE_BLUETOOTH to ACCESS_BLUETOOTH and MANAGE_BLUETOOTH.
44661847f8eSopenharmony_ci   *
44761847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH and ohos.permission.MANAGE_BLUETOOTH
44861847f8eSopenharmony_ci   * @param { string } device - The address of the remote device.
44961847f8eSopenharmony_ci   * @param { boolean } accept - Indicates whether to accept the pairing request, {@code true} indicates accept or {@code false} otherwise.
45061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
45161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
45261847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
45361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
45461847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
45561847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
45661847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
45761847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
45861847f8eSopenharmony_ci   * @since 10
45961847f8eSopenharmony_ci   * @deprecated since 10
46061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#setDevicePairingConfirmation
46161847f8eSopenharmony_ci   */
46261847f8eSopenharmony_ci  function setDevicePairingConfirmation(device: string, accept: boolean): void;
46361847f8eSopenharmony_ci
46461847f8eSopenharmony_ci  /**
46561847f8eSopenharmony_ci   * Sets the Bluetooth friendly name of a device.
46661847f8eSopenharmony_ci   *
46761847f8eSopenharmony_ci   * @permission ohos.permission.DISCOVER_BLUETOOTH
46861847f8eSopenharmony_ci   * @param { string } name - Indicates a valid Bluetooth name.
46961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
47061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
47161847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
47261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
47361847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
47461847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
47561847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
47661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
47761847f8eSopenharmony_ci   * @since 9
47861847f8eSopenharmony_ci   * @deprecated since 10
47961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#setLocalName
48061847f8eSopenharmony_ci   */
48161847f8eSopenharmony_ci  /**
48261847f8eSopenharmony_ci   * Sets the Bluetooth friendly name of a device.
48361847f8eSopenharmony_ci   * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
48461847f8eSopenharmony_ci   *
48561847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
48661847f8eSopenharmony_ci   * @param { string } name - Indicates a valid Bluetooth name.
48761847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
48861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
48961847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
49061847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
49161847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
49261847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
49361847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
49461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
49561847f8eSopenharmony_ci   * @since 10
49661847f8eSopenharmony_ci   * @deprecated since 10
49761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#setLocalName
49861847f8eSopenharmony_ci   */
49961847f8eSopenharmony_ci  function setLocalName(name: string): void;
50061847f8eSopenharmony_ci
50161847f8eSopenharmony_ci  /**
50261847f8eSopenharmony_ci   * Sets the Bluetooth scan mode for a device.
50361847f8eSopenharmony_ci   *
50461847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
50561847f8eSopenharmony_ci   * @param { ScanMode } mode - Indicates the Bluetooth scan mode to set, {@link ScanMode}.
50661847f8eSopenharmony_ci   * @param { number } duration - Indicates the duration in seconds, in which the host is discoverable.
50761847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
50861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
50961847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
51061847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
51161847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
51261847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
51361847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
51461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
51561847f8eSopenharmony_ci   * @since 9
51661847f8eSopenharmony_ci   * @deprecated since 10
51761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#setBluetoothScanMode
51861847f8eSopenharmony_ci   */
51961847f8eSopenharmony_ci  /**
52061847f8eSopenharmony_ci   * Sets the Bluetooth scan mode for a device.
52161847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
52261847f8eSopenharmony_ci   *
52361847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
52461847f8eSopenharmony_ci   * @param { ScanMode } mode - Indicates the Bluetooth scan mode to set, {@link ScanMode}.
52561847f8eSopenharmony_ci   * @param { number } duration - Indicates the duration in seconds, in which the host is discoverable.
52661847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
52761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
52861847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
52961847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
53061847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
53161847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
53261847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
53361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
53461847f8eSopenharmony_ci   * @since 10
53561847f8eSopenharmony_ci   * @deprecated since 10
53661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#setBluetoothScanMode
53761847f8eSopenharmony_ci   */
53861847f8eSopenharmony_ci  function setBluetoothScanMode(mode: ScanMode, duration: number): void;
53961847f8eSopenharmony_ci
54061847f8eSopenharmony_ci  /**
54161847f8eSopenharmony_ci   * Obtains the Bluetooth scanning mode of a device.
54261847f8eSopenharmony_ci   *
54361847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
54461847f8eSopenharmony_ci   * @returns { ScanMode } Returns the Bluetooth scanning mode, {@link ScanMode}.
54561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
54661847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
54761847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
54861847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
54961847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
55061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
55161847f8eSopenharmony_ci   * @since 9
55261847f8eSopenharmony_ci   * @deprecated since 10
55361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getBluetoothScanMode
55461847f8eSopenharmony_ci   */
55561847f8eSopenharmony_ci  /**
55661847f8eSopenharmony_ci   * Obtains the Bluetooth scanning mode of a device.
55761847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
55861847f8eSopenharmony_ci   *
55961847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
56061847f8eSopenharmony_ci   * @returns { ScanMode } Returns the Bluetooth scanning mode, {@link ScanMode}.
56161847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
56261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
56361847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
56461847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
56561847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
56661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
56761847f8eSopenharmony_ci   * @since 10
56861847f8eSopenharmony_ci   * @deprecated since 10
56961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#getBluetoothScanMode
57061847f8eSopenharmony_ci   */
57161847f8eSopenharmony_ci  function getBluetoothScanMode(): ScanMode;
57261847f8eSopenharmony_ci
57361847f8eSopenharmony_ci  /**
57461847f8eSopenharmony_ci   * Starts scanning Bluetooth devices.
57561847f8eSopenharmony_ci   *
57661847f8eSopenharmony_ci   * @permission ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION
57761847f8eSopenharmony_ci   *     and ohos.permission.APPROXIMATELY_LOCATION
57861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
57961847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
58061847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
58161847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
58261847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
58361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
58461847f8eSopenharmony_ci   * @since 9
58561847f8eSopenharmony_ci   * @deprecated since 10
58661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#startBluetoothDiscovery
58761847f8eSopenharmony_ci   */
58861847f8eSopenharmony_ci  /**
58961847f8eSopenharmony_ci   * Starts scanning Bluetooth devices.
59061847f8eSopenharmony_ci   * The permission required by this interface is changed from DISCOVER_BLUETOOTH and LOCATION and APPROXIMATELY_LOCATION to ACCESS_BLUETOOTH.
59161847f8eSopenharmony_ci   *
59261847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
59361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
59461847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
59561847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
59661847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
59761847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
59861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
59961847f8eSopenharmony_ci   * @since 10
60061847f8eSopenharmony_ci   * @deprecated since 10
60161847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#startBluetoothDiscovery
60261847f8eSopenharmony_ci   */
60361847f8eSopenharmony_ci  function startBluetoothDiscovery(): void;
60461847f8eSopenharmony_ci
60561847f8eSopenharmony_ci  /**
60661847f8eSopenharmony_ci   * Stops Bluetooth device scanning.
60761847f8eSopenharmony_ci   *
60861847f8eSopenharmony_ci   * @permission ohos.permission.DISCOVER_BLUETOOTH
60961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
61061847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
61161847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
61261847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
61361847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
61461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
61561847f8eSopenharmony_ci   * @since 9
61661847f8eSopenharmony_ci   * @deprecated since 10
61761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#stopBluetoothDiscovery
61861847f8eSopenharmony_ci   */
61961847f8eSopenharmony_ci  /**
62061847f8eSopenharmony_ci   * Stops Bluetooth device scanning.
62161847f8eSopenharmony_ci   * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
62261847f8eSopenharmony_ci   *
62361847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
62461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
62561847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
62661847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
62761847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
62861847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
62961847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
63061847f8eSopenharmony_ci   * @since 10
63161847f8eSopenharmony_ci   * @deprecated since 10
63261847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection#stopBluetoothDiscovery
63361847f8eSopenharmony_ci   */
63461847f8eSopenharmony_ci  function stopBluetoothDiscovery(): void;
63561847f8eSopenharmony_ci
63661847f8eSopenharmony_ci  /**
63761847f8eSopenharmony_ci   * Subscribe the event reported when a remote Bluetooth device is discovered.
63861847f8eSopenharmony_ci   *
63961847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
64061847f8eSopenharmony_ci   * @param { 'bluetoothDeviceFind' } type - Type of the discovering event to listen for.
64161847f8eSopenharmony_ci   * @param { Callback<Array<string>> } callback - Callback used to listen for the discovering event.
64261847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
64361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
64461847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
64561847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
64661847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
64761847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
64861847f8eSopenharmony_ci   * @since 9
64961847f8eSopenharmony_ci   * @deprecated since 10
65061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.on#event:bluetoothDeviceFind
65161847f8eSopenharmony_ci   */
65261847f8eSopenharmony_ci  /**
65361847f8eSopenharmony_ci   * Subscribe the event reported when a remote Bluetooth device is discovered.
65461847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
65561847f8eSopenharmony_ci   *
65661847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
65761847f8eSopenharmony_ci   * @param { 'bluetoothDeviceFind' } type - Type of the discovering event to listen for.
65861847f8eSopenharmony_ci   * @param { Callback<Array<string>> } callback - Callback used to listen for the discovering event.
65961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
66061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
66161847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
66261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
66361847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
66461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
66561847f8eSopenharmony_ci   * @since 10
66661847f8eSopenharmony_ci   * @deprecated since 10
66761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.on#event:bluetoothDeviceFind
66861847f8eSopenharmony_ci   */
66961847f8eSopenharmony_ci  function on(type: 'bluetoothDeviceFind', callback: Callback<Array<string>>): void;
67061847f8eSopenharmony_ci
67161847f8eSopenharmony_ci  /**
67261847f8eSopenharmony_ci   * Unsubscribe the event reported when a remote Bluetooth device is discovered.
67361847f8eSopenharmony_ci   *
67461847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
67561847f8eSopenharmony_ci   * @param { 'bluetoothDeviceFind' } type - Type of the discovering event to listen for.
67661847f8eSopenharmony_ci   * @param { Callback<Array<string>> } callback - Callback used to listen for the discovering event.
67761847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
67861847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
67961847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
68061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
68161847f8eSopenharmony_ci   * @since 9
68261847f8eSopenharmony_ci   * @deprecated since 10
68361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.off#event:bluetoothDeviceFind
68461847f8eSopenharmony_ci   */
68561847f8eSopenharmony_ci  /**
68661847f8eSopenharmony_ci   * Unsubscribe the event reported when a remote Bluetooth device is discovered.
68761847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
68861847f8eSopenharmony_ci   *
68961847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
69061847f8eSopenharmony_ci   * @param { 'bluetoothDeviceFind' } type - Type of the discovering event to listen for.
69161847f8eSopenharmony_ci   * @param { Callback<Array<string>> } callback - Callback used to listen for the discovering event.
69261847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
69361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
69461847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
69561847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
69661847f8eSopenharmony_ci   * @since 10
69761847f8eSopenharmony_ci   * @deprecated since 10
69861847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.off#event:bluetoothDeviceFind
69961847f8eSopenharmony_ci   */
70061847f8eSopenharmony_ci  function off(type: 'bluetoothDeviceFind', callback?: Callback<Array<string>>): void;
70161847f8eSopenharmony_ci
70261847f8eSopenharmony_ci  /**
70361847f8eSopenharmony_ci   * Subscribe the event reported when a remote Bluetooth device is bonded.
70461847f8eSopenharmony_ci   *
70561847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
70661847f8eSopenharmony_ci   * @param { 'bondStateChange' } type - Type of the bond state event to listen for.
70761847f8eSopenharmony_ci   * @param { Callback<BondStateParam> } callback - Callback used to listen for the bond state event, {@link BondStateParam}.
70861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
70961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
71061847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
71161847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
71261847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
71361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
71461847f8eSopenharmony_ci   * @since 9
71561847f8eSopenharmony_ci   * @deprecated since 10
71661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.on#event:bondStateChange
71761847f8eSopenharmony_ci   */
71861847f8eSopenharmony_ci  /**
71961847f8eSopenharmony_ci   * Subscribe the event reported when a remote Bluetooth device is bonded.
72061847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
72161847f8eSopenharmony_ci   *
72261847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
72361847f8eSopenharmony_ci   * @param { 'bondStateChange' } type - Type of the bond state event to listen for.
72461847f8eSopenharmony_ci   * @param { Callback<BondStateParam> } callback - Callback used to listen for the bond state event, {@link BondStateParam}.
72561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
72661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
72761847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
72861847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
72961847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
73061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
73161847f8eSopenharmony_ci   * @since 10
73261847f8eSopenharmony_ci   * @deprecated since 10
73361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.on#event:bondStateChange
73461847f8eSopenharmony_ci   */
73561847f8eSopenharmony_ci  function on(type: 'bondStateChange', callback: Callback<BondStateParam>): void;
73661847f8eSopenharmony_ci
73761847f8eSopenharmony_ci  /**
73861847f8eSopenharmony_ci   * Unsubscribe the event reported when a remote Bluetooth device is bonded.
73961847f8eSopenharmony_ci   *
74061847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
74161847f8eSopenharmony_ci   * @param { 'bondStateChange' } type - Type of the bond state event to listen for.
74261847f8eSopenharmony_ci   * @param { Callback<BondStateParam> } callback - Callback used to listen for the bond state event.
74361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
74461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
74561847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
74661847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
74761847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
74861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
74961847f8eSopenharmony_ci   * @since 9
75061847f8eSopenharmony_ci   * @deprecated since 10
75161847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.off#event:bondStateChange
75261847f8eSopenharmony_ci   */
75361847f8eSopenharmony_ci  /**
75461847f8eSopenharmony_ci   * Unsubscribe the event reported when a remote Bluetooth device is bonded.
75561847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
75661847f8eSopenharmony_ci   *
75761847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
75861847f8eSopenharmony_ci   * @param { 'bondStateChange' } type - Type of the bond state event to listen for.
75961847f8eSopenharmony_ci   * @param { Callback<BondStateParam> } callback - Callback used to listen for the bond state event.
76061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
76161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
76261847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
76361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
76461847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
76561847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
76661847f8eSopenharmony_ci   * @since 10
76761847f8eSopenharmony_ci   * @deprecated since 10
76861847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.off#event:bondStateChange
76961847f8eSopenharmony_ci   */
77061847f8eSopenharmony_ci  function off(type: 'bondStateChange', callback?: Callback<BondStateParam>): void;
77161847f8eSopenharmony_ci
77261847f8eSopenharmony_ci  /**
77361847f8eSopenharmony_ci   * Subscribe the event of a pairing request from a remote Bluetooth device.
77461847f8eSopenharmony_ci   *
77561847f8eSopenharmony_ci   * @permission ohos.permission.DISCOVER_BLUETOOTH
77661847f8eSopenharmony_ci   * @param { 'pinRequired' } type - Type of the pairing request event to listen for.
77761847f8eSopenharmony_ci   * @param { Callback<PinRequiredParam> } callback - Callback used to listen for the pairing request event.
77861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
77961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
78061847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
78161847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
78261847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
78361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
78461847f8eSopenharmony_ci   * @since 9
78561847f8eSopenharmony_ci   * @deprecated since 10
78661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.on#event:pinRequired
78761847f8eSopenharmony_ci   */
78861847f8eSopenharmony_ci  /**
78961847f8eSopenharmony_ci   * Subscribe the event of a pairing request from a remote Bluetooth device.
79061847f8eSopenharmony_ci   * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
79161847f8eSopenharmony_ci   *
79261847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
79361847f8eSopenharmony_ci   * @param { 'pinRequired' } type - Type of the pairing request event to listen for.
79461847f8eSopenharmony_ci   * @param { Callback<PinRequiredParam> } callback - Callback used to listen for the pairing request event.
79561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
79661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
79761847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
79861847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
79961847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
80061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
80161847f8eSopenharmony_ci   * @since 10
80261847f8eSopenharmony_ci   * @deprecated since 10
80361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.on#event:pinRequired
80461847f8eSopenharmony_ci   */
80561847f8eSopenharmony_ci  function on(type: 'pinRequired', callback: Callback<PinRequiredParam>): void;
80661847f8eSopenharmony_ci
80761847f8eSopenharmony_ci  /**
80861847f8eSopenharmony_ci   * Unsubscribe the event of a pairing request from a remote Bluetooth device.
80961847f8eSopenharmony_ci   *
81061847f8eSopenharmony_ci   * @permission ohos.permission.DISCOVER_BLUETOOTH
81161847f8eSopenharmony_ci   * @param { 'pinRequired' } type - Type of the pairing request event to listen for.
81261847f8eSopenharmony_ci   * @param { Callback<PinRequiredParam> } callback - Callback used to listen for the pairing request event.
81361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
81461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
81561847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
81661847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
81761847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
81861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
81961847f8eSopenharmony_ci   * @since 9
82061847f8eSopenharmony_ci   * @deprecated since 10
82161847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.off#event:pinRequired
82261847f8eSopenharmony_ci   */
82361847f8eSopenharmony_ci  /**
82461847f8eSopenharmony_ci   * Unsubscribe the event of a pairing request from a remote Bluetooth device.
82561847f8eSopenharmony_ci   * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
82661847f8eSopenharmony_ci   *
82761847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
82861847f8eSopenharmony_ci   * @param { 'pinRequired' } type - Type of the pairing request event to listen for.
82961847f8eSopenharmony_ci   * @param { Callback<PinRequiredParam> } callback - Callback used to listen for the pairing request event.
83061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
83161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
83261847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
83361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
83461847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
83561847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
83661847f8eSopenharmony_ci   * @since 10
83761847f8eSopenharmony_ci   * @deprecated since 10
83861847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.off#event:pinRequired
83961847f8eSopenharmony_ci   */
84061847f8eSopenharmony_ci  function off(type: 'pinRequired', callback?: Callback<PinRequiredParam>): void;
84161847f8eSopenharmony_ci
84261847f8eSopenharmony_ci  /**
84361847f8eSopenharmony_ci   * Subscribe the event reported when the Bluetooth state changes.
84461847f8eSopenharmony_ci   *
84561847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
84661847f8eSopenharmony_ci   * @param { 'stateChange' } type - Type of the Bluetooth state changes event to listen for.
84761847f8eSopenharmony_ci   * @param { Callback<BluetoothState> } callback - Callback used to listen for the Bluetooth state event.
84861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
84961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
85061847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
85161847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
85261847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
85361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
85461847f8eSopenharmony_ci   * @since 9
85561847f8eSopenharmony_ci   * @deprecated since 10
85661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access.on#event:stateChange
85761847f8eSopenharmony_ci   */
85861847f8eSopenharmony_ci  /**
85961847f8eSopenharmony_ci   * Subscribe the event reported when the Bluetooth state changes.
86061847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
86161847f8eSopenharmony_ci   *
86261847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
86361847f8eSopenharmony_ci   * @param { 'stateChange' } type - Type of the Bluetooth state changes event to listen for.
86461847f8eSopenharmony_ci   * @param { Callback<BluetoothState> } callback - Callback used to listen for the Bluetooth state event.
86561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
86661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
86761847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
86861847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
86961847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
87061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
87161847f8eSopenharmony_ci   * @since 10
87261847f8eSopenharmony_ci   * @deprecated since 10
87361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access.on#event:stateChange
87461847f8eSopenharmony_ci   */
87561847f8eSopenharmony_ci  function on(type: 'stateChange', callback: Callback<BluetoothState>): void;
87661847f8eSopenharmony_ci
87761847f8eSopenharmony_ci  /**
87861847f8eSopenharmony_ci   * Unsubscribe the event reported when the Bluetooth state changes.
87961847f8eSopenharmony_ci   *
88061847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
88161847f8eSopenharmony_ci   * @param { 'stateChange' } type - Type of the Bluetooth state changes event to listen for.
88261847f8eSopenharmony_ci   * @param { Callback<BluetoothState> } callback - Callback used to listen for the Bluetooth state event.
88361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
88461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
88561847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
88661847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
88761847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
88861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
88961847f8eSopenharmony_ci   * @since 9
89061847f8eSopenharmony_ci   * @deprecated since 10
89161847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access.off#event:stateChange
89261847f8eSopenharmony_ci   */
89361847f8eSopenharmony_ci  /**
89461847f8eSopenharmony_ci   * Unsubscribe the event reported when the Bluetooth state changes.
89561847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
89661847f8eSopenharmony_ci   *
89761847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
89861847f8eSopenharmony_ci   * @param { 'stateChange' } type - Type of the Bluetooth state changes event to listen for.
89961847f8eSopenharmony_ci   * @param { Callback<BluetoothState> } callback - Callback used to listen for the Bluetooth state event.
90061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
90161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
90261847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3. Parameter verification failed.
90361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
90461847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
90561847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
90661847f8eSopenharmony_ci   * @since 10
90761847f8eSopenharmony_ci   * @deprecated since 10
90861847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access.off#event:stateChange
90961847f8eSopenharmony_ci   */
91061847f8eSopenharmony_ci  function off(type: 'stateChange', callback?: Callback<BluetoothState>): void;
91161847f8eSopenharmony_ci
91261847f8eSopenharmony_ci  /**
91361847f8eSopenharmony_ci   * Creates a Bluetooth server listening socket.
91461847f8eSopenharmony_ci   *
91561847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
91661847f8eSopenharmony_ci   * @param { string } name - Indicates the service name.
91761847f8eSopenharmony_ci   * @param { SppOption } option - Indicates the listen parameters {@link SppOption}.
91861847f8eSopenharmony_ci   * @param { AsyncCallback<number> } callback - Callback used to return a server socket ID.
91961847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
92061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
92161847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
92261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
92361847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
92461847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
92561847f8eSopenharmony_ci   * @throws { BusinessError } 2900004 - Profile not supported.
92661847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
92761847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
92861847f8eSopenharmony_ci   * @since 9
92961847f8eSopenharmony_ci   * @deprecated since 10
93061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket#sppListen
93161847f8eSopenharmony_ci   */
93261847f8eSopenharmony_ci  /**
93361847f8eSopenharmony_ci   * Creates a Bluetooth server listening socket.
93461847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
93561847f8eSopenharmony_ci   *
93661847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
93761847f8eSopenharmony_ci   * @param { string } name - Indicates the service name.
93861847f8eSopenharmony_ci   * @param { SppOption } option - Indicates the listen parameters {@link SppOption}.
93961847f8eSopenharmony_ci   * @param { AsyncCallback<number> } callback - Callback used to return a server socket ID.
94061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
94161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
94261847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
94361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
94461847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
94561847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
94661847f8eSopenharmony_ci   * @throws { BusinessError } 2900004 - Profile not supported.
94761847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
94861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
94961847f8eSopenharmony_ci   * @since 10
95061847f8eSopenharmony_ci   * @deprecated since 10
95161847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket#sppListen
95261847f8eSopenharmony_ci   */
95361847f8eSopenharmony_ci  function sppListen(name: string, option: SppOption, callback: AsyncCallback<number>): void;
95461847f8eSopenharmony_ci
95561847f8eSopenharmony_ci  /**
95661847f8eSopenharmony_ci   * Waits for a remote device to connect.
95761847f8eSopenharmony_ci   *
95861847f8eSopenharmony_ci   * @param { number } serverSocket - Indicates the server socket ID, returned by {@link sppListen}.
95961847f8eSopenharmony_ci   * @param { AsyncCallback<number> } callback - Callback used to return a client socket ID.
96061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
96161847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
96261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
96361847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
96461847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
96561847f8eSopenharmony_ci   * @throws { BusinessError } 2900004 - Profile not supported.
96661847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
96761847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
96861847f8eSopenharmony_ci   * @since 9
96961847f8eSopenharmony_ci   * @deprecated since 10
97061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket#sppAccept
97161847f8eSopenharmony_ci   */
97261847f8eSopenharmony_ci  function sppAccept(serverSocket: number, callback: AsyncCallback<number>): void;
97361847f8eSopenharmony_ci
97461847f8eSopenharmony_ci  /**
97561847f8eSopenharmony_ci   * Connects to a remote device over the socket.
97661847f8eSopenharmony_ci   *
97761847f8eSopenharmony_ci   * @permission ohos.permission.USE_BLUETOOTH
97861847f8eSopenharmony_ci   * @param { string } device - The address of the remote device to connect.
97961847f8eSopenharmony_ci   * @param { SppOption } option - Indicates the connect parameters {@link SppOption}.
98061847f8eSopenharmony_ci   * @param { AsyncCallback<number> } callback - Callback used to return a client socket ID.
98161847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
98261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
98361847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
98461847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
98561847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
98661847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
98761847f8eSopenharmony_ci   * @throws { BusinessError } 2900004 - Profile not supported.
98861847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
98961847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
99061847f8eSopenharmony_ci   * @since 9
99161847f8eSopenharmony_ci   * @deprecated since 10
99261847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket#sppConnect
99361847f8eSopenharmony_ci   */
99461847f8eSopenharmony_ci  /**
99561847f8eSopenharmony_ci   * Connects to a remote device over the socket.
99661847f8eSopenharmony_ci   * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
99761847f8eSopenharmony_ci   *
99861847f8eSopenharmony_ci   * @permission ohos.permission.ACCESS_BLUETOOTH
99961847f8eSopenharmony_ci   * @param { string } device - The address of the remote device to connect.
100061847f8eSopenharmony_ci   * @param { SppOption } option - Indicates the connect parameters {@link SppOption}.
100161847f8eSopenharmony_ci   * @param { AsyncCallback<number> } callback - Callback used to return a client socket ID.
100261847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
100361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
100461847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
100561847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
100661847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
100761847f8eSopenharmony_ci   * @throws { BusinessError } 2900003 - Bluetooth disabled.
100861847f8eSopenharmony_ci   * @throws { BusinessError } 2900004 - Profile not supported.
100961847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
101061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
101161847f8eSopenharmony_ci   * @since 10
101261847f8eSopenharmony_ci   * @deprecated since 10
101361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket#sppConnect
101461847f8eSopenharmony_ci   */
101561847f8eSopenharmony_ci  function sppConnect(device: string, option: SppOption, callback: AsyncCallback<number>): void;
101661847f8eSopenharmony_ci
101761847f8eSopenharmony_ci  /**
101861847f8eSopenharmony_ci   * Disables an spp server socket and releases related resources.
101961847f8eSopenharmony_ci   *
102061847f8eSopenharmony_ci   * @param { number } socket - Indicates the server socket ID, returned by {@link sppListen}.
102161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
102261847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
102361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
102461847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
102561847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
102661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
102761847f8eSopenharmony_ci   * @since 9
102861847f8eSopenharmony_ci   * @deprecated since 10
102961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket#sppCloseServerSocket
103061847f8eSopenharmony_ci   */
103161847f8eSopenharmony_ci  function sppCloseServerSocket(socket: number): void;
103261847f8eSopenharmony_ci
103361847f8eSopenharmony_ci  /**
103461847f8eSopenharmony_ci   * Disables an spp client socket and releases related resources.
103561847f8eSopenharmony_ci   *
103661847f8eSopenharmony_ci   * @param { number } socket - Indicates the client socket ID, returned by {@link sppAccept} or {@link sppConnect}.
103761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
103861847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
103961847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
104061847f8eSopenharmony_ci   * @throws { BusinessError } 2900001 - Service stopped.
104161847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
104261847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
104361847f8eSopenharmony_ci   * @since 9
104461847f8eSopenharmony_ci   * @deprecated since 10
104561847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket#sppCloseClientSocket
104661847f8eSopenharmony_ci   */
104761847f8eSopenharmony_ci  function sppCloseClientSocket(socket: number): void;
104861847f8eSopenharmony_ci
104961847f8eSopenharmony_ci  /**
105061847f8eSopenharmony_ci   * Write data through the socket.
105161847f8eSopenharmony_ci   *
105261847f8eSopenharmony_ci   * @param { number } clientSocket - Indicates the client socket ID, returned by {@link sppAccept} or {@link sppConnect}.
105361847f8eSopenharmony_ci   * @param { ArrayBuffer } data - Indicates the data to write.
105461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
105561847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
105661847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
105761847f8eSopenharmony_ci   * @throws { BusinessError } 2901054 - IO error.
105861847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
105961847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
106061847f8eSopenharmony_ci   * @since 9
106161847f8eSopenharmony_ci   * @deprecated since 10
106261847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket#sppWrite
106361847f8eSopenharmony_ci   */
106461847f8eSopenharmony_ci  function sppWrite(clientSocket: number, data: ArrayBuffer): void;
106561847f8eSopenharmony_ci
106661847f8eSopenharmony_ci  /**
106761847f8eSopenharmony_ci   * Subscribe the event reported when data is read from the socket.
106861847f8eSopenharmony_ci   *
106961847f8eSopenharmony_ci   * @param { 'sppRead' } type - Type of the spp read event to listen for.
107061847f8eSopenharmony_ci   * @param { number } clientSocket - Client socket ID, which is obtained by sppAccept or sppConnect.
107161847f8eSopenharmony_ci   * @param { Callback<ArrayBuffer> } callback - Callback used to listen for the spp read event.
107261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
107361847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
107461847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
107561847f8eSopenharmony_ci   * @throws { BusinessError } 2901054 - IO error.
107661847f8eSopenharmony_ci   * @throws { BusinessError } 2900099 - Operation failed.
107761847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
107861847f8eSopenharmony_ci   * @since 9
107961847f8eSopenharmony_ci   * @deprecated since 10
108061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket.on#event:sppRead
108161847f8eSopenharmony_ci   */
108261847f8eSopenharmony_ci  function on(type: 'sppRead', clientSocket: number, callback: Callback<ArrayBuffer>): void;
108361847f8eSopenharmony_ci
108461847f8eSopenharmony_ci  /**
108561847f8eSopenharmony_ci   * Unsubscribe the event reported when data is read from the socket.
108661847f8eSopenharmony_ci   *
108761847f8eSopenharmony_ci   * @param { 'sppRead' } type - Type of the spp read event to listen for.
108861847f8eSopenharmony_ci   * @param { number } clientSocket - Client socket ID, which is obtained by sppAccept or sppConnect.
108961847f8eSopenharmony_ci   * @param { Callback<ArrayBuffer> } callback - Callback used to listen for the spp read event.
109061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
109161847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
109261847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
109361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
109461847f8eSopenharmony_ci   * @since 9
109561847f8eSopenharmony_ci   * @deprecated since 10
109661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket.off#event:sppRead
109761847f8eSopenharmony_ci   */
109861847f8eSopenharmony_ci  function off(type: 'sppRead', clientSocket: number, callback?: Callback<ArrayBuffer>): void;
109961847f8eSopenharmony_ci
110061847f8eSopenharmony_ci  /**
110161847f8eSopenharmony_ci   * Obtains the instance of profile.
110261847f8eSopenharmony_ci   *
110361847f8eSopenharmony_ci   * @param { ProfileId } profileId - The profile id..
110461847f8eSopenharmony_ci   * @returns { A2dpSourceProfile | HandsFreeAudioGatewayProfile | HidHostProfile | PanProfile } Returns the instance of profile.
110561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
110661847f8eSopenharmony_ci   * <br>2. Incorrect parameter types.
110761847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported.
110861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
110961847f8eSopenharmony_ci   * @since 9
111061847f8eSopenharmony_ci   * @deprecated since 10
111161847f8eSopenharmony_ci   */
111261847f8eSopenharmony_ci  function getProfileInstance(
111361847f8eSopenharmony_ci    profileId: ProfileId
111461847f8eSopenharmony_ci  ): A2dpSourceProfile | HandsFreeAudioGatewayProfile | HidHostProfile | PanProfile;
111561847f8eSopenharmony_ci
111661847f8eSopenharmony_ci  /**
111761847f8eSopenharmony_ci   * Base interface of profile.
111861847f8eSopenharmony_ci   *
111961847f8eSopenharmony_ci   * @typedef BaseProfile
112061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
112161847f8eSopenharmony_ci   * @since 9
112261847f8eSopenharmony_ci   * @deprecated since 10
112361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.baseProfile/baseProfile.BaseProfile
112461847f8eSopenharmony_ci   */
112561847f8eSopenharmony_ci  interface BaseProfile {
112661847f8eSopenharmony_ci    /**
112761847f8eSopenharmony_ci     * Obtains the connected devices list of profile.
112861847f8eSopenharmony_ci     *
112961847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
113061847f8eSopenharmony_ci     * @returns { Array<string> } Returns the address of connected devices list.
113161847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
113261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
113361847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
113461847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
113561847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
113661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
113761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
113861847f8eSopenharmony_ci     * @since 9
113961847f8eSopenharmony_ci     * @deprecated since 10
114061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.baseProfile/baseProfile#getConnectedDevices
114161847f8eSopenharmony_ci     */
114261847f8eSopenharmony_ci    /**
114361847f8eSopenharmony_ci     * Obtains the connected devices list of profile.
114461847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
114561847f8eSopenharmony_ci     *
114661847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
114761847f8eSopenharmony_ci     * @returns { Array<string> } Returns the address of connected devices list.
114861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
114961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
115061847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
115161847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
115261847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
115361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
115461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
115561847f8eSopenharmony_ci     * @since 10
115661847f8eSopenharmony_ci     * @deprecated since 10
115761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.baseProfile/baseProfile#getConnectedDevices
115861847f8eSopenharmony_ci     */
115961847f8eSopenharmony_ci    getConnectionDevices(): Array<string>;
116061847f8eSopenharmony_ci
116161847f8eSopenharmony_ci    /**
116261847f8eSopenharmony_ci     * Obtains the profile state of device.
116361847f8eSopenharmony_ci     *
116461847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
116561847f8eSopenharmony_ci     * @param { string } device - The address of bluetooth device.
116661847f8eSopenharmony_ci     * @returns { ProfileConnectionState } Returns {@link ProfileConnectionState} of device.
116761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
116861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
116961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
117061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
117161847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
117261847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
117361847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
117461847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
117561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
117661847f8eSopenharmony_ci     * @since 9
117761847f8eSopenharmony_ci     * @deprecated since 10
117861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.baseProfile/baseProfile#getConnectionState
117961847f8eSopenharmony_ci     */
118061847f8eSopenharmony_ci    /**
118161847f8eSopenharmony_ci     * Obtains the profile state of device.
118261847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
118361847f8eSopenharmony_ci     *
118461847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
118561847f8eSopenharmony_ci     * @param { string } device - The address of bluetooth device.
118661847f8eSopenharmony_ci     * @returns { ProfileConnectionState } Returns {@link ProfileConnectionState} of device.
118761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
118861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
118961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
119061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
119161847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
119261847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
119361847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
119461847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
119561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
119661847f8eSopenharmony_ci     * @since 10
119761847f8eSopenharmony_ci     * @deprecated since 10
119861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.baseProfile/baseProfile#getConnectionState
119961847f8eSopenharmony_ci     */
120061847f8eSopenharmony_ci    getDeviceState(device: string): ProfileConnectionState;
120161847f8eSopenharmony_ci  }
120261847f8eSopenharmony_ci
120361847f8eSopenharmony_ci  /**
120461847f8eSopenharmony_ci   * Manager a2dp source profile.
120561847f8eSopenharmony_ci   *
120661847f8eSopenharmony_ci   * @typedef A2dpSourceProfile
120761847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
120861847f8eSopenharmony_ci   * @since 9
120961847f8eSopenharmony_ci   * @deprecated since 10
121061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile
121161847f8eSopenharmony_ci   */
121261847f8eSopenharmony_ci  interface A2dpSourceProfile extends BaseProfile {
121361847f8eSopenharmony_ci    /**
121461847f8eSopenharmony_ci     * Connect to device with a2dp.
121561847f8eSopenharmony_ci     *
121661847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH
121761847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to connect.
121861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
121961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
122061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
122161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
122261847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
122361847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
122461847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
122561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
122661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
122761847f8eSopenharmony_ci     * @since 9
122861847f8eSopenharmony_ci     * @deprecated since 10
122961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile#connect
123061847f8eSopenharmony_ci     */
123161847f8eSopenharmony_ci    /**
123261847f8eSopenharmony_ci     * Connect to device with a2dp.
123361847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
123461847f8eSopenharmony_ci     *
123561847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
123661847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to connect.
123761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
123861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
123961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
124061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
124161847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
124261847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
124361847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
124461847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
124561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
124661847f8eSopenharmony_ci     * @since 10
124761847f8eSopenharmony_ci     * @deprecated since 10
124861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile#connect
124961847f8eSopenharmony_ci     */
125061847f8eSopenharmony_ci    connect(device: string): void;
125161847f8eSopenharmony_ci
125261847f8eSopenharmony_ci    /**
125361847f8eSopenharmony_ci     * Disconnect to device with a2dp.
125461847f8eSopenharmony_ci     *
125561847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH
125661847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to disconnect.
125761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
125861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
125961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
126061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
126161847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
126261847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
126361847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
126461847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
126561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
126661847f8eSopenharmony_ci     * @since 9
126761847f8eSopenharmony_ci     * @deprecated since 10
126861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile#disconnect
126961847f8eSopenharmony_ci     */
127061847f8eSopenharmony_ci    /**
127161847f8eSopenharmony_ci     * Disconnect to device with a2dp.
127261847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
127361847f8eSopenharmony_ci     *
127461847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
127561847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to disconnect.
127661847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
127761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
127861847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
127961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
128061847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
128161847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
128261847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
128361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
128461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
128561847f8eSopenharmony_ci     * @since 10
128661847f8eSopenharmony_ci     * @deprecated since 10
128761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile#disconnect
128861847f8eSopenharmony_ci     */
128961847f8eSopenharmony_ci    disconnect(device: string): void;
129061847f8eSopenharmony_ci
129161847f8eSopenharmony_ci    /**
129261847f8eSopenharmony_ci     * Subscribe the event reported when the profile connection state changes .
129361847f8eSopenharmony_ci     *
129461847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
129561847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
129661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
129761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
129861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
129961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
130061847f8eSopenharmony_ci     * @since 9
130161847f8eSopenharmony_ci     * @deprecated since 10
130261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile.on#event:connectionStateChange
130361847f8eSopenharmony_ci     */
130461847f8eSopenharmony_ci    /**
130561847f8eSopenharmony_ci     * Subscribe the event reported when the profile connection state changes.
130661847f8eSopenharmony_ci     * The permission required by this interface is changed to ACCESS_BLUETOOTH.
130761847f8eSopenharmony_ci     *
130861847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
130961847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
131061847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
131161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
131261847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
131361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
131461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
131561847f8eSopenharmony_ci     * @since 10
131661847f8eSopenharmony_ci     * @deprecated since 10
131761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile.on#event:connectionStateChange
131861847f8eSopenharmony_ci     */
131961847f8eSopenharmony_ci    on(type: 'connectionStateChange', callback: Callback<StateChangeParam>): void;
132061847f8eSopenharmony_ci
132161847f8eSopenharmony_ci    /**
132261847f8eSopenharmony_ci     * Unsubscribe the event reported when the profile connection state changes .
132361847f8eSopenharmony_ci     *
132461847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
132561847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
132661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
132761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
132861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
132961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
133061847f8eSopenharmony_ci     * @since 9
133161847f8eSopenharmony_ci     * @deprecated since 10
133261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile.off#event:connectionStateChange
133361847f8eSopenharmony_ci     */
133461847f8eSopenharmony_ci    /**
133561847f8eSopenharmony_ci     * Unsubscribe the event reported when the profile connection state changes.
133661847f8eSopenharmony_ci     * The permission required by this interface is changed to ACCESS_BLUETOOTH.
133761847f8eSopenharmony_ci     *
133861847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
133961847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
134061847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
134161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
134261847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
134361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
134461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
134561847f8eSopenharmony_ci     * @since 10
134661847f8eSopenharmony_ci     * @deprecated since 10
134761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile.off#event:connectionStateChange
134861847f8eSopenharmony_ci     */
134961847f8eSopenharmony_ci    off(type: 'connectionStateChange', callback?: Callback<StateChangeParam>): void;
135061847f8eSopenharmony_ci
135161847f8eSopenharmony_ci    /**
135261847f8eSopenharmony_ci     * Obtains the playing state of device.
135361847f8eSopenharmony_ci     *
135461847f8eSopenharmony_ci     * @param { string } device - The address of the remote device.
135561847f8eSopenharmony_ci     * @returns { PlayingState } Returns {@link PlayingState} of the remote device.
135661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
135761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
135861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
135961847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
136061847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
136161847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
136261847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
136361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
136461847f8eSopenharmony_ci     * @since 9
136561847f8eSopenharmony_ci     * @deprecated since 10
136661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile#getPlayingState
136761847f8eSopenharmony_ci     */
136861847f8eSopenharmony_ci    /**
136961847f8eSopenharmony_ci     * Obtains the playing state of device.
137061847f8eSopenharmony_ci     * The permission required by this interface is changed to ACCESS_BLUETOOTH.
137161847f8eSopenharmony_ci     *
137261847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
137361847f8eSopenharmony_ci     * @param { string } device - The address of the remote device.
137461847f8eSopenharmony_ci     * @returns { PlayingState } Returns {@link PlayingState} of the remote device.
137561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
137661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
137761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
137861847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
137961847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
138061847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
138161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
138261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
138361847f8eSopenharmony_ci     * @since 10
138461847f8eSopenharmony_ci     * @deprecated since 10
138561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.A2dpSourceProfile#getPlayingState
138661847f8eSopenharmony_ci     */
138761847f8eSopenharmony_ci    getPlayingState(device: string): PlayingState;
138861847f8eSopenharmony_ci  }
138961847f8eSopenharmony_ci
139061847f8eSopenharmony_ci  /**
139161847f8eSopenharmony_ci   * Manager handsfree AG profile.
139261847f8eSopenharmony_ci   *
139361847f8eSopenharmony_ci   * @typedef HandsFreeAudioGatewayProfile
139461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
139561847f8eSopenharmony_ci   * @since 9
139661847f8eSopenharmony_ci   * @deprecated since 10
139761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.hfp/hfp.HandsFreeAudioGatewayProfile
139861847f8eSopenharmony_ci   */
139961847f8eSopenharmony_ci  interface HandsFreeAudioGatewayProfile extends BaseProfile {
140061847f8eSopenharmony_ci    /**
140161847f8eSopenharmony_ci     * Connect to device with hfp.
140261847f8eSopenharmony_ci     *
140361847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH
140461847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to connect.
140561847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
140661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
140761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
140861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
140961847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
141061847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
141161847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
141261847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
141361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
141461847f8eSopenharmony_ci     * @since 9
141561847f8eSopenharmony_ci     * @deprecated since 10
141661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hfp/hfp.HandsFreeAudioGatewayProfile#connect
141761847f8eSopenharmony_ci     */
141861847f8eSopenharmony_ci    /**
141961847f8eSopenharmony_ci     * Connect to device with hfp.
142061847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
142161847f8eSopenharmony_ci     *
142261847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
142361847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to connect.
142461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
142561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
142661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
142761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
142861847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
142961847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
143061847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
143161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
143261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
143361847f8eSopenharmony_ci     * @since 10
143461847f8eSopenharmony_ci     * @deprecated since 10
143561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hfp/hfp.HandsFreeAudioGatewayProfile#connect
143661847f8eSopenharmony_ci     */
143761847f8eSopenharmony_ci    connect(device: string): void;
143861847f8eSopenharmony_ci
143961847f8eSopenharmony_ci    /**
144061847f8eSopenharmony_ci     * Disconnect to device with hfp.
144161847f8eSopenharmony_ci     *
144261847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH
144361847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to disconnect.
144461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
144561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
144661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
144761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
144861847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
144961847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
145061847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
145161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
145261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
145361847f8eSopenharmony_ci     * @since 9
145461847f8eSopenharmony_ci     * @deprecated since 10
145561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hfp/hfp.HandsFreeAudioGatewayProfile#disconnect
145661847f8eSopenharmony_ci     */
145761847f8eSopenharmony_ci    /**
145861847f8eSopenharmony_ci     * Disconnect to device with hfp.
145961847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
146061847f8eSopenharmony_ci     *
146161847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
146261847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to disconnect.
146361847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
146461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
146561847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
146661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
146761847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
146861847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
146961847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
147061847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
147161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
147261847f8eSopenharmony_ci     * @since 10
147361847f8eSopenharmony_ci     * @deprecated since 10
147461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hfp/hfp.HandsFreeAudioGatewayProfile#disconnect
147561847f8eSopenharmony_ci     */
147661847f8eSopenharmony_ci    disconnect(device: string): void;
147761847f8eSopenharmony_ci
147861847f8eSopenharmony_ci    /**
147961847f8eSopenharmony_ci     * Subscribe the event reported when the profile connection state changes .
148061847f8eSopenharmony_ci     *
148161847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
148261847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
148361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
148461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
148561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
148661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
148761847f8eSopenharmony_ci     * @since 9
148861847f8eSopenharmony_ci     * @deprecated since 10
148961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hfp/hfp.HandsFreeAudioGatewayProfile.on#event:connectionStateChange
149061847f8eSopenharmony_ci     */
149161847f8eSopenharmony_ci    /**
149261847f8eSopenharmony_ci     * Subscribe the event reported when the profile connection state changes.
149361847f8eSopenharmony_ci     * The permission required by this interface is changed to ACCESS_BLUETOOTH.
149461847f8eSopenharmony_ci     *
149561847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
149661847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
149761847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
149861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
149961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
150061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
150161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
150261847f8eSopenharmony_ci     * @since 10
150361847f8eSopenharmony_ci     * @deprecated since 10
150461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hfp/hfp.HandsFreeAudioGatewayProfile.on#event:connectionStateChange
150561847f8eSopenharmony_ci     */
150661847f8eSopenharmony_ci    on(type: 'connectionStateChange', callback: Callback<StateChangeParam>): void;
150761847f8eSopenharmony_ci
150861847f8eSopenharmony_ci    /**
150961847f8eSopenharmony_ci     * Unsubscribe the event reported when the profile connection state changes .
151061847f8eSopenharmony_ci     *
151161847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
151261847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
151361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
151461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
151561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
151661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
151761847f8eSopenharmony_ci     * @since 9
151861847f8eSopenharmony_ci     * @deprecated since 10
151961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hfp/hfp.HandsFreeAudioGatewayProfile.off#event:connectionStateChange
152061847f8eSopenharmony_ci     */
152161847f8eSopenharmony_ci    /**
152261847f8eSopenharmony_ci     * Unsubscribe the event reported when the profile connection state changes.
152361847f8eSopenharmony_ci     * The permission required by this interface is changed to ACCESS_BLUETOOTH.
152461847f8eSopenharmony_ci     *
152561847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
152661847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
152761847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
152861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
152961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
153061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
153161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
153261847f8eSopenharmony_ci     * @since 10
153361847f8eSopenharmony_ci     * @deprecated since 10
153461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hfp/hfp.HandsFreeAudioGatewayProfile.off#event:connectionStateChange
153561847f8eSopenharmony_ci     */
153661847f8eSopenharmony_ci    off(type: 'connectionStateChange', callback?: Callback<StateChangeParam>): void;
153761847f8eSopenharmony_ci  }
153861847f8eSopenharmony_ci
153961847f8eSopenharmony_ci  /**
154061847f8eSopenharmony_ci   * Manager hid host profile.
154161847f8eSopenharmony_ci   *
154261847f8eSopenharmony_ci   * @typedef HidHostProfile
154361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
154461847f8eSopenharmony_ci   * @since 9
154561847f8eSopenharmony_ci   * @deprecated since 10
154661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.hid/hid.HidHostProfile
154761847f8eSopenharmony_ci   */
154861847f8eSopenharmony_ci  interface HidHostProfile extends BaseProfile {
154961847f8eSopenharmony_ci    /**
155061847f8eSopenharmony_ci     * Connect to device with hid host.
155161847f8eSopenharmony_ci     *
155261847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH
155361847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to connect.
155461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
155561847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
155661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
155761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
155861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
155961847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
156061847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
156161847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
156261847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
156361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
156461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
156561847f8eSopenharmony_ci     * @since 9
156661847f8eSopenharmony_ci     * @deprecated since 10
156761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hid/hid.HidHostProfile#connect
156861847f8eSopenharmony_ci     */
156961847f8eSopenharmony_ci    /**
157061847f8eSopenharmony_ci     * Connect to device with hid host.
157161847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH and MANAGE_BLUETOOTH.
157261847f8eSopenharmony_ci     *
157361847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH and ohos.permission.MANAGE_BLUETOOTH
157461847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to connect.
157561847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
157661847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
157761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
157861847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
157961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
158061847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
158161847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
158261847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
158361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
158461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
158561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
158661847f8eSopenharmony_ci     * @since 10
158761847f8eSopenharmony_ci     * @deprecated since 10
158861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hid/hid.HidHostProfile#connect
158961847f8eSopenharmony_ci     */
159061847f8eSopenharmony_ci    connect(device: string): void;
159161847f8eSopenharmony_ci
159261847f8eSopenharmony_ci    /**
159361847f8eSopenharmony_ci     * Disconnect to device with hid host.
159461847f8eSopenharmony_ci     *
159561847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH
159661847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to disconnect.
159761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
159861847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
159961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
160061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
160161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
160261847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
160361847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
160461847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
160561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
160661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
160761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
160861847f8eSopenharmony_ci     * @since 9
160961847f8eSopenharmony_ci     * @deprecated since 10
161061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hid/hid.HidHostProfile#disconnect
161161847f8eSopenharmony_ci     */
161261847f8eSopenharmony_ci    /**
161361847f8eSopenharmony_ci     * Disconnect to device with hid host.
161461847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH and MANAGE_BLUETOOTH.
161561847f8eSopenharmony_ci     *
161661847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH and ohos.permission.MANAGE_BLUETOOTH
161761847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to disconnect.
161861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
161961847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
162061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
162161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
162261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
162361847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
162461847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
162561847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
162661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
162761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
162861847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
162961847f8eSopenharmony_ci     * @since 10
163061847f8eSopenharmony_ci     * @deprecated since 10
163161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hid/hid.HidHostProfile#disconnect
163261847f8eSopenharmony_ci     */
163361847f8eSopenharmony_ci    disconnect(device: string): void;
163461847f8eSopenharmony_ci
163561847f8eSopenharmony_ci    /**
163661847f8eSopenharmony_ci     * Subscribe the event reported when the profile connection state changes .
163761847f8eSopenharmony_ci     *
163861847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
163961847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
164061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
164161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
164261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
164361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
164461847f8eSopenharmony_ci     * @since 9
164561847f8eSopenharmony_ci     * @deprecated since 10
164661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hid/hid.HidHostProfile.on#event:connectionStateChange
164761847f8eSopenharmony_ci     */
164861847f8eSopenharmony_ci    /**
164961847f8eSopenharmony_ci     * Subscribe the event reported when the profile connection state changes.
165061847f8eSopenharmony_ci     * The permission required by this interface is changed to ACCESS_BLUETOOTH.
165161847f8eSopenharmony_ci     *
165261847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
165361847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
165461847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
165561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
165661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
165761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
165861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
165961847f8eSopenharmony_ci     * @since 10
166061847f8eSopenharmony_ci     * @deprecated since 10
166161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hid/hid.HidHostProfile.on#event:connectionStateChange
166261847f8eSopenharmony_ci     */
166361847f8eSopenharmony_ci    on(type: 'connectionStateChange', callback: Callback<StateChangeParam>): void;
166461847f8eSopenharmony_ci
166561847f8eSopenharmony_ci    /**
166661847f8eSopenharmony_ci     * Unsubscribe the event reported when the profile connection state changes.
166761847f8eSopenharmony_ci     *
166861847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for.
166961847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
167061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
167161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
167261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
167361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
167461847f8eSopenharmony_ci     * @since 9
167561847f8eSopenharmony_ci     * @deprecated since 10
167661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hid/hid.HidHostProfile.off#event:connectionStateChange
167761847f8eSopenharmony_ci     */
167861847f8eSopenharmony_ci    /**
167961847f8eSopenharmony_ci     * Unsubscribe the event reported when the profile connection state changes.
168061847f8eSopenharmony_ci     * The permission required by this interface is changed to ACCESS_BLUETOOTH.
168161847f8eSopenharmony_ci     *
168261847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
168361847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for.
168461847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
168561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
168661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
168761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
168861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
168961847f8eSopenharmony_ci     * @since 10
169061847f8eSopenharmony_ci     * @deprecated since 10
169161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.hid/hid.HidHostProfile.off#event:connectionStateChange
169261847f8eSopenharmony_ci     */
169361847f8eSopenharmony_ci    off(type: 'connectionStateChange', callback?: Callback<StateChangeParam>): void;
169461847f8eSopenharmony_ci  }
169561847f8eSopenharmony_ci
169661847f8eSopenharmony_ci  /**
169761847f8eSopenharmony_ci   * Manager pan profile.
169861847f8eSopenharmony_ci   *
169961847f8eSopenharmony_ci   * @typedef PanProfile
170061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
170161847f8eSopenharmony_ci   * @since 9
170261847f8eSopenharmony_ci   * @deprecated since 10
170361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.pan/pan.PanProfile
170461847f8eSopenharmony_ci   */
170561847f8eSopenharmony_ci  interface PanProfile extends BaseProfile {
170661847f8eSopenharmony_ci    /**
170761847f8eSopenharmony_ci     * Disconnect to device with pan.
170861847f8eSopenharmony_ci     *
170961847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
171061847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to disconnect.
171161847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
171261847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
171361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
171461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
171561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
171661847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
171761847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
171861847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
171961847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
172061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
172161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
172261847f8eSopenharmony_ci     * @since 9
172361847f8eSopenharmony_ci     * @deprecated since 10
172461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.pan/pan.PanProfile#disconnect
172561847f8eSopenharmony_ci     */
172661847f8eSopenharmony_ci    /**
172761847f8eSopenharmony_ci     * Disconnect to device with pan.
172861847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
172961847f8eSopenharmony_ci     *
173061847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
173161847f8eSopenharmony_ci     * @param { string } device - The address of the remote device to disconnect.
173261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
173361847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
173461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
173561847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
173661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
173761847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
173861847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
173961847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
174061847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
174161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
174261847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
174361847f8eSopenharmony_ci     * @since 10
174461847f8eSopenharmony_ci     * @deprecated since 10
174561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.pan/pan.PanProfile#disconnect
174661847f8eSopenharmony_ci     */
174761847f8eSopenharmony_ci    disconnect(device: string): void;
174861847f8eSopenharmony_ci
174961847f8eSopenharmony_ci    /**
175061847f8eSopenharmony_ci     * Subscribe the event reported when the profile connection state changes .
175161847f8eSopenharmony_ci     *
175261847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
175361847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
175461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
175561847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
175661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
175761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
175861847f8eSopenharmony_ci     * @since 9
175961847f8eSopenharmony_ci     * @deprecated since 10
176061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.pan/pan.PanProfile.on#event:connectionStateChange
176161847f8eSopenharmony_ci     */
176261847f8eSopenharmony_ci    /**
176361847f8eSopenharmony_ci     * Subscribe the event reported when the profile connection state changes.
176461847f8eSopenharmony_ci     * The permission required by this interface is changed to ACCESS_BLUETOOTH.
176561847f8eSopenharmony_ci     *
176661847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
176761847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for .
176861847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
176961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
177061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
177161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
177261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
177361847f8eSopenharmony_ci     * @since 10
177461847f8eSopenharmony_ci     * @deprecated since 10
177561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.pan/pan.PanProfile.on#event:connectionStateChange
177661847f8eSopenharmony_ci     */
177761847f8eSopenharmony_ci    on(type: 'connectionStateChange', callback: Callback<StateChangeParam>): void;
177861847f8eSopenharmony_ci
177961847f8eSopenharmony_ci    /**
178061847f8eSopenharmony_ci     * Unsubscribe the event reported when the profile connection state changes.
178161847f8eSopenharmony_ci     *
178261847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for.
178361847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
178461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
178561847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
178661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
178761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
178861847f8eSopenharmony_ci     * @since 9
178961847f8eSopenharmony_ci     * @deprecated since 10
179061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.pan/pan.PanProfile.off#event:connectionStateChange
179161847f8eSopenharmony_ci     */
179261847f8eSopenharmony_ci    /**
179361847f8eSopenharmony_ci     * Unsubscribe the event reported when the profile connection state changes.
179461847f8eSopenharmony_ci     * The permission required by this interface is changed to ACCESS_BLUETOOTH.
179561847f8eSopenharmony_ci     *
179661847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
179761847f8eSopenharmony_ci     * @param { 'connectionStateChange' } type - Type of the profile connection state changes event to listen for.
179861847f8eSopenharmony_ci     * @param { Callback<StateChangeParam> } callback - Callback used to listen for event.
179961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
180061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
180161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
180261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
180361847f8eSopenharmony_ci     * @since 10
180461847f8eSopenharmony_ci     * @deprecated since 10
180561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.pan/pan.PanProfile.off#event:connectionStateChange
180661847f8eSopenharmony_ci     */
180761847f8eSopenharmony_ci    off(type: 'connectionStateChange', callback?: Callback<StateChangeParam>): void;
180861847f8eSopenharmony_ci
180961847f8eSopenharmony_ci    /**
181061847f8eSopenharmony_ci     * Enable bluetooth tethering.
181161847f8eSopenharmony_ci     *
181261847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH
181361847f8eSopenharmony_ci     * @param { boolean } enable - Specifies whether to enable tethering. The value {@code true} indicates
181461847f8eSopenharmony_ci     * that tethering is enabled, and the value {@code false} indicates that tethering is disabled.
181561847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
181661847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
181761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
181861847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
181961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
182061847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
182161847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
182261847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
182361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
182461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
182561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
182661847f8eSopenharmony_ci     * @since 9
182761847f8eSopenharmony_ci     * @deprecated since 10
182861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.pan/pan.PanProfile#setTethering
182961847f8eSopenharmony_ci     */
183061847f8eSopenharmony_ci    /**
183161847f8eSopenharmony_ci     * Enable bluetooth tethering.
183261847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH and MANAGE_BLUETOOTH.
183361847f8eSopenharmony_ci     *
183461847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH and ohos.permission.MANAGE_BLUETOOTH
183561847f8eSopenharmony_ci     * @param { boolean } enable - Specifies whether to enable tethering. The value {@code true} indicates
183661847f8eSopenharmony_ci     * that tethering is enabled, and the value {@code false} indicates that tethering is disabled.
183761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
183861847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
183961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
184061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
184161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
184261847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
184361847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
184461847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
184561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
184661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
184761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
184861847f8eSopenharmony_ci     * @since 10
184961847f8eSopenharmony_ci     * @deprecated since 10
185061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.pan/pan.PanProfile#setTethering
185161847f8eSopenharmony_ci     */
185261847f8eSopenharmony_ci    setTethering(enable: boolean): void;
185361847f8eSopenharmony_ci
185461847f8eSopenharmony_ci    /**
185561847f8eSopenharmony_ci     * Obtains the tethering enable or disable.
185661847f8eSopenharmony_ci     *
185761847f8eSopenharmony_ci     * @returns { boolean } Returns the value {@code true} is tethering is on, returns {@code false} otherwise.
185861847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
185961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
186061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
186161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
186261847f8eSopenharmony_ci     * @since 9
186361847f8eSopenharmony_ci     * @deprecated since 10
186461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.pan/pan.PanProfile#isTetheringOn
186561847f8eSopenharmony_ci     */
186661847f8eSopenharmony_ci    /**
186761847f8eSopenharmony_ci     * Obtains the tethering enable or disable.
186861847f8eSopenharmony_ci     * The permission required by this interface is changed to ACCESS_BLUETOOTH.
186961847f8eSopenharmony_ci     *
187061847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
187161847f8eSopenharmony_ci     * @returns { boolean } Returns the value {@code true} is tethering is on, returns {@code false} otherwise.
187261847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs.
187361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
187461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
187561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
187661847f8eSopenharmony_ci     * @since 10
187761847f8eSopenharmony_ci     * @deprecated since 10
187861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.pan/pan.PanProfile#isTetheringOn
187961847f8eSopenharmony_ci     */
188061847f8eSopenharmony_ci    isTetheringOn(): boolean;
188161847f8eSopenharmony_ci  }
188261847f8eSopenharmony_ci
188361847f8eSopenharmony_ci  /**
188461847f8eSopenharmony_ci   * Provides methods to operate or manage Bluetooth.
188561847f8eSopenharmony_ci   *
188661847f8eSopenharmony_ci   * @namespace BLE
188761847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
188861847f8eSopenharmony_ci   * @since 9
188961847f8eSopenharmony_ci   * @deprecated since 10
189061847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble
189161847f8eSopenharmony_ci   */
189261847f8eSopenharmony_ci  namespace BLE {
189361847f8eSopenharmony_ci    /**
189461847f8eSopenharmony_ci     * create a JavaScript Gatt server instance.
189561847f8eSopenharmony_ci     *
189661847f8eSopenharmony_ci     * @returns { GattServer } Returns a JavaScript Gatt server instance {@code GattServer}.
189761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
189861847f8eSopenharmony_ci     * @since 9
189961847f8eSopenharmony_ci     * @deprecated since 10
190061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#createGattServer
190161847f8eSopenharmony_ci     */
190261847f8eSopenharmony_ci    function createGattServer(): GattServer;
190361847f8eSopenharmony_ci
190461847f8eSopenharmony_ci    /**
190561847f8eSopenharmony_ci     * create a JavaScript Gatt client device instance.
190661847f8eSopenharmony_ci     *
190761847f8eSopenharmony_ci     * @param { string } deviceId - The address of the remote device.
190861847f8eSopenharmony_ci     * @returns { GattClientDevice } Returns a JavaScript Gatt client device instance {@code GattClientDevice}.
190961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
191061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
191161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
191261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
191361847f8eSopenharmony_ci     * @since 9
191461847f8eSopenharmony_ci     * @deprecated since 10
191561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#createGattClientDevice
191661847f8eSopenharmony_ci     */
191761847f8eSopenharmony_ci    function createGattClientDevice(deviceId: string): GattClientDevice;
191861847f8eSopenharmony_ci
191961847f8eSopenharmony_ci    /**
192061847f8eSopenharmony_ci     * Obtains the list of devices in the connected status.
192161847f8eSopenharmony_ci     *
192261847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
192361847f8eSopenharmony_ci     * @returns { Array<string> } Returns the list of device address.
192461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
192561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
192661847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
192761847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
192861847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
192961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
193061847f8eSopenharmony_ci     * @since 9
193161847f8eSopenharmony_ci     * @deprecated since 10
193261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#getConnectedBLEDevices
193361847f8eSopenharmony_ci     */
193461847f8eSopenharmony_ci    /**
193561847f8eSopenharmony_ci     * Obtains the list of devices in the connected status.
193661847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
193761847f8eSopenharmony_ci     *
193861847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
193961847f8eSopenharmony_ci     * @returns { Array<string> } Returns the list of device address.
194061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
194161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
194261847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
194361847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
194461847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
194561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
194661847f8eSopenharmony_ci     * @since 10
194761847f8eSopenharmony_ci     * @deprecated since 10
194861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#getConnectedBLEDevices
194961847f8eSopenharmony_ci     */
195061847f8eSopenharmony_ci    function getConnectedBLEDevices(): Array<string>;
195161847f8eSopenharmony_ci
195261847f8eSopenharmony_ci    /**
195361847f8eSopenharmony_ci     * Starts scanning for specified BLE devices with filters.
195461847f8eSopenharmony_ci     *
195561847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.MANAGE_BLUETOOTH and ohos.permission.LOCATION
195661847f8eSopenharmony_ci     *     and ohos.permission.APPROXIMATELY_LOCATION
195761847f8eSopenharmony_ci     * @param { Array<ScanFilter> } filters - Indicates the list of filters used to filter out specified devices.
195861847f8eSopenharmony_ci     * If you do not want to use filter, set this parameter to {@code null}.
195961847f8eSopenharmony_ci     * @param { ScanOptions } options - Indicates the parameters for scanning and if the user does not assign a value, the default value will be used.
196061847f8eSopenharmony_ci     * {@link ScanOptions#interval} set to 0, {@link ScanOptions#dutyMode} set to {@link SCAN_MODE_LOW_POWER}
196161847f8eSopenharmony_ci     * and {@link ScanOptions#matchMode} set to {@link MATCH_MODE_AGGRESSIVE}.
196261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
196361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
196461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
196561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
196661847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
196761847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
196861847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
196961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
197061847f8eSopenharmony_ci     * @since 9
197161847f8eSopenharmony_ci     * @deprecated since 10
197261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#startBLEScan
197361847f8eSopenharmony_ci     */
197461847f8eSopenharmony_ci    /**
197561847f8eSopenharmony_ci     * Starts scanning for specified BLE devices with filters.
197661847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH and MANAGE_BLUETOOTH and LOCATION to ACCESS_BLUETOOTH.
197761847f8eSopenharmony_ci     *
197861847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
197961847f8eSopenharmony_ci     * @param { Array<ScanFilter> } filters - Indicates the list of filters used to filter out specified devices.
198061847f8eSopenharmony_ci     * If you do not want to use filter, set this parameter to {@code null}.
198161847f8eSopenharmony_ci     * @param { ScanOptions } options - Indicates the parameters for scanning and if the user does not assign a value, the default value will be used.
198261847f8eSopenharmony_ci     * {@link ScanOptions#interval} set to 0, {@link ScanOptions#dutyMode} set to {@link SCAN_MODE_LOW_POWER}
198361847f8eSopenharmony_ci     * and {@link ScanOptions#matchMode} set to {@link MATCH_MODE_AGGRESSIVE}.
198461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
198561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
198661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
198761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
198861847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
198961847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
199061847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
199161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
199261847f8eSopenharmony_ci     * @since 10
199361847f8eSopenharmony_ci     * @deprecated since 10
199461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#startBLEScan
199561847f8eSopenharmony_ci     */
199661847f8eSopenharmony_ci    function startBLEScan(filters: Array<ScanFilter>, options?: ScanOptions): void;
199761847f8eSopenharmony_ci
199861847f8eSopenharmony_ci    /**
199961847f8eSopenharmony_ci     * Stops BLE scanning.
200061847f8eSopenharmony_ci     *
200161847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH
200261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
200361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
200461847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
200561847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
200661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
200761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
200861847f8eSopenharmony_ci     * @since 9
200961847f8eSopenharmony_ci     * @deprecated since 10
201061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#stopBLEScan
201161847f8eSopenharmony_ci     */
201261847f8eSopenharmony_ci    /**
201361847f8eSopenharmony_ci     * Stops BLE scanning.
201461847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
201561847f8eSopenharmony_ci     *
201661847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
201761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
201861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
201961847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
202061847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
202161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
202261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
202361847f8eSopenharmony_ci     * @since 10
202461847f8eSopenharmony_ci     * @deprecated since 10
202561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#stopBLEScan
202661847f8eSopenharmony_ci     */
202761847f8eSopenharmony_ci    function stopBLEScan(): void;
202861847f8eSopenharmony_ci
202961847f8eSopenharmony_ci    /**
203061847f8eSopenharmony_ci     * Subscribe BLE scan result.
203161847f8eSopenharmony_ci     *
203261847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
203361847f8eSopenharmony_ci     * @param { 'BLEDeviceFind' } type - Type of the scan result event to listen for.
203461847f8eSopenharmony_ci     * @param { Callback<Array<ScanResult>> } callback - Callback used to listen for the scan result event.
203561847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
203661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
203761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
203861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
203961847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
204061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
204161847f8eSopenharmony_ci     * @since 9
204261847f8eSopenharmony_ci     * @deprecated since 10
204361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.on#event:BLEDeviceFind
204461847f8eSopenharmony_ci     */
204561847f8eSopenharmony_ci    /**
204661847f8eSopenharmony_ci     * Subscribe BLE scan result.
204761847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
204861847f8eSopenharmony_ci     *
204961847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
205061847f8eSopenharmony_ci     * @param { 'BLEDeviceFind' } type - Type of the scan result event to listen for.
205161847f8eSopenharmony_ci     * @param { Callback<Array<ScanResult>> } callback - Callback used to listen for the scan result event.
205261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
205361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
205461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
205561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
205661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
205761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
205861847f8eSopenharmony_ci     * @since 10
205961847f8eSopenharmony_ci     * @deprecated since 10
206061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.on#event:BLEDeviceFind
206161847f8eSopenharmony_ci     */
206261847f8eSopenharmony_ci    function on(type: 'BLEDeviceFind', callback: Callback<Array<ScanResult>>): void;
206361847f8eSopenharmony_ci
206461847f8eSopenharmony_ci    /**
206561847f8eSopenharmony_ci     * Unsubscribe BLE scan result.
206661847f8eSopenharmony_ci     *
206761847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
206861847f8eSopenharmony_ci     * @param { 'BLEDeviceFind' } type - Type of the scan result event to listen for.
206961847f8eSopenharmony_ci     * @param { Callback<Array<ScanResult>> } callback - Callback used to listen for the scan result event.
207061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
207161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
207261847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
207361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
207461847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
207561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
207661847f8eSopenharmony_ci     * @since 9
207761847f8eSopenharmony_ci     * @deprecated since 10
207861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.off#event:BLEDeviceFind
207961847f8eSopenharmony_ci     */
208061847f8eSopenharmony_ci    /**
208161847f8eSopenharmony_ci     * Unsubscribe BLE scan result.
208261847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
208361847f8eSopenharmony_ci     *
208461847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
208561847f8eSopenharmony_ci     * @param { 'BLEDeviceFind' } type - Type of the scan result event to listen for.
208661847f8eSopenharmony_ci     * @param { Callback<Array<ScanResult>> } callback - Callback used to listen for the scan result event.
208761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
208861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
208961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
209061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
209161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
209261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
209361847f8eSopenharmony_ci     * @since 10
209461847f8eSopenharmony_ci     * @deprecated since 10
209561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.off#event:BLEDeviceFind
209661847f8eSopenharmony_ci     */
209761847f8eSopenharmony_ci    function off(type: 'BLEDeviceFind', callback?: Callback<Array<ScanResult>>): void;
209861847f8eSopenharmony_ci  }
209961847f8eSopenharmony_ci
210061847f8eSopenharmony_ci  /**
210161847f8eSopenharmony_ci   * Manages GATT server. Before calling an Gatt server method, you must use {@link createGattServer} to create an GattServer instance.
210261847f8eSopenharmony_ci   *
210361847f8eSopenharmony_ci   * @typedef GattServer
210461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
210561847f8eSopenharmony_ci   * @since 9
210661847f8eSopenharmony_ci   * @deprecated since 10
210761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.GattServer
210861847f8eSopenharmony_ci   */
210961847f8eSopenharmony_ci  interface GattServer {
211061847f8eSopenharmony_ci    /**
211161847f8eSopenharmony_ci     * Starts BLE advertising.
211261847f8eSopenharmony_ci     *
211361847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH
211461847f8eSopenharmony_ci     * @param { AdvertiseSetting } setting - Indicates the settings for BLE advertising.
211561847f8eSopenharmony_ci     * If you need to use the default value, set this parameter to {@code null}.
211661847f8eSopenharmony_ci     * @param { AdvertiseData } advData - Indicates the advertising data.
211761847f8eSopenharmony_ci     * @param { AdvertiseData } advResponse - Indicates the scan response associated with the advertising data.
211861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
211961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
212061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
212161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
212261847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
212361847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
212461847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
212561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
212661847f8eSopenharmony_ci     * @since 9
212761847f8eSopenharmony_ci     * @deprecated since 10
212861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#startAdvertising
212961847f8eSopenharmony_ci     */
213061847f8eSopenharmony_ci    /**
213161847f8eSopenharmony_ci     * Starts BLE advertising.
213261847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
213361847f8eSopenharmony_ci     *
213461847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
213561847f8eSopenharmony_ci     * @param { AdvertiseSetting } setting - Indicates the settings for BLE advertising.
213661847f8eSopenharmony_ci     * If you need to use the default value, set this parameter to {@code null}.
213761847f8eSopenharmony_ci     * @param { AdvertiseData } advData - Indicates the advertising data.
213861847f8eSopenharmony_ci     * @param { AdvertiseData } advResponse - Indicates the scan response associated with the advertising data.
213961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
214061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
214161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
214261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
214361847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
214461847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
214561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
214661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
214761847f8eSopenharmony_ci     * @since 10
214861847f8eSopenharmony_ci     * @deprecated since 10
214961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#startAdvertising
215061847f8eSopenharmony_ci     */
215161847f8eSopenharmony_ci    startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void;
215261847f8eSopenharmony_ci
215361847f8eSopenharmony_ci    /**
215461847f8eSopenharmony_ci     * Stops BLE advertising.
215561847f8eSopenharmony_ci     *
215661847f8eSopenharmony_ci     * @permission ohos.permission.DISCOVER_BLUETOOTH
215761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
215861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
215961847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
216061847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
216161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
216261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
216361847f8eSopenharmony_ci     * @since 9
216461847f8eSopenharmony_ci     * @deprecated since 10
216561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#stopAdvertising
216661847f8eSopenharmony_ci     */
216761847f8eSopenharmony_ci    /**
216861847f8eSopenharmony_ci     * Stops BLE advertising.
216961847f8eSopenharmony_ci     * The permission required by this interface is changed from DISCOVER_BLUETOOTH to ACCESS_BLUETOOTH.
217061847f8eSopenharmony_ci     *
217161847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
217261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
217361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
217461847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
217561847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
217661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
217761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
217861847f8eSopenharmony_ci     * @since 10
217961847f8eSopenharmony_ci     * @deprecated since 10
218061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble#stopAdvertising
218161847f8eSopenharmony_ci     */
218261847f8eSopenharmony_ci    stopAdvertising(): void;
218361847f8eSopenharmony_ci
218461847f8eSopenharmony_ci    /**
218561847f8eSopenharmony_ci     * Adds a specified service to be hosted.
218661847f8eSopenharmony_ci     * <p>The added service and its characteristics are provided by the local device.
218761847f8eSopenharmony_ci     *
218861847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
218961847f8eSopenharmony_ci     * @param { GattService } service - Indicates the service to add.
219061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
219161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
219261847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
219361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
219461847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
219561847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
219661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
219761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
219861847f8eSopenharmony_ci     * @since 9
219961847f8eSopenharmony_ci     * @deprecated since 10
220061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer#addService
220161847f8eSopenharmony_ci     */
220261847f8eSopenharmony_ci    /**
220361847f8eSopenharmony_ci     * Adds a specified service to be hosted.
220461847f8eSopenharmony_ci     * <p>The added service and its characteristics are provided by the local device.
220561847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
220661847f8eSopenharmony_ci     *
220761847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
220861847f8eSopenharmony_ci     * @param { GattService } service - Indicates the service to add.
220961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
221061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
221161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
221261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
221361847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
221461847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
221561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
221661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
221761847f8eSopenharmony_ci     * @since 10
221861847f8eSopenharmony_ci     * @deprecated since 10
221961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer#addService
222061847f8eSopenharmony_ci     */
222161847f8eSopenharmony_ci    addService(service: GattService): void;
222261847f8eSopenharmony_ci
222361847f8eSopenharmony_ci    /**
222461847f8eSopenharmony_ci     * Removes a specified service from the list of GATT services provided by this device.
222561847f8eSopenharmony_ci     *
222661847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
222761847f8eSopenharmony_ci     * @param { string } serviceUuid - Indicates the UUID of the service to remove.
222861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
222961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
223061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
223161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
223261847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
223361847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
223461847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
223561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
223661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
223761847f8eSopenharmony_ci     * @since 9
223861847f8eSopenharmony_ci     * @deprecated since 10
223961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer#removeService
224061847f8eSopenharmony_ci     */
224161847f8eSopenharmony_ci    /**
224261847f8eSopenharmony_ci     * Removes a specified service from the list of GATT services provided by this device.
224361847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
224461847f8eSopenharmony_ci     *
224561847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
224661847f8eSopenharmony_ci     * @param { string } serviceUuid - Indicates the UUID of the service to remove.
224761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
224861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
224961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
225061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
225161847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
225261847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
225361847f8eSopenharmony_ci     * @throws { BusinessError } 2900004 - Profile not supported.
225461847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
225561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
225661847f8eSopenharmony_ci     * @since 10
225761847f8eSopenharmony_ci     * @deprecated since 10
225861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer#removeService
225961847f8eSopenharmony_ci     */
226061847f8eSopenharmony_ci    removeService(serviceUuid: string): void;
226161847f8eSopenharmony_ci
226261847f8eSopenharmony_ci    /**
226361847f8eSopenharmony_ci     * Closes this {@code GattServer} object and unregisters its callbacks.
226461847f8eSopenharmony_ci     *
226561847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
226661847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
226761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
226861847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
226961847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
227061847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
227161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
227261847f8eSopenharmony_ci     * @since 9
227361847f8eSopenharmony_ci     * @deprecated since 10
227461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer#close
227561847f8eSopenharmony_ci     */
227661847f8eSopenharmony_ci    /**
227761847f8eSopenharmony_ci     * Closes this {@code GattServer} object and unregisters its callbacks.
227861847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
227961847f8eSopenharmony_ci     *
228061847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
228161847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
228261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
228361847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
228461847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
228561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
228661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
228761847f8eSopenharmony_ci     * @since 10
228861847f8eSopenharmony_ci     * @deprecated since 10
228961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer#close
229061847f8eSopenharmony_ci     */
229161847f8eSopenharmony_ci    close(): void;
229261847f8eSopenharmony_ci
229361847f8eSopenharmony_ci    /**
229461847f8eSopenharmony_ci     * Sends a notification of a change in a specified local characteristic.
229561847f8eSopenharmony_ci     * <p>This method should be called for every BLE peripheral device that has requested notifications.
229661847f8eSopenharmony_ci     *
229761847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
229861847f8eSopenharmony_ci     * @param { string } deviceId - Indicates the address of the BLE peripheral device to receive the notification.
229961847f8eSopenharmony_ci     * @param { NotifyCharacteristic } notifyCharacteristic - Indicates the local characteristic that has changed.
230061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
230161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
230261847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
230361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
230461847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
230561847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
230661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
230761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
230861847f8eSopenharmony_ci     * @since 9
230961847f8eSopenharmony_ci     * @deprecated since 10
231061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer#notifyCharacteristicChanged
231161847f8eSopenharmony_ci     */
231261847f8eSopenharmony_ci    /**
231361847f8eSopenharmony_ci     * Sends a notification of a change in a specified local characteristic.
231461847f8eSopenharmony_ci     * <p>This method should be called for every BLE peripheral device that has requested notifications.
231561847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
231661847f8eSopenharmony_ci     *
231761847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
231861847f8eSopenharmony_ci     * @param { string } deviceId - Indicates the address of the BLE peripheral device to receive the notification.
231961847f8eSopenharmony_ci     * @param { NotifyCharacteristic } notifyCharacteristic - Indicates the local characteristic that has changed.
232061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
232161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
232261847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
232361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
232461847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
232561847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
232661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
232761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
232861847f8eSopenharmony_ci     * @since 10
232961847f8eSopenharmony_ci     * @deprecated since 10
233061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer#notifyCharacteristicChanged
233161847f8eSopenharmony_ci     */
233261847f8eSopenharmony_ci    notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): void;
233361847f8eSopenharmony_ci
233461847f8eSopenharmony_ci    /**
233561847f8eSopenharmony_ci     * Sends a response to a specified read or write request to a given BLE peripheral device.
233661847f8eSopenharmony_ci     *
233761847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
233861847f8eSopenharmony_ci     * @param { ServerResponse } serverResponse - Indicates the response parameters {@link ServerResponse}.
233961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
234061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
234161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
234261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
234361847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
234461847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
234561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
234661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
234761847f8eSopenharmony_ci     * @since 9
234861847f8eSopenharmony_ci     * @deprecated since 10
234961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer#sendResponse
235061847f8eSopenharmony_ci     */
235161847f8eSopenharmony_ci    /**
235261847f8eSopenharmony_ci     * Sends a response to a specified read or write request to a given BLE peripheral device.
235361847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
235461847f8eSopenharmony_ci     *
235561847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
235661847f8eSopenharmony_ci     * @param { ServerResponse } serverResponse - Indicates the response parameters {@link ServerResponse}.
235761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
235861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
235961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
236061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
236161847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
236261847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
236361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
236461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
236561847f8eSopenharmony_ci     * @since 10
236661847f8eSopenharmony_ci     * @deprecated since 10
236761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer#sendResponse
236861847f8eSopenharmony_ci     */
236961847f8eSopenharmony_ci    sendResponse(serverResponse: ServerResponse): void;
237061847f8eSopenharmony_ci
237161847f8eSopenharmony_ci    /**
237261847f8eSopenharmony_ci     * Subscribe characteristic read event.
237361847f8eSopenharmony_ci     *
237461847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
237561847f8eSopenharmony_ci     * @param { 'characteristicRead' } type - Type of the characteristic read event to listen for.
237661847f8eSopenharmony_ci     * @param { Callback<CharacteristicReadRequest> } callback - Callback used to listen for the characteristic read event.
237761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
237861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
237961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
238061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
238161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
238261847f8eSopenharmony_ci     * @since 9
238361847f8eSopenharmony_ci     * @deprecated since 10
238461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.on#event:characteristicRead
238561847f8eSopenharmony_ci     */
238661847f8eSopenharmony_ci    /**
238761847f8eSopenharmony_ci     * Subscribe characteristic read event.
238861847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
238961847f8eSopenharmony_ci     *
239061847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
239161847f8eSopenharmony_ci     * @param { 'characteristicRead' } type - Type of the characteristic read event to listen for.
239261847f8eSopenharmony_ci     * @param { Callback<CharacteristicReadRequest> } callback - Callback used to listen for the characteristic read event.
239361847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
239461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
239561847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
239661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
239761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
239861847f8eSopenharmony_ci     * @since 10
239961847f8eSopenharmony_ci     * @deprecated since 10
240061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.on#event:characteristicRead
240161847f8eSopenharmony_ci     */
240261847f8eSopenharmony_ci    on(type: 'characteristicRead', callback: Callback<CharacteristicReadRequest>): void;
240361847f8eSopenharmony_ci
240461847f8eSopenharmony_ci    /**
240561847f8eSopenharmony_ci     * Unsubscribe characteristic read event.
240661847f8eSopenharmony_ci     *
240761847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
240861847f8eSopenharmony_ci     * @param { 'characteristicRead' } type - Type of the characteristic read event to listen for.
240961847f8eSopenharmony_ci     * @param { Callback<CharacteristicReadRequest> } callback - Callback used to listen for the characteristic read event.
241061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
241161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
241261847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
241361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
241461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
241561847f8eSopenharmony_ci     * @since 9
241661847f8eSopenharmony_ci     * @deprecated since 10
241761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.off#event:characteristicRead
241861847f8eSopenharmony_ci     */
241961847f8eSopenharmony_ci    /**
242061847f8eSopenharmony_ci     * Unsubscribe characteristic read event.
242161847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
242261847f8eSopenharmony_ci     *
242361847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
242461847f8eSopenharmony_ci     * @param { 'characteristicRead' } type - Type of the characteristic read event to listen for.
242561847f8eSopenharmony_ci     * @param { Callback<CharacteristicReadRequest> } callback - Callback used to listen for the characteristic read event.
242661847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
242761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
242861847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
242961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
243061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
243161847f8eSopenharmony_ci     * @since 10
243261847f8eSopenharmony_ci     * @deprecated since 10
243361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.off#event:characteristicRead
243461847f8eSopenharmony_ci     */
243561847f8eSopenharmony_ci    off(type: 'characteristicRead', callback?: Callback<CharacteristicReadRequest>): void;
243661847f8eSopenharmony_ci
243761847f8eSopenharmony_ci    /**
243861847f8eSopenharmony_ci     * Subscribe characteristic write event.
243961847f8eSopenharmony_ci     *
244061847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
244161847f8eSopenharmony_ci     * @param { 'characteristicWrite' } type - Type of the characteristic write event to listen for.
244261847f8eSopenharmony_ci     * @param { Callback<CharacteristicWriteRequest> } callback - Callback used to listen for the characteristic write event.
244361847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
244461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
244561847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
244661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
244761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
244861847f8eSopenharmony_ci     * @since 9
244961847f8eSopenharmony_ci     * @deprecated since 10
245061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.on#event:characteristicWrite
245161847f8eSopenharmony_ci     */
245261847f8eSopenharmony_ci    /**
245361847f8eSopenharmony_ci     * Subscribe characteristic write event.
245461847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
245561847f8eSopenharmony_ci     *
245661847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
245761847f8eSopenharmony_ci     * @param { 'characteristicWrite' } type - Type of the characteristic write event to listen for.
245861847f8eSopenharmony_ci     * @param { Callback<CharacteristicWriteRequest> } callback - Callback used to listen for the characteristic write event.
245961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
246061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
246161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
246261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
246361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
246461847f8eSopenharmony_ci     * @since 10
246561847f8eSopenharmony_ci     * @deprecated since 10
246661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.on#event:characteristicWrite
246761847f8eSopenharmony_ci     */
246861847f8eSopenharmony_ci    on(type: 'characteristicWrite', callback: Callback<CharacteristicWriteRequest>): void;
246961847f8eSopenharmony_ci
247061847f8eSopenharmony_ci    /**
247161847f8eSopenharmony_ci     * Unsubscribe characteristic write event.
247261847f8eSopenharmony_ci     *
247361847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
247461847f8eSopenharmony_ci     * @param { 'characteristicWrite' } type - Type of the characteristic write event to listen for.
247561847f8eSopenharmony_ci     * @param { Callback<CharacteristicWriteRequest> } callback - Callback used to listen for the characteristic write event.
247661847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
247761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
247861847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
247961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
248061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
248161847f8eSopenharmony_ci     * @since 9
248261847f8eSopenharmony_ci     * @deprecated since 10
248361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.off#event:characteristicWrite
248461847f8eSopenharmony_ci     */
248561847f8eSopenharmony_ci    /**
248661847f8eSopenharmony_ci     * Unsubscribe characteristic write event.
248761847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
248861847f8eSopenharmony_ci     *
248961847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
249061847f8eSopenharmony_ci     * @param { 'characteristicWrite' } type - Type of the characteristic write event to listen for.
249161847f8eSopenharmony_ci     * @param { Callback<CharacteristicWriteRequest> } callback - Callback used to listen for the characteristic write event.
249261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
249361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
249461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
249561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
249661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
249761847f8eSopenharmony_ci     * @since 10
249861847f8eSopenharmony_ci     * @deprecated since 10
249961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.off#event:characteristicWrite
250061847f8eSopenharmony_ci     */
250161847f8eSopenharmony_ci    off(type: 'characteristicWrite', callback?: Callback<CharacteristicWriteRequest>): void;
250261847f8eSopenharmony_ci
250361847f8eSopenharmony_ci    /**
250461847f8eSopenharmony_ci     * Subscribe descriptor read event.
250561847f8eSopenharmony_ci     *
250661847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
250761847f8eSopenharmony_ci     * @param { 'descriptorRead' } type - Type of the descriptor read event to listen for.
250861847f8eSopenharmony_ci     * @param { Callback<DescriptorReadRequest> } callback - Callback used to listen for the descriptor read event.
250961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
251061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
251161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
251261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
251361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
251461847f8eSopenharmony_ci     * @since 9
251561847f8eSopenharmony_ci     * @deprecated since 10
251661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.on#event:descriptorRead
251761847f8eSopenharmony_ci     */
251861847f8eSopenharmony_ci    /**
251961847f8eSopenharmony_ci     * Subscribe descriptor read event.
252061847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
252161847f8eSopenharmony_ci     *
252261847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
252361847f8eSopenharmony_ci     * @param { 'descriptorRead' } type - Type of the descriptor read event to listen for.
252461847f8eSopenharmony_ci     * @param { Callback<DescriptorReadRequest> } callback - Callback used to listen for the descriptor read event.
252561847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
252661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
252761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
252861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
252961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
253061847f8eSopenharmony_ci     * @since 10
253161847f8eSopenharmony_ci     * @deprecated since 10
253261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.on#event:descriptorRead
253361847f8eSopenharmony_ci     */
253461847f8eSopenharmony_ci    on(type: 'descriptorRead', callback: Callback<DescriptorReadRequest>): void;
253561847f8eSopenharmony_ci
253661847f8eSopenharmony_ci    /**
253761847f8eSopenharmony_ci     * Unsubscribe descriptor read event.
253861847f8eSopenharmony_ci     *
253961847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
254061847f8eSopenharmony_ci     * @param { 'descriptorRead' } type - Type of the descriptor read event to listen for.
254161847f8eSopenharmony_ci     * @param { Callback<DescriptorReadRequest> } callback - Callback used to listen for the descriptor read event.
254261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
254361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
254461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
254561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
254661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
254761847f8eSopenharmony_ci     * @since 9
254861847f8eSopenharmony_ci     * @deprecated since 10
254961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.off#event:descriptorRead
255061847f8eSopenharmony_ci     */
255161847f8eSopenharmony_ci    /**
255261847f8eSopenharmony_ci     * Unsubscribe descriptor read event.
255361847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
255461847f8eSopenharmony_ci     *
255561847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
255661847f8eSopenharmony_ci     * @param { 'descriptorRead' } type - Type of the descriptor read event to listen for.
255761847f8eSopenharmony_ci     * @param { Callback<DescriptorReadRequest> } callback - Callback used to listen for the descriptor read event.
255861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
255961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
256061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
256161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
256261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
256361847f8eSopenharmony_ci     * @since 10
256461847f8eSopenharmony_ci     * @deprecated since 10
256561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.off#event:descriptorRead
256661847f8eSopenharmony_ci     */
256761847f8eSopenharmony_ci    off(type: 'descriptorRead', callback?: Callback<DescriptorReadRequest>): void;
256861847f8eSopenharmony_ci
256961847f8eSopenharmony_ci    /**
257061847f8eSopenharmony_ci     * Subscribe descriptor write event.
257161847f8eSopenharmony_ci     *
257261847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
257361847f8eSopenharmony_ci     * @param { 'descriptorWrite' } type - Type of the descriptor write event to listen for.
257461847f8eSopenharmony_ci     * @param { Callback<DescriptorWriteRequest> } callback - Callback used to listen for the descriptor write event.
257561847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
257661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
257761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
257861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
257961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
258061847f8eSopenharmony_ci     * @since 9
258161847f8eSopenharmony_ci     * @deprecated since 10
258261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.on#event:descriptorWrite
258361847f8eSopenharmony_ci     */
258461847f8eSopenharmony_ci    /**
258561847f8eSopenharmony_ci     * Subscribe descriptor write event.
258661847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
258761847f8eSopenharmony_ci     *
258861847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
258961847f8eSopenharmony_ci     * @param { 'descriptorWrite' } type - Type of the descriptor write event to listen for.
259061847f8eSopenharmony_ci     * @param { Callback<DescriptorWriteRequest> } callback - Callback used to listen for the descriptor write event.
259161847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
259261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
259361847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
259461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
259561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
259661847f8eSopenharmony_ci     * @since 10
259761847f8eSopenharmony_ci     * @deprecated since 10
259861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.on#event:descriptorWrite
259961847f8eSopenharmony_ci     */
260061847f8eSopenharmony_ci    on(type: 'descriptorWrite', callback: Callback<DescriptorWriteRequest>): void;
260161847f8eSopenharmony_ci
260261847f8eSopenharmony_ci    /**
260361847f8eSopenharmony_ci     * Unsubscribe descriptor write event.
260461847f8eSopenharmony_ci     *
260561847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
260661847f8eSopenharmony_ci     * @param { 'descriptorWrite' } type - Type of the descriptor write event to listen for.
260761847f8eSopenharmony_ci     * @param { Callback<DescriptorWriteRequest> } callback - Callback used to listen for the descriptor write event.
260861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
260961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
261061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
261161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
261261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
261361847f8eSopenharmony_ci     * @since 9
261461847f8eSopenharmony_ci     * @deprecated since 10
261561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.off#event:descriptorWrite
261661847f8eSopenharmony_ci     */
261761847f8eSopenharmony_ci    /**
261861847f8eSopenharmony_ci     * Unsubscribe descriptor write event.
261961847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
262061847f8eSopenharmony_ci     *
262161847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
262261847f8eSopenharmony_ci     * @param { 'descriptorWrite' } type - Type of the descriptor write event to listen for.
262361847f8eSopenharmony_ci     * @param { Callback<DescriptorWriteRequest> } callback - Callback used to listen for the descriptor write event.
262461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
262561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
262661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
262761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
262861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
262961847f8eSopenharmony_ci     * @since 10
263061847f8eSopenharmony_ci     * @deprecated since 10
263161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.off#event:descriptorWrite
263261847f8eSopenharmony_ci     */
263361847f8eSopenharmony_ci    off(type: 'descriptorWrite', callback?: Callback<DescriptorWriteRequest>): void;
263461847f8eSopenharmony_ci
263561847f8eSopenharmony_ci    /**
263661847f8eSopenharmony_ci     * Subscribe server connection state changed event.
263761847f8eSopenharmony_ci     *
263861847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
263961847f8eSopenharmony_ci     * @param { 'connectStateChange' } type - Type of the connection state changed event to listen for.
264061847f8eSopenharmony_ci     * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.
264161847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
264261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
264361847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
264461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
264561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
264661847f8eSopenharmony_ci     * @since 9
264761847f8eSopenharmony_ci     * @deprecated since 10
264861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.on#event:connectionStateChange
264961847f8eSopenharmony_ci     */
265061847f8eSopenharmony_ci    /**
265161847f8eSopenharmony_ci     * Subscribe server connection state changed event.
265261847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
265361847f8eSopenharmony_ci     *
265461847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
265561847f8eSopenharmony_ci     * @param { 'connectStateChange' } type - Type of the connection state changed event to listen for.
265661847f8eSopenharmony_ci     * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.
265761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
265861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
265961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
266061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
266161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
266261847f8eSopenharmony_ci     * @since 10
266361847f8eSopenharmony_ci     * @deprecated since 10
266461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.on#event:connectionStateChange
266561847f8eSopenharmony_ci     */
266661847f8eSopenharmony_ci    on(type: 'connectStateChange', callback: Callback<BLEConnectChangedState>): void;
266761847f8eSopenharmony_ci
266861847f8eSopenharmony_ci    /**
266961847f8eSopenharmony_ci     * Unsubscribe server connection state changed event.
267061847f8eSopenharmony_ci     *
267161847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
267261847f8eSopenharmony_ci     * @param { 'connectStateChange' } type - Type of the connection state changed event to listen for.
267361847f8eSopenharmony_ci     * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.
267461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
267561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
267661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
267761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
267861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
267961847f8eSopenharmony_ci     * @since 9
268061847f8eSopenharmony_ci     * @deprecated since 10
268161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.off#event:connectionStateChange
268261847f8eSopenharmony_ci     */
268361847f8eSopenharmony_ci    /**
268461847f8eSopenharmony_ci     * Unsubscribe server connection state changed event.
268561847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
268661847f8eSopenharmony_ci     *
268761847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
268861847f8eSopenharmony_ci     * @param { 'connectStateChange' } type - Type of the connection state changed event to listen for.
268961847f8eSopenharmony_ci     * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.
269061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
269161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
269261847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
269361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
269461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
269561847f8eSopenharmony_ci     * @since 10
269661847f8eSopenharmony_ci     * @deprecated since 10
269761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattServer.off#event:connectionStateChange
269861847f8eSopenharmony_ci     */
269961847f8eSopenharmony_ci    off(type: 'connectStateChange', callback?: Callback<BLEConnectChangedState>): void;
270061847f8eSopenharmony_ci  }
270161847f8eSopenharmony_ci
270261847f8eSopenharmony_ci  /**
270361847f8eSopenharmony_ci   * Manages GATT client. Before calling an Gatt client method, you must use {@link createGattClientDevice} to create an GattClientDevice instance.
270461847f8eSopenharmony_ci   *
270561847f8eSopenharmony_ci   * @typedef GattClientDevice
270661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
270761847f8eSopenharmony_ci   * @since 9
270861847f8eSopenharmony_ci   * @deprecated since 10
270961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.GattClientDevice
271061847f8eSopenharmony_ci   */
271161847f8eSopenharmony_ci  interface GattClientDevice {
271261847f8eSopenharmony_ci    /**
271361847f8eSopenharmony_ci     * Connects to a BLE peripheral device.
271461847f8eSopenharmony_ci     * <p>The 'BLEConnectionStateChange' event is subscribed to return the connection state.
271561847f8eSopenharmony_ci     *
271661847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
271761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
271861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
271961847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
272061847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
272161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
272261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
272361847f8eSopenharmony_ci     * @since 9
272461847f8eSopenharmony_ci     * @deprecated since 10
272561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#connect
272661847f8eSopenharmony_ci     */
272761847f8eSopenharmony_ci    /**
272861847f8eSopenharmony_ci     * Connects to a BLE peripheral device.
272961847f8eSopenharmony_ci     * <p>The 'BLEConnectionStateChange' event is subscribed to return the connection state.
273061847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
273161847f8eSopenharmony_ci     *
273261847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
273361847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
273461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
273561847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
273661847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
273761847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
273861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
273961847f8eSopenharmony_ci     * @since 10
274061847f8eSopenharmony_ci     * @deprecated since 10
274161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#connect
274261847f8eSopenharmony_ci     */
274361847f8eSopenharmony_ci    connect(): void;
274461847f8eSopenharmony_ci
274561847f8eSopenharmony_ci    /**
274661847f8eSopenharmony_ci     * Disconnects from or stops an ongoing connection to a BLE peripheral device.
274761847f8eSopenharmony_ci     *
274861847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
274961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
275061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
275161847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
275261847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
275361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
275461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
275561847f8eSopenharmony_ci     * @since 9
275661847f8eSopenharmony_ci     * @deprecated since 10
275761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#disconnect
275861847f8eSopenharmony_ci     */
275961847f8eSopenharmony_ci    /**
276061847f8eSopenharmony_ci     * Disconnects from or stops an ongoing connection to a BLE peripheral device.
276161847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
276261847f8eSopenharmony_ci     *
276361847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
276461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
276561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
276661847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
276761847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
276861847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
276961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
277061847f8eSopenharmony_ci     * @since 10
277161847f8eSopenharmony_ci     * @deprecated since 10
277261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#disconnect
277361847f8eSopenharmony_ci     */
277461847f8eSopenharmony_ci    disconnect(): void;
277561847f8eSopenharmony_ci
277661847f8eSopenharmony_ci    /**
277761847f8eSopenharmony_ci     * Disables a BLE peripheral device.
277861847f8eSopenharmony_ci     * <p> This method unregisters the device and clears the registered callbacks and handles.
277961847f8eSopenharmony_ci     *
278061847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
278161847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
278261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
278361847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
278461847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
278561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
278661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
278761847f8eSopenharmony_ci     * @since 9
278861847f8eSopenharmony_ci     * @deprecated since 10
278961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#close
279061847f8eSopenharmony_ci     */
279161847f8eSopenharmony_ci    /**
279261847f8eSopenharmony_ci     * Disables a BLE peripheral device.
279361847f8eSopenharmony_ci     * <p> This method unregisters the device and clears the registered callbacks and handles.
279461847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
279561847f8eSopenharmony_ci     *
279661847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
279761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
279861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
279961847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
280061847f8eSopenharmony_ci     * @throws { BusinessError } 2900003 - Bluetooth disabled.
280161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
280261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
280361847f8eSopenharmony_ci     * @since 10
280461847f8eSopenharmony_ci     * @deprecated since 10
280561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#close
280661847f8eSopenharmony_ci     */
280761847f8eSopenharmony_ci    close(): void;
280861847f8eSopenharmony_ci
280961847f8eSopenharmony_ci    /**
281061847f8eSopenharmony_ci     * Obtains the name of BLE peripheral device.
281161847f8eSopenharmony_ci     *
281261847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
281361847f8eSopenharmony_ci     * @param { AsyncCallback<string> } callback - Callback used to obtain the device name.
281461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
281561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
281661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
281761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
281861847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
281961847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
282061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
282161847f8eSopenharmony_ci     * @since 9
282261847f8eSopenharmony_ci     * @deprecated since 10
282361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getDeviceName
282461847f8eSopenharmony_ci     */
282561847f8eSopenharmony_ci    /**
282661847f8eSopenharmony_ci     * Obtains the name of BLE peripheral device.
282761847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
282861847f8eSopenharmony_ci     *
282961847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
283061847f8eSopenharmony_ci     * @param { AsyncCallback<string> } callback - Callback used to obtain the device name.
283161847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
283261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
283361847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
283461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
283561847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
283661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
283761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
283861847f8eSopenharmony_ci     * @since 10
283961847f8eSopenharmony_ci     * @deprecated since 10
284061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getDeviceName
284161847f8eSopenharmony_ci     */
284261847f8eSopenharmony_ci    getDeviceName(callback: AsyncCallback<string>): void;
284361847f8eSopenharmony_ci
284461847f8eSopenharmony_ci    /**
284561847f8eSopenharmony_ci     * Obtains the name of BLE peripheral device.
284661847f8eSopenharmony_ci     *
284761847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
284861847f8eSopenharmony_ci     * @returns { Promise<string> } Returns a string representation of the name if obtained;
284961847f8eSopenharmony_ci     * returns {@code null} if the name fails to be obtained or the name does not exist.
285061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
285161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
285261847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
285361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
285461847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
285561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
285661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
285761847f8eSopenharmony_ci     * @since 9
285861847f8eSopenharmony_ci     * @deprecated since 10
285961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getDeviceName
286061847f8eSopenharmony_ci     */
286161847f8eSopenharmony_ci    /**
286261847f8eSopenharmony_ci     * Obtains the name of BLE peripheral device.
286361847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
286461847f8eSopenharmony_ci     *
286561847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
286661847f8eSopenharmony_ci     * @returns { Promise<string> } Returns a string representation of the name if obtained;
286761847f8eSopenharmony_ci     * returns {@code null} if the name fails to be obtained or the name does not exist.
286861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
286961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
287061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
287161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
287261847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
287361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
287461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
287561847f8eSopenharmony_ci     * @since 10
287661847f8eSopenharmony_ci     * @deprecated since 10
287761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getDeviceName
287861847f8eSopenharmony_ci     */
287961847f8eSopenharmony_ci    getDeviceName(): Promise<string>;
288061847f8eSopenharmony_ci
288161847f8eSopenharmony_ci    /**
288261847f8eSopenharmony_ci     * Starts discovering services.
288361847f8eSopenharmony_ci     *
288461847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
288561847f8eSopenharmony_ci     * @param { AsyncCallback<Array<GattService>> } callback - Callback used to catch the services.
288661847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
288761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
288861847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
288961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
289061847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
289161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
289261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
289361847f8eSopenharmony_ci     * @since 9
289461847f8eSopenharmony_ci     * @deprecated since 10
289561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getServices
289661847f8eSopenharmony_ci     */
289761847f8eSopenharmony_ci    /**
289861847f8eSopenharmony_ci     * Starts discovering services.
289961847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
290061847f8eSopenharmony_ci     *
290161847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
290261847f8eSopenharmony_ci     * @param { AsyncCallback<Array<GattService>> } callback - Callback used to catch the services.
290361847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
290461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
290561847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
290661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
290761847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
290861847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
290961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
291061847f8eSopenharmony_ci     * @since 10
291161847f8eSopenharmony_ci     * @deprecated since 10
291261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getServices
291361847f8eSopenharmony_ci     */
291461847f8eSopenharmony_ci    getServices(callback: AsyncCallback<Array<GattService>>): void;
291561847f8eSopenharmony_ci
291661847f8eSopenharmony_ci    /**
291761847f8eSopenharmony_ci     * Starts discovering services.
291861847f8eSopenharmony_ci     *
291961847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
292061847f8eSopenharmony_ci     * @returns { Promise<Array<GattService>> } Returns the list of services {@link GattService} of the BLE peripheral device.
292161847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
292261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
292361847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
292461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
292561847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
292661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
292761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
292861847f8eSopenharmony_ci     * @since 9
292961847f8eSopenharmony_ci     * @deprecated since 10
293061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getServices
293161847f8eSopenharmony_ci     */
293261847f8eSopenharmony_ci    /**
293361847f8eSopenharmony_ci     * Starts discovering services.
293461847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
293561847f8eSopenharmony_ci     *
293661847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
293761847f8eSopenharmony_ci     * @returns { Promise<Array<GattService>> } Returns the list of services {@link GattService} of the BLE peripheral device.
293861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
293961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
294061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
294161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
294261847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
294361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
294461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
294561847f8eSopenharmony_ci     * @since 10
294661847f8eSopenharmony_ci     * @deprecated since 10
294761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getServices
294861847f8eSopenharmony_ci     */
294961847f8eSopenharmony_ci    getServices(): Promise<Array<GattService>>;
295061847f8eSopenharmony_ci
295161847f8eSopenharmony_ci    /**
295261847f8eSopenharmony_ci     * Reads the characteristic of a BLE peripheral device.
295361847f8eSopenharmony_ci     *
295461847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
295561847f8eSopenharmony_ci     * @param { BLECharacteristic } characteristic - Indicates the characteristic to read.
295661847f8eSopenharmony_ci     * @param { AsyncCallback<BLECharacteristic> } callback - Callback invoked to return the characteristic value read.
295761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
295861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
295961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
296061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
296161847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
296261847f8eSopenharmony_ci     * @throws { BusinessError } 2901000 - Read forbidden.
296361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
296461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
296561847f8eSopenharmony_ci     * @since 9
296661847f8eSopenharmony_ci     * @deprecated since 10
296761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#readCharacteristicValue
296861847f8eSopenharmony_ci     */
296961847f8eSopenharmony_ci    /**
297061847f8eSopenharmony_ci     * Reads the characteristic of a BLE peripheral device.
297161847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
297261847f8eSopenharmony_ci     *
297361847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
297461847f8eSopenharmony_ci     * @param { BLECharacteristic } characteristic - Indicates the characteristic to read.
297561847f8eSopenharmony_ci     * @param { AsyncCallback<BLECharacteristic> } callback - Callback invoked to return the characteristic value read.
297661847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
297761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
297861847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
297961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
298061847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
298161847f8eSopenharmony_ci     * @throws { BusinessError } 2901000 - Read forbidden.
298261847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
298361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
298461847f8eSopenharmony_ci     * @since 10
298561847f8eSopenharmony_ci     * @deprecated since 10
298661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#readCharacteristicValue
298761847f8eSopenharmony_ci     */
298861847f8eSopenharmony_ci    readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback<BLECharacteristic>): void;
298961847f8eSopenharmony_ci
299061847f8eSopenharmony_ci    /**
299161847f8eSopenharmony_ci     * Reads the characteristic of a BLE peripheral device.
299261847f8eSopenharmony_ci     *
299361847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
299461847f8eSopenharmony_ci     * @param { BLECharacteristic } characteristic - Indicates the characteristic to read.
299561847f8eSopenharmony_ci     * @returns { Promise<BLECharacteristic> } - Promise used to return the characteristic value read.
299661847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
299761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
299861847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
299961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
300061847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
300161847f8eSopenharmony_ci     * @throws { BusinessError } 2901000 - Read forbidden.
300261847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
300361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
300461847f8eSopenharmony_ci     * @since 9
300561847f8eSopenharmony_ci     * @deprecated since 10
300661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#readCharacteristicValue
300761847f8eSopenharmony_ci     */
300861847f8eSopenharmony_ci    /**
300961847f8eSopenharmony_ci     * Reads the characteristic of a BLE peripheral device.
301061847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
301161847f8eSopenharmony_ci     *
301261847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
301361847f8eSopenharmony_ci     * @param { BLECharacteristic } characteristic - Indicates the characteristic to read.
301461847f8eSopenharmony_ci     * @returns { Promise<BLECharacteristic> } - Promise used to return the characteristic value read.
301561847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
301661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
301761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
301861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
301961847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
302061847f8eSopenharmony_ci     * @throws { BusinessError } 2901000 - Read forbidden.
302161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
302261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
302361847f8eSopenharmony_ci     * @since 10
302461847f8eSopenharmony_ci     * @deprecated since 10
302561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#readCharacteristicValue
302661847f8eSopenharmony_ci     */
302761847f8eSopenharmony_ci    readCharacteristicValue(characteristic: BLECharacteristic): Promise<BLECharacteristic>;
302861847f8eSopenharmony_ci
302961847f8eSopenharmony_ci    /**
303061847f8eSopenharmony_ci     * Reads the descriptor of a BLE peripheral device.
303161847f8eSopenharmony_ci     *
303261847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
303361847f8eSopenharmony_ci     * @param { BLEDescriptor } descriptor - Indicates the descriptor to read.
303461847f8eSopenharmony_ci     * @param { AsyncCallback<BLEDescriptor> } callback - Callback invoked to return the descriptor read.
303561847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
303661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
303761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
303861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
303961847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
304061847f8eSopenharmony_ci     * @throws { BusinessError } 2901000 - Read forbidden.
304161847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
304261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
304361847f8eSopenharmony_ci     * @since 9
304461847f8eSopenharmony_ci     * @deprecated since 10
304561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#readDescriptorValue
304661847f8eSopenharmony_ci     */
304761847f8eSopenharmony_ci    /**
304861847f8eSopenharmony_ci     * Reads the descriptor of a BLE peripheral device.
304961847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
305061847f8eSopenharmony_ci     *
305161847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
305261847f8eSopenharmony_ci     * @param { BLEDescriptor } descriptor - Indicates the descriptor to read.
305361847f8eSopenharmony_ci     * @param { AsyncCallback<BLEDescriptor> } callback - Callback invoked to return the descriptor read.
305461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
305561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
305661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
305761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
305861847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
305961847f8eSopenharmony_ci     * @throws { BusinessError } 2901000 - Read forbidden.
306061847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
306161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
306261847f8eSopenharmony_ci     * @since 10
306361847f8eSopenharmony_ci     * @deprecated since 10
306461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#readDescriptorValue
306561847f8eSopenharmony_ci     */
306661847f8eSopenharmony_ci    readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback<BLEDescriptor>): void;
306761847f8eSopenharmony_ci
306861847f8eSopenharmony_ci    /**
306961847f8eSopenharmony_ci     * Reads the descriptor of a BLE peripheral device.
307061847f8eSopenharmony_ci     *
307161847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
307261847f8eSopenharmony_ci     * @param { BLEDescriptor } descriptor - Indicates the descriptor to read.
307361847f8eSopenharmony_ci     * @returns { Promise<BLEDescriptor> } - Promise used to return the descriptor read.
307461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
307561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
307661847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
307761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
307861847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
307961847f8eSopenharmony_ci     * @throws { BusinessError } 2901000 - Read forbidden.
308061847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
308161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
308261847f8eSopenharmony_ci     * @since 9
308361847f8eSopenharmony_ci     * @deprecated since 10
308461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#readDescriptorValue
308561847f8eSopenharmony_ci     */
308661847f8eSopenharmony_ci    /**
308761847f8eSopenharmony_ci     * Reads the descriptor of a BLE peripheral device.
308861847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
308961847f8eSopenharmony_ci     *
309061847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
309161847f8eSopenharmony_ci     * @param { BLEDescriptor } descriptor - Indicates the descriptor to read.
309261847f8eSopenharmony_ci     * @returns { Promise<BLEDescriptor> } - Promise used to return the descriptor read.
309361847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
309461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
309561847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
309661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
309761847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
309861847f8eSopenharmony_ci     * @throws { BusinessError } 2901000 - Read forbidden.
309961847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
310061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
310161847f8eSopenharmony_ci     * @since 10
310261847f8eSopenharmony_ci     * @deprecated since 10
310361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#readDescriptorValue
310461847f8eSopenharmony_ci     */
310561847f8eSopenharmony_ci    readDescriptorValue(descriptor: BLEDescriptor): Promise<BLEDescriptor>;
310661847f8eSopenharmony_ci
310761847f8eSopenharmony_ci    /**
310861847f8eSopenharmony_ci     * Writes the characteristic of a BLE peripheral device.
310961847f8eSopenharmony_ci     *
311061847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
311161847f8eSopenharmony_ci     * @param { BLECharacteristic } characteristic - Indicates the characteristic to write.
311261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
311361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
311461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
311561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
311661847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
311761847f8eSopenharmony_ci     * @throws { BusinessError } 2901001 - Write forbidden.
311861847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
311961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
312061847f8eSopenharmony_ci     * @since 9
312161847f8eSopenharmony_ci     * @deprecated since 10
312261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#writeCharacteristicValue
312361847f8eSopenharmony_ci     */
312461847f8eSopenharmony_ci    /**
312561847f8eSopenharmony_ci     * Writes the characteristic of a BLE peripheral device.
312661847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
312761847f8eSopenharmony_ci     *
312861847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
312961847f8eSopenharmony_ci     * @param { BLECharacteristic } characteristic - Indicates the characteristic to write.
313061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
313161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
313261847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
313361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
313461847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
313561847f8eSopenharmony_ci     * @throws { BusinessError } 2901001 - Write forbidden.
313661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
313761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
313861847f8eSopenharmony_ci     * @since 10
313961847f8eSopenharmony_ci     * @deprecated since 10
314061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#writeCharacteristicValue
314161847f8eSopenharmony_ci     */
314261847f8eSopenharmony_ci    writeCharacteristicValue(characteristic: BLECharacteristic): void;
314361847f8eSopenharmony_ci
314461847f8eSopenharmony_ci    /**
314561847f8eSopenharmony_ci     * Writes the descriptor of a BLE peripheral device.
314661847f8eSopenharmony_ci     *
314761847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
314861847f8eSopenharmony_ci     * @param { BLEDescriptor } descriptor - Indicates the descriptor to write.
314961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
315061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
315161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
315261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
315361847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
315461847f8eSopenharmony_ci     * @throws { BusinessError } 2901001 - Write forbidden.
315561847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
315661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
315761847f8eSopenharmony_ci     * @since 9
315861847f8eSopenharmony_ci     * @deprecated since 10
315961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#writeDescriptorValue
316061847f8eSopenharmony_ci     */
316161847f8eSopenharmony_ci    /**
316261847f8eSopenharmony_ci     * Writes the descriptor of a BLE peripheral device.
316361847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
316461847f8eSopenharmony_ci     *
316561847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
316661847f8eSopenharmony_ci     * @param { BLEDescriptor } descriptor - Indicates the descriptor to write.
316761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
316861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
316961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
317061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
317161847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
317261847f8eSopenharmony_ci     * @throws { BusinessError } 2901001 - Write forbidden.
317361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
317461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
317561847f8eSopenharmony_ci     * @since 10
317661847f8eSopenharmony_ci     * @deprecated since 10
317761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#writeDescriptorValue
317861847f8eSopenharmony_ci     */
317961847f8eSopenharmony_ci    writeDescriptorValue(descriptor: BLEDescriptor): void;
318061847f8eSopenharmony_ci
318161847f8eSopenharmony_ci    /**
318261847f8eSopenharmony_ci     * Get the RSSI value of this BLE peripheral device.
318361847f8eSopenharmony_ci     *
318461847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
318561847f8eSopenharmony_ci     * @param { AsyncCallback<number> } callback - Callback invoked to return the RSSI, in dBm.
318661847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
318761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
318861847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
318961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
319061847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
319161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
319261847f8eSopenharmony_ci     * @since 9
319361847f8eSopenharmony_ci     * @deprecated since 10
319461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getRssiValue
319561847f8eSopenharmony_ci     */
319661847f8eSopenharmony_ci    /**
319761847f8eSopenharmony_ci     * Get the RSSI value of this BLE peripheral device.
319861847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
319961847f8eSopenharmony_ci     *
320061847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
320161847f8eSopenharmony_ci     * @param { AsyncCallback<number> } callback - Callback invoked to return the RSSI, in dBm.
320261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
320361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
320461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
320561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
320661847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
320761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
320861847f8eSopenharmony_ci     * @since 10
320961847f8eSopenharmony_ci     * @deprecated since 10
321061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getRssiValue
321161847f8eSopenharmony_ci     */
321261847f8eSopenharmony_ci    getRssiValue(callback: AsyncCallback<number>): void;
321361847f8eSopenharmony_ci
321461847f8eSopenharmony_ci    /**
321561847f8eSopenharmony_ci     * Get the RSSI value of this BLE peripheral device.
321661847f8eSopenharmony_ci     *
321761847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
321861847f8eSopenharmony_ci     * @returns { Promise<number> } Returns the RSSI value.
321961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
322061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
322161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
322261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
322361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
322461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
322561847f8eSopenharmony_ci     * @since 9
322661847f8eSopenharmony_ci     * @deprecated since 10
322761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getRssiValue
322861847f8eSopenharmony_ci     */
322961847f8eSopenharmony_ci    /**
323061847f8eSopenharmony_ci     * Get the RSSI value of this BLE peripheral device.
323161847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
323261847f8eSopenharmony_ci     *
323361847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
323461847f8eSopenharmony_ci     * @returns { Promise<number> } Returns the RSSI value.
323561847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
323661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
323761847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
323861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
323961847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
324061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
324161847f8eSopenharmony_ci     * @since 10
324261847f8eSopenharmony_ci     * @deprecated since 10
324361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#getRssiValue
324461847f8eSopenharmony_ci     */
324561847f8eSopenharmony_ci    getRssiValue(): Promise<number>;
324661847f8eSopenharmony_ci
324761847f8eSopenharmony_ci    /**
324861847f8eSopenharmony_ci     * Set the mtu size of a BLE peripheral device.
324961847f8eSopenharmony_ci     *
325061847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
325161847f8eSopenharmony_ci     * @param { number } mtu - The maximum transmission unit.
325261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
325361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
325461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
325561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
325661847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
325761847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
325861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
325961847f8eSopenharmony_ci     * @since 9
326061847f8eSopenharmony_ci     * @deprecated since 10
326161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#setBLEMtuSize
326261847f8eSopenharmony_ci     */
326361847f8eSopenharmony_ci    /**
326461847f8eSopenharmony_ci     * Set the mtu size of a BLE peripheral device.
326561847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
326661847f8eSopenharmony_ci     *
326761847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
326861847f8eSopenharmony_ci     * @param { number } mtu - The maximum transmission unit.
326961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
327061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
327161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
327261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
327361847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
327461847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
327561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
327661847f8eSopenharmony_ci     * @since 10
327761847f8eSopenharmony_ci     * @deprecated since 10
327861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#setBLEMtuSize
327961847f8eSopenharmony_ci     */
328061847f8eSopenharmony_ci    setBLEMtuSize(mtu: number): void;
328161847f8eSopenharmony_ci
328261847f8eSopenharmony_ci    /**
328361847f8eSopenharmony_ci     * Enables or disables notification of a characteristic when value changed.
328461847f8eSopenharmony_ci     *
328561847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
328661847f8eSopenharmony_ci     * @param { BLECharacteristic } characteristic - BLE characteristic to listen for.
328761847f8eSopenharmony_ci     * @param { boolean } enable - Specifies whether to enable notification of the characteristic. The value {@code true} indicates
328861847f8eSopenharmony_ci     * that notification is enabled, and the value {@code false} indicates that notification is disabled.
328961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
329061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
329161847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
329261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
329361847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
329461847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
329561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
329661847f8eSopenharmony_ci     * @since 9
329761847f8eSopenharmony_ci     * @deprecated since 10
329861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#setCharacteristicChangeNotification
329961847f8eSopenharmony_ci     */
330061847f8eSopenharmony_ci    /**
330161847f8eSopenharmony_ci     * Enables or disables notification of a characteristic when value changed.
330261847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
330361847f8eSopenharmony_ci     *
330461847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
330561847f8eSopenharmony_ci     * @param { BLECharacteristic } characteristic - BLE characteristic to listen for.
330661847f8eSopenharmony_ci     * @param { boolean } enable - Specifies whether to enable notification of the characteristic. The value {@code true} indicates
330761847f8eSopenharmony_ci     * that notification is enabled, and the value {@code false} indicates that notification is disabled.
330861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
330961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. Mandatory parameters are left unspecified.
331061847f8eSopenharmony_ci     * <br>2. Incorrect parameter types. 3. Parameter verification failed.
331161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
331261847f8eSopenharmony_ci     * @throws { BusinessError } 2900001 - Service stopped.
331361847f8eSopenharmony_ci     * @throws { BusinessError } 2900099 - Operation failed.
331461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
331561847f8eSopenharmony_ci     * @since 10
331661847f8eSopenharmony_ci     * @deprecated since 10
331761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice#setCharacteristicChangeNotification
331861847f8eSopenharmony_ci     */
331961847f8eSopenharmony_ci    setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): void;
332061847f8eSopenharmony_ci
332161847f8eSopenharmony_ci    /**
332261847f8eSopenharmony_ci     * Subscribe characteristic value changed event.
332361847f8eSopenharmony_ci     *
332461847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
332561847f8eSopenharmony_ci     * @param { 'BLECharacteristicChange' } type - Type of the characteristic value changed event to listen for.
332661847f8eSopenharmony_ci     * @param { Callback<BLECharacteristic> } callback - Callback used to listen for the characteristic value changed event.
332761847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
332861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
332961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
333061847f8eSopenharmony_ci     * @since 9
333161847f8eSopenharmony_ci     * @deprecated since 10
333261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice.on#event:BLECharacteristicChange
333361847f8eSopenharmony_ci     */
333461847f8eSopenharmony_ci    /**
333561847f8eSopenharmony_ci     * Subscribe characteristic value changed event.
333661847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
333761847f8eSopenharmony_ci     *
333861847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
333961847f8eSopenharmony_ci     * @param { 'BLECharacteristicChange' } type - Type of the characteristic value changed event to listen for.
334061847f8eSopenharmony_ci     * @param { Callback<BLECharacteristic> } callback - Callback used to listen for the characteristic value changed event.
334161847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
334261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
334361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
334461847f8eSopenharmony_ci     * @since 10
334561847f8eSopenharmony_ci     * @deprecated since 10
334661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice.on#event:BLECharacteristicChange
334761847f8eSopenharmony_ci     */
334861847f8eSopenharmony_ci    on(type: 'BLECharacteristicChange', callback: Callback<BLECharacteristic>): void;
334961847f8eSopenharmony_ci
335061847f8eSopenharmony_ci    /**
335161847f8eSopenharmony_ci     * Unsubscribe characteristic value changed event.
335261847f8eSopenharmony_ci     *
335361847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
335461847f8eSopenharmony_ci     * @param { 'BLECharacteristicChange' } type - Type of the characteristic value changed event to listen for.
335561847f8eSopenharmony_ci     * @param { Callback<BLECharacteristic> } callback - Callback used to listen for the characteristic value changed event.
335661847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
335761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
335861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
335961847f8eSopenharmony_ci     * @since 9
336061847f8eSopenharmony_ci     * @deprecated since 10
336161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice.off#event:BLECharacteristicChange
336261847f8eSopenharmony_ci     */
336361847f8eSopenharmony_ci    /**
336461847f8eSopenharmony_ci     * Unsubscribe characteristic value changed event.
336561847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
336661847f8eSopenharmony_ci     *
336761847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
336861847f8eSopenharmony_ci     * @param { 'BLECharacteristicChange' } type - Type of the characteristic value changed event to listen for.
336961847f8eSopenharmony_ci     * @param { Callback<BLECharacteristic> } callback - Callback used to listen for the characteristic value changed event.
337061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
337161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
337261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
337361847f8eSopenharmony_ci     * @since 10
337461847f8eSopenharmony_ci     * @deprecated since 10
337561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice.off#event:BLECharacteristicChange
337661847f8eSopenharmony_ci     */
337761847f8eSopenharmony_ci    off(type: 'BLECharacteristicChange', callback?: Callback<BLECharacteristic>): void;
337861847f8eSopenharmony_ci
337961847f8eSopenharmony_ci    /**
338061847f8eSopenharmony_ci     * Subscribe client connection state changed event.
338161847f8eSopenharmony_ci     *
338261847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
338361847f8eSopenharmony_ci     * @param { 'BLEConnectionStateChange' } type - Type of the connection state changed event to listen for.
338461847f8eSopenharmony_ci     * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.
338561847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
338661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
338761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
338861847f8eSopenharmony_ci     * @since 9
338961847f8eSopenharmony_ci     * @deprecated since 10
339061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice.on#event:BLEConnectionStateChange
339161847f8eSopenharmony_ci     */
339261847f8eSopenharmony_ci    /**
339361847f8eSopenharmony_ci     * Subscribe client connection state changed event.
339461847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
339561847f8eSopenharmony_ci     *
339661847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
339761847f8eSopenharmony_ci     * @param { 'BLEConnectionStateChange' } type - Type of the connection state changed event to listen for.
339861847f8eSopenharmony_ci     * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.
339961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
340061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
340161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
340261847f8eSopenharmony_ci     * @since 10
340361847f8eSopenharmony_ci     * @deprecated since 10
340461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice.on#event:BLEConnectionStateChange
340561847f8eSopenharmony_ci     */
340661847f8eSopenharmony_ci    on(type: 'BLEConnectionStateChange', callback: Callback<BLEConnectChangedState>): void;
340761847f8eSopenharmony_ci
340861847f8eSopenharmony_ci    /**
340961847f8eSopenharmony_ci     * Unsubscribe client connection state changed event.
341061847f8eSopenharmony_ci     *
341161847f8eSopenharmony_ci     * @permission ohos.permission.USE_BLUETOOTH
341261847f8eSopenharmony_ci     * @param { 'BLEConnectionStateChange' } type - Type of the connection state changed event to listen for.
341361847f8eSopenharmony_ci     * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.
341461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
341561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
341661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
341761847f8eSopenharmony_ci     * @since 9
341861847f8eSopenharmony_ci     * @deprecated since 10
341961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice.off#event:BLEConnectionStateChange
342061847f8eSopenharmony_ci     */
342161847f8eSopenharmony_ci    /**
342261847f8eSopenharmony_ci     * Unsubscribe client connection state changed event.
342361847f8eSopenharmony_ci     * The permission required by this interface is changed from USE_BLUETOOTH to ACCESS_BLUETOOTH.
342461847f8eSopenharmony_ci     *
342561847f8eSopenharmony_ci     * @permission ohos.permission.ACCESS_BLUETOOTH
342661847f8eSopenharmony_ci     * @param { 'BLEConnectionStateChange' } type - Type of the connection state changed event to listen for.
342761847f8eSopenharmony_ci     * @param { Callback<BLEConnectChangedState> } callback - Callback used to listen for the connection state changed event.
342861847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission denied.
342961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported.
343061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
343161847f8eSopenharmony_ci     * @since 10
343261847f8eSopenharmony_ci     * @deprecated since 10
343361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattClientDevice.off#event:BLEConnectionStateChange
343461847f8eSopenharmony_ci     */
343561847f8eSopenharmony_ci    off(type: 'BLEConnectionStateChange', callback?: Callback<BLEConnectChangedState>): void;
343661847f8eSopenharmony_ci  }
343761847f8eSopenharmony_ci
343861847f8eSopenharmony_ci  /**
343961847f8eSopenharmony_ci   * Describes the Gatt service.
344061847f8eSopenharmony_ci   *
344161847f8eSopenharmony_ci   * @typedef GattService
344261847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
344361847f8eSopenharmony_ci   * @since 9
344461847f8eSopenharmony_ci   * @deprecated since 10
344561847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.GattService
344661847f8eSopenharmony_ci   */
344761847f8eSopenharmony_ci  interface GattService {
344861847f8eSopenharmony_ci    /**
344961847f8eSopenharmony_ci     * The UUID of a GattService instance
345061847f8eSopenharmony_ci     *
345161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
345261847f8eSopenharmony_ci     * @since 9
345361847f8eSopenharmony_ci     * @deprecated since 10
345461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattService#serviceUuid
345561847f8eSopenharmony_ci     */
345661847f8eSopenharmony_ci    serviceUuid: string;
345761847f8eSopenharmony_ci    /**
345861847f8eSopenharmony_ci     * Indicates whether the GattService instance is primary or secondary.
345961847f8eSopenharmony_ci     *
346061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
346161847f8eSopenharmony_ci     * @since 9
346261847f8eSopenharmony_ci     * @deprecated since 10
346361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattService#isPrimary
346461847f8eSopenharmony_ci     */
346561847f8eSopenharmony_ci    isPrimary: boolean;
346661847f8eSopenharmony_ci    /**
346761847f8eSopenharmony_ci     * The {@link BLECharacteristic} list belongs to this GattService instance
346861847f8eSopenharmony_ci     *
346961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
347061847f8eSopenharmony_ci     * @since 9
347161847f8eSopenharmony_ci     * @deprecated since 10
347261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattService#characteristics
347361847f8eSopenharmony_ci     */
347461847f8eSopenharmony_ci    characteristics: Array<BLECharacteristic>;
347561847f8eSopenharmony_ci    /**
347661847f8eSopenharmony_ci     * The list of GATT services contained in the service
347761847f8eSopenharmony_ci     *
347861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
347961847f8eSopenharmony_ci     * @since 9
348061847f8eSopenharmony_ci     * @deprecated since 10
348161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.GattService#includeServices
348261847f8eSopenharmony_ci     */
348361847f8eSopenharmony_ci    includeServices?: Array<GattService>;
348461847f8eSopenharmony_ci  }
348561847f8eSopenharmony_ci
348661847f8eSopenharmony_ci  /**
348761847f8eSopenharmony_ci   * Describes the Gatt characteristic.
348861847f8eSopenharmony_ci   *
348961847f8eSopenharmony_ci   * @typedef BLECharacteristic
349061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
349161847f8eSopenharmony_ci   * @since 9
349261847f8eSopenharmony_ci   * @deprecated since 10
349361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.BLECharacteristic
349461847f8eSopenharmony_ci   */
349561847f8eSopenharmony_ci  interface BLECharacteristic {
349661847f8eSopenharmony_ci    /**
349761847f8eSopenharmony_ci     * The UUID of the {@link GattService} instance to which the characteristic belongs
349861847f8eSopenharmony_ci     *
349961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
350061847f8eSopenharmony_ci     * @since 9
350161847f8eSopenharmony_ci     * @deprecated since 10
350261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.BLECharacteristic#serviceUuid
350361847f8eSopenharmony_ci     */
350461847f8eSopenharmony_ci    serviceUuid: string;
350561847f8eSopenharmony_ci    /**
350661847f8eSopenharmony_ci     * The UUID of a BLECharacteristic instance
350761847f8eSopenharmony_ci     *
350861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
350961847f8eSopenharmony_ci     * @since 9
351061847f8eSopenharmony_ci     * @deprecated since 10
351161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.BLECharacteristic#characteristicUuid
351261847f8eSopenharmony_ci     */
351361847f8eSopenharmony_ci    characteristicUuid: string;
351461847f8eSopenharmony_ci    /**
351561847f8eSopenharmony_ci     * The value of a BLECharacteristic instance
351661847f8eSopenharmony_ci     *
351761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
351861847f8eSopenharmony_ci     * @since 9
351961847f8eSopenharmony_ci     * @deprecated since 10
352061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.BLECharacteristic#characteristicValue
352161847f8eSopenharmony_ci     */
352261847f8eSopenharmony_ci    characteristicValue: ArrayBuffer;
352361847f8eSopenharmony_ci    /**
352461847f8eSopenharmony_ci     * The list of {@link BLEDescriptor} contained in the characteristic
352561847f8eSopenharmony_ci     *
352661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
352761847f8eSopenharmony_ci     * @since 9
352861847f8eSopenharmony_ci     * @deprecated since 10
352961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.BLECharacteristic#descriptors
353061847f8eSopenharmony_ci     */
353161847f8eSopenharmony_ci    descriptors: Array<BLEDescriptor>;
353261847f8eSopenharmony_ci  }
353361847f8eSopenharmony_ci
353461847f8eSopenharmony_ci  /**
353561847f8eSopenharmony_ci   * Describes the Gatt descriptor.
353661847f8eSopenharmony_ci   *
353761847f8eSopenharmony_ci   * @typedef BLEDescriptor
353861847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
353961847f8eSopenharmony_ci   * @since 9
354061847f8eSopenharmony_ci   * @deprecated since 10
354161847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.BLEDescriptor
354261847f8eSopenharmony_ci   */
354361847f8eSopenharmony_ci  interface BLEDescriptor {
354461847f8eSopenharmony_ci    /**
354561847f8eSopenharmony_ci     * The UUID of the {@link GattService} instance to which the descriptor belongs
354661847f8eSopenharmony_ci     *
354761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
354861847f8eSopenharmony_ci     * @since 9
354961847f8eSopenharmony_ci     * @deprecated since 10
355061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.BLEDescriptor#serviceUuid
355161847f8eSopenharmony_ci     */
355261847f8eSopenharmony_ci    serviceUuid: string;
355361847f8eSopenharmony_ci    /**
355461847f8eSopenharmony_ci     * The UUID of the {@link BLECharacteristic} instance to which the descriptor belongs
355561847f8eSopenharmony_ci     *
355661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
355761847f8eSopenharmony_ci     * @since 9
355861847f8eSopenharmony_ci     * @deprecated since 10
355961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.BLEDescriptor#characteristicUuid
356061847f8eSopenharmony_ci     */
356161847f8eSopenharmony_ci    characteristicUuid: string;
356261847f8eSopenharmony_ci    /**
356361847f8eSopenharmony_ci     * The UUID of the BLEDescriptor instance
356461847f8eSopenharmony_ci     *
356561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
356661847f8eSopenharmony_ci     * @since 9
356761847f8eSopenharmony_ci     * @deprecated since 10
356861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.BLEDescriptor#descriptorUuid
356961847f8eSopenharmony_ci     */
357061847f8eSopenharmony_ci    descriptorUuid: string;
357161847f8eSopenharmony_ci    /**
357261847f8eSopenharmony_ci     * The value of the BLEDescriptor instance
357361847f8eSopenharmony_ci     *
357461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
357561847f8eSopenharmony_ci     * @since 9
357661847f8eSopenharmony_ci     * @deprecated since 10
357761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.BLEDescriptor#descriptorValue
357861847f8eSopenharmony_ci     */
357961847f8eSopenharmony_ci    descriptorValue: ArrayBuffer;
358061847f8eSopenharmony_ci  }
358161847f8eSopenharmony_ci
358261847f8eSopenharmony_ci  /**
358361847f8eSopenharmony_ci   * Describes the value of the indication or notification sent by the Gatt server.
358461847f8eSopenharmony_ci   *
358561847f8eSopenharmony_ci   * @typedef NotifyCharacteristic
358661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
358761847f8eSopenharmony_ci   * @since 9
358861847f8eSopenharmony_ci   * @deprecated since 10
358961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.NotifyCharacteristic
359061847f8eSopenharmony_ci   */
359161847f8eSopenharmony_ci  interface NotifyCharacteristic {
359261847f8eSopenharmony_ci    /**
359361847f8eSopenharmony_ci     * The UUID of the {@link GattService} instance to which the characteristic belongs
359461847f8eSopenharmony_ci     *
359561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
359661847f8eSopenharmony_ci     * @since 9
359761847f8eSopenharmony_ci     * @deprecated since 10
359861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.NotifyCharacteristic#serviceUuid
359961847f8eSopenharmony_ci     */
360061847f8eSopenharmony_ci    serviceUuid: string;
360161847f8eSopenharmony_ci    /**
360261847f8eSopenharmony_ci     * The UUID of a NotifyCharacteristic instance
360361847f8eSopenharmony_ci     *
360461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
360561847f8eSopenharmony_ci     * @since 9
360661847f8eSopenharmony_ci     * @deprecated since 10
360761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.NotifyCharacteristic#characteristicUuid
360861847f8eSopenharmony_ci     */
360961847f8eSopenharmony_ci    characteristicUuid: string;
361061847f8eSopenharmony_ci    /**
361161847f8eSopenharmony_ci     * The value of a NotifyCharacteristic instance
361261847f8eSopenharmony_ci     *
361361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
361461847f8eSopenharmony_ci     * @since 9
361561847f8eSopenharmony_ci     * @deprecated since 10
361661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.NotifyCharacteristic#characteristicValue
361761847f8eSopenharmony_ci     */
361861847f8eSopenharmony_ci    characteristicValue: ArrayBuffer;
361961847f8eSopenharmony_ci    /**
362061847f8eSopenharmony_ci     * Specifies whether to request confirmation from the BLE peripheral device (indication) or
362161847f8eSopenharmony_ci     * send a notification. Value {@code true} indicates the former and {@code false} indicates the latter.
362261847f8eSopenharmony_ci     *
362361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
362461847f8eSopenharmony_ci     * @since 9
362561847f8eSopenharmony_ci     * @deprecated since 10
362661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.NotifyCharacteristic#confirm
362761847f8eSopenharmony_ci     */
362861847f8eSopenharmony_ci    confirm: boolean;
362961847f8eSopenharmony_ci  }
363061847f8eSopenharmony_ci
363161847f8eSopenharmony_ci  /**
363261847f8eSopenharmony_ci   * Describes the parameters of the Gatt client's characteristic read request.
363361847f8eSopenharmony_ci   *
363461847f8eSopenharmony_ci   * @typedef CharacteristicReadRequest
363561847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
363661847f8eSopenharmony_ci   * @since 9
363761847f8eSopenharmony_ci   * @deprecated since 10
363861847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.CharacteristicReadRequest
363961847f8eSopenharmony_ci   */
364061847f8eSopenharmony_ci  interface CharacteristicReadRequest {
364161847f8eSopenharmony_ci    /**
364261847f8eSopenharmony_ci     * Indicates the address of the client that initiates the read request
364361847f8eSopenharmony_ci     *
364461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
364561847f8eSopenharmony_ci     * @since 9
364661847f8eSopenharmony_ci     * @deprecated since 10
364761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicReadRequest#deviceId
364861847f8eSopenharmony_ci     */
364961847f8eSopenharmony_ci    deviceId: string;
365061847f8eSopenharmony_ci    /**
365161847f8eSopenharmony_ci     * The Id of the read request
365261847f8eSopenharmony_ci     *
365361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
365461847f8eSopenharmony_ci     * @since 9
365561847f8eSopenharmony_ci     * @deprecated since 10
365661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicReadRequest#transId
365761847f8eSopenharmony_ci     */
365861847f8eSopenharmony_ci    transId: number;
365961847f8eSopenharmony_ci    /**
366061847f8eSopenharmony_ci     * Indicates the byte offset of the start position for reading characteristic value
366161847f8eSopenharmony_ci     *
366261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
366361847f8eSopenharmony_ci     * @since 9
366461847f8eSopenharmony_ci     * @deprecated since 10
366561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicReadRequest#offset
366661847f8eSopenharmony_ci     */
366761847f8eSopenharmony_ci    offset: number;
366861847f8eSopenharmony_ci    /**
366961847f8eSopenharmony_ci     * The UUID of a CharacteristicReadRequest instance
367061847f8eSopenharmony_ci     *
367161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
367261847f8eSopenharmony_ci     * @since 9
367361847f8eSopenharmony_ci     * @deprecated since 10
367461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicReadRequest#characteristicUuid
367561847f8eSopenharmony_ci     */
367661847f8eSopenharmony_ci    characteristicUuid: string;
367761847f8eSopenharmony_ci    /**
367861847f8eSopenharmony_ci     * The UUID of the service to which the characteristic belongs
367961847f8eSopenharmony_ci     *
368061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
368161847f8eSopenharmony_ci     * @since 9
368261847f8eSopenharmony_ci     * @deprecated since 10
368361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicReadRequest#serviceUuid
368461847f8eSopenharmony_ci     */
368561847f8eSopenharmony_ci    serviceUuid: string;
368661847f8eSopenharmony_ci  }
368761847f8eSopenharmony_ci
368861847f8eSopenharmony_ci  /**
368961847f8eSopenharmony_ci   * Describes the parameters of the of the Gatt client's characteristic write request.
369061847f8eSopenharmony_ci   *
369161847f8eSopenharmony_ci   * @typedef CharacteristicWriteRequest
369261847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
369361847f8eSopenharmony_ci   * @since 9
369461847f8eSopenharmony_ci   * @deprecated since 10
369561847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.CharacteristicWriteRequest
369661847f8eSopenharmony_ci   */
369761847f8eSopenharmony_ci  interface CharacteristicWriteRequest {
369861847f8eSopenharmony_ci    /**
369961847f8eSopenharmony_ci     * Indicates the address of the client that initiates the write request
370061847f8eSopenharmony_ci     *
370161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
370261847f8eSopenharmony_ci     * @since 9
370361847f8eSopenharmony_ci     * @deprecated since 10
370461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicWriteRequest#deviceId
370561847f8eSopenharmony_ci     */
370661847f8eSopenharmony_ci    deviceId: string;
370761847f8eSopenharmony_ci    /**
370861847f8eSopenharmony_ci     * The Id of the write request
370961847f8eSopenharmony_ci     *
371061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
371161847f8eSopenharmony_ci     * @since 9
371261847f8eSopenharmony_ci     * @deprecated since 10
371361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicWriteRequest#transId
371461847f8eSopenharmony_ci     */
371561847f8eSopenharmony_ci    transId: number;
371661847f8eSopenharmony_ci    /**
371761847f8eSopenharmony_ci     * Indicates the byte offset of the start position for writing characteristic value
371861847f8eSopenharmony_ci     *
371961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
372061847f8eSopenharmony_ci     * @since 9
372161847f8eSopenharmony_ci     * @deprecated since 10
372261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicWriteRequest#offset
372361847f8eSopenharmony_ci     */
372461847f8eSopenharmony_ci    offset: number;
372561847f8eSopenharmony_ci    /**
372661847f8eSopenharmony_ci     * Whether this request should be pending for later operation
372761847f8eSopenharmony_ci     *
372861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
372961847f8eSopenharmony_ci     * @since 9
373061847f8eSopenharmony_ci     * @deprecated since 10
373161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicWriteRequest#isPrepared
373261847f8eSopenharmony_ci     */
373361847f8eSopenharmony_ci    isPrep: boolean;
373461847f8eSopenharmony_ci    /**
373561847f8eSopenharmony_ci     * Whether the remote client need a response
373661847f8eSopenharmony_ci     *
373761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
373861847f8eSopenharmony_ci     * @since 9
373961847f8eSopenharmony_ci     * @deprecated since 10
374061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicWriteRequest#needRsp
374161847f8eSopenharmony_ci     */
374261847f8eSopenharmony_ci    needRsp: boolean;
374361847f8eSopenharmony_ci    /**
374461847f8eSopenharmony_ci     * Indicates the value to be written
374561847f8eSopenharmony_ci     *
374661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
374761847f8eSopenharmony_ci     * @since 9
374861847f8eSopenharmony_ci     * @deprecated since 10
374961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicWriteRequest#value
375061847f8eSopenharmony_ci     */
375161847f8eSopenharmony_ci    value: ArrayBuffer;
375261847f8eSopenharmony_ci    /**
375361847f8eSopenharmony_ci     * The UUID of a CharacteristicWriteRequest instance
375461847f8eSopenharmony_ci     *
375561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
375661847f8eSopenharmony_ci     * @since 9
375761847f8eSopenharmony_ci     * @deprecated since 10
375861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicWriteRequest#characteristicUuid
375961847f8eSopenharmony_ci     */
376061847f8eSopenharmony_ci    characteristicUuid: string;
376161847f8eSopenharmony_ci    /**
376261847f8eSopenharmony_ci     * The UUID of the service to which the characteristic belongs
376361847f8eSopenharmony_ci     *
376461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
376561847f8eSopenharmony_ci     * @since 9
376661847f8eSopenharmony_ci     * @deprecated since 10
376761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.CharacteristicWriteRequest#serviceUuid
376861847f8eSopenharmony_ci     */
376961847f8eSopenharmony_ci    serviceUuid: string;
377061847f8eSopenharmony_ci  }
377161847f8eSopenharmony_ci
377261847f8eSopenharmony_ci  /**
377361847f8eSopenharmony_ci   * Describes the parameters of the Gatt client's descriptor read request.
377461847f8eSopenharmony_ci   *
377561847f8eSopenharmony_ci   * @typedef DescriptorReadRequest
377661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
377761847f8eSopenharmony_ci   * @since 9
377861847f8eSopenharmony_ci   * @deprecated since 10
377961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.DescriptorReadRequest
378061847f8eSopenharmony_ci   */
378161847f8eSopenharmony_ci  interface DescriptorReadRequest {
378261847f8eSopenharmony_ci    /**
378361847f8eSopenharmony_ci     * Indicates the address of the client that initiates the read request
378461847f8eSopenharmony_ci     *
378561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
378661847f8eSopenharmony_ci     * @since 9
378761847f8eSopenharmony_ci     * @deprecated since 10
378861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorReadRequest#deviceId
378961847f8eSopenharmony_ci     */
379061847f8eSopenharmony_ci    deviceId: string;
379161847f8eSopenharmony_ci    /**
379261847f8eSopenharmony_ci     * The Id of the read request
379361847f8eSopenharmony_ci     *
379461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
379561847f8eSopenharmony_ci     * @since 9
379661847f8eSopenharmony_ci     * @deprecated since 10
379761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorReadRequest#transId
379861847f8eSopenharmony_ci     */
379961847f8eSopenharmony_ci    transId: number;
380061847f8eSopenharmony_ci    /**
380161847f8eSopenharmony_ci     * Indicates the byte offset of the start position for reading characteristic value
380261847f8eSopenharmony_ci     *
380361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
380461847f8eSopenharmony_ci     * @since 9
380561847f8eSopenharmony_ci     * @deprecated since 10
380661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorReadRequest#offset
380761847f8eSopenharmony_ci     */
380861847f8eSopenharmony_ci    offset: number;
380961847f8eSopenharmony_ci    /**
381061847f8eSopenharmony_ci     * The UUID of a DescriptorReadRequest instance
381161847f8eSopenharmony_ci     *
381261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
381361847f8eSopenharmony_ci     * @since 9
381461847f8eSopenharmony_ci     * @deprecated since 10
381561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorReadRequest#descriptorUuid
381661847f8eSopenharmony_ci     */
381761847f8eSopenharmony_ci    descriptorUuid: string;
381861847f8eSopenharmony_ci    /**
381961847f8eSopenharmony_ci     * The UUID of the characteristic to which the descriptor belongs
382061847f8eSopenharmony_ci     *
382161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
382261847f8eSopenharmony_ci     * @since 9
382361847f8eSopenharmony_ci     * @deprecated since 10
382461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorReadRequest#characteristicUuid
382561847f8eSopenharmony_ci     */
382661847f8eSopenharmony_ci    characteristicUuid: string;
382761847f8eSopenharmony_ci    /**
382861847f8eSopenharmony_ci     * The UUID of the service to which the descriptor belongs
382961847f8eSopenharmony_ci     *
383061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
383161847f8eSopenharmony_ci     * @since 9
383261847f8eSopenharmony_ci     * @deprecated since 10
383361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorReadRequest#serviceUuid
383461847f8eSopenharmony_ci     */
383561847f8eSopenharmony_ci    serviceUuid: string;
383661847f8eSopenharmony_ci  }
383761847f8eSopenharmony_ci
383861847f8eSopenharmony_ci  /**
383961847f8eSopenharmony_ci   * Describes the parameters of the Gatt client's characteristic write request.
384061847f8eSopenharmony_ci   *
384161847f8eSopenharmony_ci   * @typedef DescriptorWriteRequest
384261847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
384361847f8eSopenharmony_ci   * @since 9
384461847f8eSopenharmony_ci   * @deprecated since 10
384561847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.DescriptorWriteRequest
384661847f8eSopenharmony_ci   */
384761847f8eSopenharmony_ci  interface DescriptorWriteRequest {
384861847f8eSopenharmony_ci    /**
384961847f8eSopenharmony_ci     * Indicates the address of the client that initiates the write request
385061847f8eSopenharmony_ci     *
385161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
385261847f8eSopenharmony_ci     * @since 9
385361847f8eSopenharmony_ci     * @deprecated since 10
385461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorWriteRequest#deviceId
385561847f8eSopenharmony_ci     */
385661847f8eSopenharmony_ci    deviceId: string;
385761847f8eSopenharmony_ci    /**
385861847f8eSopenharmony_ci     * The Id of the write request
385961847f8eSopenharmony_ci     *
386061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
386161847f8eSopenharmony_ci     * @since 9
386261847f8eSopenharmony_ci     * @deprecated since 10
386361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorWriteRequest#transId
386461847f8eSopenharmony_ci     */
386561847f8eSopenharmony_ci    transId: number;
386661847f8eSopenharmony_ci    /**
386761847f8eSopenharmony_ci     * Indicates the byte offset of the start position for writing characteristic value
386861847f8eSopenharmony_ci     *
386961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
387061847f8eSopenharmony_ci     * @since 9
387161847f8eSopenharmony_ci     * @deprecated since 10
387261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorWriteRequest#offset
387361847f8eSopenharmony_ci     */
387461847f8eSopenharmony_ci    offset: number;
387561847f8eSopenharmony_ci    /**
387661847f8eSopenharmony_ci     * Whether this request should be pending for later operation
387761847f8eSopenharmony_ci     *
387861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
387961847f8eSopenharmony_ci     * @since 9
388061847f8eSopenharmony_ci     * @deprecated since 10
388161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorWriteRequest#isPrepared
388261847f8eSopenharmony_ci     */
388361847f8eSopenharmony_ci    isPrep: boolean;
388461847f8eSopenharmony_ci    /**
388561847f8eSopenharmony_ci     * Whether the remote client need a response
388661847f8eSopenharmony_ci     *
388761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
388861847f8eSopenharmony_ci     * @since 9
388961847f8eSopenharmony_ci     * @deprecated since 10
389061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorWriteRequest#needRsp
389161847f8eSopenharmony_ci     */
389261847f8eSopenharmony_ci    needRsp: boolean;
389361847f8eSopenharmony_ci    /**
389461847f8eSopenharmony_ci     * Indicates the value to be written
389561847f8eSopenharmony_ci     *
389661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
389761847f8eSopenharmony_ci     * @since 9
389861847f8eSopenharmony_ci     * @deprecated since 10
389961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorWriteRequest#value
390061847f8eSopenharmony_ci     */
390161847f8eSopenharmony_ci    value: ArrayBuffer;
390261847f8eSopenharmony_ci    /**
390361847f8eSopenharmony_ci     * The UUID of a DescriptorWriteRequest instance
390461847f8eSopenharmony_ci     *
390561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
390661847f8eSopenharmony_ci     * @since 9
390761847f8eSopenharmony_ci     * @deprecated since 10
390861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorWriteRequest#descriptorUuid
390961847f8eSopenharmony_ci     */
391061847f8eSopenharmony_ci    descriptorUuid: string;
391161847f8eSopenharmony_ci    /**
391261847f8eSopenharmony_ci     * The UUID of the characteristic to which the descriptor belongs
391361847f8eSopenharmony_ci     *
391461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
391561847f8eSopenharmony_ci     * @since 9
391661847f8eSopenharmony_ci     * @deprecated since 10
391761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorWriteRequest#characteristicUuid
391861847f8eSopenharmony_ci     */
391961847f8eSopenharmony_ci    characteristicUuid: string;
392061847f8eSopenharmony_ci    /**
392161847f8eSopenharmony_ci     * The UUID of the service to which the descriptor belongs
392261847f8eSopenharmony_ci     *
392361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
392461847f8eSopenharmony_ci     * @since 9
392561847f8eSopenharmony_ci     * @deprecated since 10
392661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.DescriptorWriteRequest#serviceUuid
392761847f8eSopenharmony_ci     */
392861847f8eSopenharmony_ci    serviceUuid: string;
392961847f8eSopenharmony_ci  }
393061847f8eSopenharmony_ci
393161847f8eSopenharmony_ci  /**
393261847f8eSopenharmony_ci   * Describes the parameters of a response send by the server to a specified read or write request.
393361847f8eSopenharmony_ci   *
393461847f8eSopenharmony_ci   * @typedef ServerResponse
393561847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
393661847f8eSopenharmony_ci   * @since 9
393761847f8eSopenharmony_ci   * @deprecated since 10
393861847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.ServerResponse
393961847f8eSopenharmony_ci   */
394061847f8eSopenharmony_ci  interface ServerResponse {
394161847f8eSopenharmony_ci    /**
394261847f8eSopenharmony_ci     * Indicates the address of the client to which to send the response
394361847f8eSopenharmony_ci     *
394461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
394561847f8eSopenharmony_ci     * @since 9
394661847f8eSopenharmony_ci     * @deprecated since 10
394761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ServerResponse#deviceId
394861847f8eSopenharmony_ci     */
394961847f8eSopenharmony_ci    deviceId: string;
395061847f8eSopenharmony_ci    /**
395161847f8eSopenharmony_ci     * The Id of the write request
395261847f8eSopenharmony_ci     *
395361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
395461847f8eSopenharmony_ci     * @since 9
395561847f8eSopenharmony_ci     * @deprecated since 10
395661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ServerResponse#transId
395761847f8eSopenharmony_ci     */
395861847f8eSopenharmony_ci    transId: number;
395961847f8eSopenharmony_ci    /**
396061847f8eSopenharmony_ci     * Indicates the status of the read or write request, set this parameter to '0' in normal cases
396161847f8eSopenharmony_ci     *
396261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
396361847f8eSopenharmony_ci     * @since 9
396461847f8eSopenharmony_ci     * @deprecated since 10
396561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ServerResponse#status
396661847f8eSopenharmony_ci     */
396761847f8eSopenharmony_ci    status: number;
396861847f8eSopenharmony_ci    /**
396961847f8eSopenharmony_ci     * Indicates the byte offset of the start position for reading or writing operation
397061847f8eSopenharmony_ci     *
397161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
397261847f8eSopenharmony_ci     * @since 9
397361847f8eSopenharmony_ci     * @deprecated since 10
397461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ServerResponse#offset
397561847f8eSopenharmony_ci     */
397661847f8eSopenharmony_ci    offset: number;
397761847f8eSopenharmony_ci    /**
397861847f8eSopenharmony_ci     * Indicates the value to be sent
397961847f8eSopenharmony_ci     *
398061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
398161847f8eSopenharmony_ci     * @since 9
398261847f8eSopenharmony_ci     * @deprecated since 10
398361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ServerResponse#value
398461847f8eSopenharmony_ci     */
398561847f8eSopenharmony_ci    value: ArrayBuffer;
398661847f8eSopenharmony_ci  }
398761847f8eSopenharmony_ci
398861847f8eSopenharmony_ci  /**
398961847f8eSopenharmony_ci   * Describes the Gatt profile connection state.
399061847f8eSopenharmony_ci   *
399161847f8eSopenharmony_ci   * @typedef BLEConnectChangedState
399261847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
399361847f8eSopenharmony_ci   * @since 9
399461847f8eSopenharmony_ci   * @deprecated since 10
399561847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.BLEConnectionChangeState
399661847f8eSopenharmony_ci   */
399761847f8eSopenharmony_ci  interface BLEConnectChangedState {
399861847f8eSopenharmony_ci    /**
399961847f8eSopenharmony_ci     * Indicates the peer device address
400061847f8eSopenharmony_ci     *
400161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
400261847f8eSopenharmony_ci     * @since 9
400361847f8eSopenharmony_ci     * @deprecated since 10
400461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.BLEConnectionChangeState#deviceId
400561847f8eSopenharmony_ci     */
400661847f8eSopenharmony_ci    deviceId: string;
400761847f8eSopenharmony_ci    /**
400861847f8eSopenharmony_ci     * Connection state of the Gatt profile
400961847f8eSopenharmony_ci     *
401061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
401161847f8eSopenharmony_ci     * @since 9
401261847f8eSopenharmony_ci     * @deprecated since 10
401361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.BLEConnectionChangeState#state
401461847f8eSopenharmony_ci     */
401561847f8eSopenharmony_ci    state: ProfileConnectionState;
401661847f8eSopenharmony_ci  }
401761847f8eSopenharmony_ci
401861847f8eSopenharmony_ci  /**
401961847f8eSopenharmony_ci   * Describes the contents of the scan results.
402061847f8eSopenharmony_ci   *
402161847f8eSopenharmony_ci   * @typedef ScanResult
402261847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
402361847f8eSopenharmony_ci   * @since 9
402461847f8eSopenharmony_ci   * @deprecated since 10
402561847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.ScanResult
402661847f8eSopenharmony_ci   */
402761847f8eSopenharmony_ci  interface ScanResult {
402861847f8eSopenharmony_ci    /**
402961847f8eSopenharmony_ci     * Address of the scanned device
403061847f8eSopenharmony_ci     *
403161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
403261847f8eSopenharmony_ci     * @since 9
403361847f8eSopenharmony_ci     * @deprecated since 10
403461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanResult#deviceId
403561847f8eSopenharmony_ci     */
403661847f8eSopenharmony_ci    deviceId: string;
403761847f8eSopenharmony_ci    /**
403861847f8eSopenharmony_ci     * RSSI of the remote device
403961847f8eSopenharmony_ci     *
404061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
404161847f8eSopenharmony_ci     * @since 9
404261847f8eSopenharmony_ci     * @deprecated since 10
404361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanResult#rssi
404461847f8eSopenharmony_ci     */
404561847f8eSopenharmony_ci    rssi: number;
404661847f8eSopenharmony_ci    /**
404761847f8eSopenharmony_ci     * The raw data of broadcast packet
404861847f8eSopenharmony_ci     *
404961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
405061847f8eSopenharmony_ci     * @since 9
405161847f8eSopenharmony_ci     * @deprecated since 10
405261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanResult#data
405361847f8eSopenharmony_ci     */
405461847f8eSopenharmony_ci    data: ArrayBuffer;
405561847f8eSopenharmony_ci  }
405661847f8eSopenharmony_ci
405761847f8eSopenharmony_ci  /**
405861847f8eSopenharmony_ci   * Describes the settings for BLE advertising.
405961847f8eSopenharmony_ci   *
406061847f8eSopenharmony_ci   * @typedef AdvertiseSetting
406161847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
406261847f8eSopenharmony_ci   * @since 9
406361847f8eSopenharmony_ci   * @deprecated since 10
406461847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.AdvertiseSetting
406561847f8eSopenharmony_ci   */
406661847f8eSopenharmony_ci  interface AdvertiseSetting {
406761847f8eSopenharmony_ci    /**
406861847f8eSopenharmony_ci     * Minimum slot value for the advertising interval, which is {@code 32} (20 ms)
406961847f8eSopenharmony_ci     * Maximum slot value for the advertising interval, which is {@code 16777215} (10485.759375s)
407061847f8eSopenharmony_ci     * Default slot value for the advertising interval, which is {@code 1600} (1s)
407161847f8eSopenharmony_ci     *
407261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
407361847f8eSopenharmony_ci     * @since 9
407461847f8eSopenharmony_ci     * @deprecated since 10
407561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.AdvertiseSetting#interval
407661847f8eSopenharmony_ci     */
407761847f8eSopenharmony_ci    interval?: number;
407861847f8eSopenharmony_ci    /**
407961847f8eSopenharmony_ci     * Minimum transmission power level for advertising, which is {@code -127}
408061847f8eSopenharmony_ci     * Maximum transmission power level for advertising, which is {@code 1}
408161847f8eSopenharmony_ci     * Default transmission power level for advertising, which is {@code -7}
408261847f8eSopenharmony_ci     *
408361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
408461847f8eSopenharmony_ci     * @since 9
408561847f8eSopenharmony_ci     * @deprecated since 10
408661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.AdvertiseSetting#txPower
408761847f8eSopenharmony_ci     */
408861847f8eSopenharmony_ci    txPower?: number;
408961847f8eSopenharmony_ci    /**
409061847f8eSopenharmony_ci     * Indicates whether the BLE is connectable, default is {@code true}
409161847f8eSopenharmony_ci     *
409261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
409361847f8eSopenharmony_ci     * @since 9
409461847f8eSopenharmony_ci     * @deprecated since 10
409561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.AdvertiseSetting#connectable
409661847f8eSopenharmony_ci     */
409761847f8eSopenharmony_ci    connectable?: boolean;
409861847f8eSopenharmony_ci  }
409961847f8eSopenharmony_ci
410061847f8eSopenharmony_ci  /**
410161847f8eSopenharmony_ci   * Describes the advertising data.
410261847f8eSopenharmony_ci   *
410361847f8eSopenharmony_ci   * @typedef AdvertiseData
410461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
410561847f8eSopenharmony_ci   * @since 9
410661847f8eSopenharmony_ci   * @deprecated since 10
410761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.AdvertiseData
410861847f8eSopenharmony_ci   */
410961847f8eSopenharmony_ci  interface AdvertiseData {
411061847f8eSopenharmony_ci    /**
411161847f8eSopenharmony_ci     * The specified service UUID list to this advertisement
411261847f8eSopenharmony_ci     *
411361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
411461847f8eSopenharmony_ci     * @since 9
411561847f8eSopenharmony_ci     * @deprecated since 10
411661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.AdvertiseData#serviceUuids
411761847f8eSopenharmony_ci     */
411861847f8eSopenharmony_ci    serviceUuids: Array<string>;
411961847f8eSopenharmony_ci    /**
412061847f8eSopenharmony_ci     * The specified manufacturer data list to this advertisement
412161847f8eSopenharmony_ci     *
412261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
412361847f8eSopenharmony_ci     * @since 9
412461847f8eSopenharmony_ci     * @deprecated since 10
412561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.AdvertiseData#manufactureData
412661847f8eSopenharmony_ci     */
412761847f8eSopenharmony_ci    manufactureData: Array<ManufactureData>;
412861847f8eSopenharmony_ci    /**
412961847f8eSopenharmony_ci     * The specified service data list to this advertisement
413061847f8eSopenharmony_ci     *
413161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
413261847f8eSopenharmony_ci     * @since 9
413361847f8eSopenharmony_ci     * @deprecated since 10
413461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.AdvertiseData#serviceData
413561847f8eSopenharmony_ci     */
413661847f8eSopenharmony_ci    serviceData: Array<ServiceData>;
413761847f8eSopenharmony_ci  }
413861847f8eSopenharmony_ci
413961847f8eSopenharmony_ci  /**
414061847f8eSopenharmony_ci   * Describes the manufacturer data.
414161847f8eSopenharmony_ci   *
414261847f8eSopenharmony_ci   * @typedef ManufactureData
414361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
414461847f8eSopenharmony_ci   * @since 9
414561847f8eSopenharmony_ci   * @deprecated since 10
414661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.ManufactureData
414761847f8eSopenharmony_ci   */
414861847f8eSopenharmony_ci  interface ManufactureData {
414961847f8eSopenharmony_ci    /**
415061847f8eSopenharmony_ci     * Indicates the manufacturer ID assigned by Bluetooth SIG
415161847f8eSopenharmony_ci     *
415261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
415361847f8eSopenharmony_ci     * @since 9
415461847f8eSopenharmony_ci     * @deprecated since 10
415561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ManufactureData#manufactureId
415661847f8eSopenharmony_ci     */
415761847f8eSopenharmony_ci    manufactureId: number;
415861847f8eSopenharmony_ci    /**
415961847f8eSopenharmony_ci     * Indicates the manufacturer data to add
416061847f8eSopenharmony_ci     *
416161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
416261847f8eSopenharmony_ci     * @since 9
416361847f8eSopenharmony_ci     * @deprecated since 10
416461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ManufactureData#manufactureValue
416561847f8eSopenharmony_ci     */
416661847f8eSopenharmony_ci    manufactureValue: ArrayBuffer;
416761847f8eSopenharmony_ci  }
416861847f8eSopenharmony_ci
416961847f8eSopenharmony_ci  /**
417061847f8eSopenharmony_ci   * Describes the service data.
417161847f8eSopenharmony_ci   *
417261847f8eSopenharmony_ci   * @typedef ServiceData
417361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
417461847f8eSopenharmony_ci   * @since 9
417561847f8eSopenharmony_ci   * @deprecated since 10
417661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.ServiceData
417761847f8eSopenharmony_ci   */
417861847f8eSopenharmony_ci  interface ServiceData {
417961847f8eSopenharmony_ci    /**
418061847f8eSopenharmony_ci     * Indicates the UUID of the service data to add
418161847f8eSopenharmony_ci     *
418261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
418361847f8eSopenharmony_ci     * @since 9
418461847f8eSopenharmony_ci     * @deprecated since 10
418561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ServiceData#serviceUuid
418661847f8eSopenharmony_ci     */
418761847f8eSopenharmony_ci    serviceUuid: string;
418861847f8eSopenharmony_ci    /**
418961847f8eSopenharmony_ci     * Indicates the service data to add
419061847f8eSopenharmony_ci     *
419161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
419261847f8eSopenharmony_ci     * @since 9
419361847f8eSopenharmony_ci     * @deprecated since 10
419461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ServiceData#serviceValue
419561847f8eSopenharmony_ci     */
419661847f8eSopenharmony_ci    serviceValue: ArrayBuffer;
419761847f8eSopenharmony_ci  }
419861847f8eSopenharmony_ci
419961847f8eSopenharmony_ci  /**
420061847f8eSopenharmony_ci   * Describes the criteria for filtering scanning results can be set.
420161847f8eSopenharmony_ci   *
420261847f8eSopenharmony_ci   * @typedef ScanFilter
420361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
420461847f8eSopenharmony_ci   * @since 9
420561847f8eSopenharmony_ci   * @deprecated since 10
420661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.ScanFilter
420761847f8eSopenharmony_ci   */
420861847f8eSopenharmony_ci  interface ScanFilter {
420961847f8eSopenharmony_ci    /**
421061847f8eSopenharmony_ci     * The address of a BLE peripheral device
421161847f8eSopenharmony_ci     *
421261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
421361847f8eSopenharmony_ci     * @since 9
421461847f8eSopenharmony_ci     * @deprecated since 10
421561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#deviceId
421661847f8eSopenharmony_ci     */
421761847f8eSopenharmony_ci    deviceId?: string;
421861847f8eSopenharmony_ci
421961847f8eSopenharmony_ci    /**
422061847f8eSopenharmony_ci     * The name of a BLE peripheral device
422161847f8eSopenharmony_ci     *
422261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
422361847f8eSopenharmony_ci     * @since 9
422461847f8eSopenharmony_ci     * @deprecated since 10
422561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#name
422661847f8eSopenharmony_ci     */
422761847f8eSopenharmony_ci    name?: string;
422861847f8eSopenharmony_ci
422961847f8eSopenharmony_ci    /**
423061847f8eSopenharmony_ci     * The service UUID of a BLE peripheral device
423161847f8eSopenharmony_ci     *
423261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
423361847f8eSopenharmony_ci     * @since 9
423461847f8eSopenharmony_ci     * @deprecated since 10
423561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#serviceUuid
423661847f8eSopenharmony_ci     */
423761847f8eSopenharmony_ci    serviceUuid?: string;
423861847f8eSopenharmony_ci
423961847f8eSopenharmony_ci    /**
424061847f8eSopenharmony_ci     * Service UUID mask.
424161847f8eSopenharmony_ci     *
424261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
424361847f8eSopenharmony_ci     * @since 9
424461847f8eSopenharmony_ci     * @deprecated since 10
424561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#serviceUuidMask
424661847f8eSopenharmony_ci     */
424761847f8eSopenharmony_ci    serviceUuidMask?: string;
424861847f8eSopenharmony_ci
424961847f8eSopenharmony_ci    /**
425061847f8eSopenharmony_ci     * Service solicitation UUID.
425161847f8eSopenharmony_ci     *
425261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
425361847f8eSopenharmony_ci     * @since 9
425461847f8eSopenharmony_ci     * @deprecated since 10
425561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#serviceSolicitationUuid
425661847f8eSopenharmony_ci     */
425761847f8eSopenharmony_ci    serviceSolicitationUuid?: string;
425861847f8eSopenharmony_ci
425961847f8eSopenharmony_ci    /**
426061847f8eSopenharmony_ci     * Service solicitation UUID mask.
426161847f8eSopenharmony_ci     *
426261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
426361847f8eSopenharmony_ci     * @since 9
426461847f8eSopenharmony_ci     * @deprecated since 10
426561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#serviceSolicitationUuidMask
426661847f8eSopenharmony_ci     */
426761847f8eSopenharmony_ci    serviceSolicitationUuidMask?: string;
426861847f8eSopenharmony_ci
426961847f8eSopenharmony_ci    /**
427061847f8eSopenharmony_ci     * Service data.
427161847f8eSopenharmony_ci     *
427261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
427361847f8eSopenharmony_ci     * @since 9
427461847f8eSopenharmony_ci     * @deprecated since 10
427561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#serviceData
427661847f8eSopenharmony_ci     */
427761847f8eSopenharmony_ci    serviceData?: ArrayBuffer;
427861847f8eSopenharmony_ci
427961847f8eSopenharmony_ci    /**
428061847f8eSopenharmony_ci     * Service data mask.
428161847f8eSopenharmony_ci     *
428261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
428361847f8eSopenharmony_ci     * @since 9
428461847f8eSopenharmony_ci     * @deprecated since 10
428561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#serviceDataMask
428661847f8eSopenharmony_ci     */
428761847f8eSopenharmony_ci    serviceDataMask?: ArrayBuffer;
428861847f8eSopenharmony_ci
428961847f8eSopenharmony_ci    /**
429061847f8eSopenharmony_ci     * Manufacture id.
429161847f8eSopenharmony_ci     *
429261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
429361847f8eSopenharmony_ci     * @since 9
429461847f8eSopenharmony_ci     * @deprecated since 10
429561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#manufactureId
429661847f8eSopenharmony_ci     */
429761847f8eSopenharmony_ci    manufactureId?: number;
429861847f8eSopenharmony_ci
429961847f8eSopenharmony_ci    /**
430061847f8eSopenharmony_ci     * Manufacture data.
430161847f8eSopenharmony_ci     *
430261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
430361847f8eSopenharmony_ci     * @since 9
430461847f8eSopenharmony_ci     * @deprecated since 10
430561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#manufactureData
430661847f8eSopenharmony_ci     */
430761847f8eSopenharmony_ci    manufactureData?: ArrayBuffer;
430861847f8eSopenharmony_ci
430961847f8eSopenharmony_ci    /**
431061847f8eSopenharmony_ci     * Manufacture data mask.
431161847f8eSopenharmony_ci     *
431261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
431361847f8eSopenharmony_ci     * @since 9
431461847f8eSopenharmony_ci     * @deprecated since 10
431561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanFilter#manufactureDataMask
431661847f8eSopenharmony_ci     */
431761847f8eSopenharmony_ci    manufactureDataMask?: ArrayBuffer;
431861847f8eSopenharmony_ci  }
431961847f8eSopenharmony_ci
432061847f8eSopenharmony_ci  /**
432161847f8eSopenharmony_ci   * Describes the parameters for scan.
432261847f8eSopenharmony_ci   *
432361847f8eSopenharmony_ci   * @typedef ScanOptions
432461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
432561847f8eSopenharmony_ci   * @since 9
432661847f8eSopenharmony_ci   * @deprecated since 10
432761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.ScanOptions
432861847f8eSopenharmony_ci   */
432961847f8eSopenharmony_ci  interface ScanOptions {
433061847f8eSopenharmony_ci    /**
433161847f8eSopenharmony_ci     * Time of delay for reporting the scan result
433261847f8eSopenharmony_ci     *
433361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
433461847f8eSopenharmony_ci     * @since 9
433561847f8eSopenharmony_ci     * @deprecated since 10
433661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanOptions#interval
433761847f8eSopenharmony_ci     */
433861847f8eSopenharmony_ci    interval?: number;
433961847f8eSopenharmony_ci    /**
434061847f8eSopenharmony_ci     * Bluetooth LE scan mode
434161847f8eSopenharmony_ci     *
434261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
434361847f8eSopenharmony_ci     * @since 9
434461847f8eSopenharmony_ci     * @deprecated since 10
434561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanOptions#dutyMode
434661847f8eSopenharmony_ci     */
434761847f8eSopenharmony_ci    dutyMode?: ScanDuty;
434861847f8eSopenharmony_ci    /**
434961847f8eSopenharmony_ci     * Match mode for Bluetooth LE scan filters hardware match
435061847f8eSopenharmony_ci     *
435161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
435261847f8eSopenharmony_ci     * @since 9
435361847f8eSopenharmony_ci     * @deprecated since 10
435461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanOptions#matchMode
435561847f8eSopenharmony_ci     */
435661847f8eSopenharmony_ci    matchMode?: MatchMode;
435761847f8eSopenharmony_ci  }
435861847f8eSopenharmony_ci
435961847f8eSopenharmony_ci  /**
436061847f8eSopenharmony_ci   * Describes the spp parameters.
436161847f8eSopenharmony_ci   *
436261847f8eSopenharmony_ci   * @typedef SppOption
436361847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
436461847f8eSopenharmony_ci   * @since 9
436561847f8eSopenharmony_ci   * @deprecated since 10
436661847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket.SppOptions
436761847f8eSopenharmony_ci   */
436861847f8eSopenharmony_ci  interface SppOption {
436961847f8eSopenharmony_ci    /**
437061847f8eSopenharmony_ci     * Indicates the UUID in the SDP record.
437161847f8eSopenharmony_ci     *
437261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
437361847f8eSopenharmony_ci     * @since 9
437461847f8eSopenharmony_ci     * @deprecated since 10
437561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.socket/socket.SppOptions#uuid
437661847f8eSopenharmony_ci     */
437761847f8eSopenharmony_ci    uuid: string;
437861847f8eSopenharmony_ci    /**
437961847f8eSopenharmony_ci     * Indicates secure channel or not
438061847f8eSopenharmony_ci     *
438161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
438261847f8eSopenharmony_ci     * @since 9
438361847f8eSopenharmony_ci     * @deprecated since 10
438461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.socket/socket.SppOptions#secure
438561847f8eSopenharmony_ci     */
438661847f8eSopenharmony_ci    secure: boolean;
438761847f8eSopenharmony_ci    /**
438861847f8eSopenharmony_ci     * Spp link type {@link SppType}
438961847f8eSopenharmony_ci     *
439061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
439161847f8eSopenharmony_ci     * @since 9
439261847f8eSopenharmony_ci     * @deprecated since 10
439361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.socket/socket.SppOptions#type
439461847f8eSopenharmony_ci     */
439561847f8eSopenharmony_ci    type: SppType;
439661847f8eSopenharmony_ci  }
439761847f8eSopenharmony_ci
439861847f8eSopenharmony_ci  /**
439961847f8eSopenharmony_ci   * Describes the bond key param.
440061847f8eSopenharmony_ci   *
440161847f8eSopenharmony_ci   * @typedef PinRequiredParam
440261847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
440361847f8eSopenharmony_ci   * @since 9
440461847f8eSopenharmony_ci   * @deprecated since 10
440561847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.PinRequiredParam
440661847f8eSopenharmony_ci   */
440761847f8eSopenharmony_ci  interface PinRequiredParam {
440861847f8eSopenharmony_ci    /**
440961847f8eSopenharmony_ci     * ID of the device to pair.
441061847f8eSopenharmony_ci     *
441161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
441261847f8eSopenharmony_ci     * @since 9
441361847f8eSopenharmony_ci     * @deprecated since 10
441461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.PinRequiredParam#deviceId
441561847f8eSopenharmony_ci     */
441661847f8eSopenharmony_ci    deviceId: string;
441761847f8eSopenharmony_ci    /**
441861847f8eSopenharmony_ci     * Key for the device pairing.
441961847f8eSopenharmony_ci     *
442061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
442161847f8eSopenharmony_ci     * @since 9
442261847f8eSopenharmony_ci     * @deprecated since 10
442361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.PinRequiredParam#pinCode
442461847f8eSopenharmony_ci     */
442561847f8eSopenharmony_ci    pinCode: string;
442661847f8eSopenharmony_ci  }
442761847f8eSopenharmony_ci
442861847f8eSopenharmony_ci  /**
442961847f8eSopenharmony_ci   * Describes the class of a bluetooth device.
443061847f8eSopenharmony_ci   *
443161847f8eSopenharmony_ci   * @typedef DeviceClass
443261847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
443361847f8eSopenharmony_ci   * @since 9
443461847f8eSopenharmony_ci   * @deprecated since 10
443561847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.DeviceClass
443661847f8eSopenharmony_ci   */
443761847f8eSopenharmony_ci  interface DeviceClass {
443861847f8eSopenharmony_ci    /**
443961847f8eSopenharmony_ci     * Major classes of Bluetooth devices.
444061847f8eSopenharmony_ci     *
444161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
444261847f8eSopenharmony_ci     * @since 9
444361847f8eSopenharmony_ci     * @deprecated since 10
444461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.DeviceClass#majorClass
444561847f8eSopenharmony_ci     */
444661847f8eSopenharmony_ci    majorClass: MajorClass;
444761847f8eSopenharmony_ci    /**
444861847f8eSopenharmony_ci     * Major and minor classes of Bluetooth devices.
444961847f8eSopenharmony_ci     *
445061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
445161847f8eSopenharmony_ci     * @since 9
445261847f8eSopenharmony_ci     * @deprecated since 10
445361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.DeviceClass#majorMinorClass
445461847f8eSopenharmony_ci     */
445561847f8eSopenharmony_ci    majorMinorClass: MajorMinorClass;
445661847f8eSopenharmony_ci    /**
445761847f8eSopenharmony_ci     * Class of the device.
445861847f8eSopenharmony_ci     *
445961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
446061847f8eSopenharmony_ci     * @since 9
446161847f8eSopenharmony_ci     * @deprecated since 10
446261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.DeviceClass#classOfDevice
446361847f8eSopenharmony_ci     */
446461847f8eSopenharmony_ci    classOfDevice: number;
446561847f8eSopenharmony_ci  }
446661847f8eSopenharmony_ci
446761847f8eSopenharmony_ci  /**
446861847f8eSopenharmony_ci   * Describes the class of a bluetooth device.
446961847f8eSopenharmony_ci   *
447061847f8eSopenharmony_ci   * @typedef BondStateParam
447161847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
447261847f8eSopenharmony_ci   * @since 9
447361847f8eSopenharmony_ci   * @deprecated since 10
447461847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.BondStateParam
447561847f8eSopenharmony_ci   */
447661847f8eSopenharmony_ci  interface BondStateParam {
447761847f8eSopenharmony_ci    /**
447861847f8eSopenharmony_ci     * Address of a Bluetooth device.
447961847f8eSopenharmony_ci     *
448061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
448161847f8eSopenharmony_ci     * @since 9
448261847f8eSopenharmony_ci     * @deprecated since 10
448361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.BondStateParam#deviceId
448461847f8eSopenharmony_ci     */
448561847f8eSopenharmony_ci    deviceId: string;
448661847f8eSopenharmony_ci    /**
448761847f8eSopenharmony_ci     * Profile connection state of the device.
448861847f8eSopenharmony_ci     *
448961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
449061847f8eSopenharmony_ci     * @since 9
449161847f8eSopenharmony_ci     * @deprecated since 10
449261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.BondStateParam#state
449361847f8eSopenharmony_ci     */
449461847f8eSopenharmony_ci    state: BondState;
449561847f8eSopenharmony_ci  }
449661847f8eSopenharmony_ci
449761847f8eSopenharmony_ci  /**
449861847f8eSopenharmony_ci   * Profile state change parameters.
449961847f8eSopenharmony_ci   *
450061847f8eSopenharmony_ci   * @typedef StateChangeParam
450161847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
450261847f8eSopenharmony_ci   * @since 9
450361847f8eSopenharmony_ci   * @deprecated since 10
450461847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.baseProfile/baseProfile.StateChangeParam
450561847f8eSopenharmony_ci   */
450661847f8eSopenharmony_ci  interface StateChangeParam {
450761847f8eSopenharmony_ci    /**
450861847f8eSopenharmony_ci     * The address of device
450961847f8eSopenharmony_ci     *
451061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
451161847f8eSopenharmony_ci     * @since 9
451261847f8eSopenharmony_ci     * @deprecated since 10
451361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.baseProfile/baseProfile.StateChangeParam#deviceId
451461847f8eSopenharmony_ci     */
451561847f8eSopenharmony_ci    deviceId: string;
451661847f8eSopenharmony_ci
451761847f8eSopenharmony_ci    /**
451861847f8eSopenharmony_ci     * Profile state value
451961847f8eSopenharmony_ci     *
452061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
452161847f8eSopenharmony_ci     * @since 9
452261847f8eSopenharmony_ci     * @deprecated since 10
452361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.baseProfile/baseProfile.StateChangeParam#state
452461847f8eSopenharmony_ci     */
452561847f8eSopenharmony_ci    state: ProfileConnectionState;
452661847f8eSopenharmony_ci  }
452761847f8eSopenharmony_ci
452861847f8eSopenharmony_ci  /**
452961847f8eSopenharmony_ci   * The enum of scan duty.
453061847f8eSopenharmony_ci   *
453161847f8eSopenharmony_ci   * @enum { number }
453261847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
453361847f8eSopenharmony_ci   * @since 9
453461847f8eSopenharmony_ci   * @deprecated since 10
453561847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.ScanDuty
453661847f8eSopenharmony_ci   */
453761847f8eSopenharmony_ci  enum ScanDuty {
453861847f8eSopenharmony_ci    /**
453961847f8eSopenharmony_ci     * low power mode
454061847f8eSopenharmony_ci     *
454161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
454261847f8eSopenharmony_ci     * @since 9
454361847f8eSopenharmony_ci     * @deprecated since 10
454461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanDuty#SCAN_MODE_LOW_POWER
454561847f8eSopenharmony_ci     */
454661847f8eSopenharmony_ci    SCAN_MODE_LOW_POWER = 0,
454761847f8eSopenharmony_ci    /**
454861847f8eSopenharmony_ci     * balanced power mode
454961847f8eSopenharmony_ci     *
455061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
455161847f8eSopenharmony_ci     * @since 9
455261847f8eSopenharmony_ci     * @deprecated since 10
455361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanDuty#SCAN_MODE_BALANCED
455461847f8eSopenharmony_ci     */
455561847f8eSopenharmony_ci    SCAN_MODE_BALANCED = 1,
455661847f8eSopenharmony_ci    /**
455761847f8eSopenharmony_ci     * Scan using highest duty cycle
455861847f8eSopenharmony_ci     *
455961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
456061847f8eSopenharmony_ci     * @since 9
456161847f8eSopenharmony_ci     * @deprecated since 10
456261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.ScanDuty#SCAN_MODE_LOW_LATENCY
456361847f8eSopenharmony_ci     */
456461847f8eSopenharmony_ci    SCAN_MODE_LOW_LATENCY = 2
456561847f8eSopenharmony_ci  }
456661847f8eSopenharmony_ci
456761847f8eSopenharmony_ci  /**
456861847f8eSopenharmony_ci   * The enum of BLE match mode.
456961847f8eSopenharmony_ci   *
457061847f8eSopenharmony_ci   * @enum { number }
457161847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
457261847f8eSopenharmony_ci   * @since 9
457361847f8eSopenharmony_ci   * @deprecated since 10
457461847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.ble/ble.MatchMode
457561847f8eSopenharmony_ci   */
457661847f8eSopenharmony_ci  enum MatchMode {
457761847f8eSopenharmony_ci    /**
457861847f8eSopenharmony_ci     * aggressive mode
457961847f8eSopenharmony_ci     *
458061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
458161847f8eSopenharmony_ci     * @since 9
458261847f8eSopenharmony_ci     * @deprecated since 10
458361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.MatchMode#MATCH_MODE_AGGRESSIVE
458461847f8eSopenharmony_ci     */
458561847f8eSopenharmony_ci    MATCH_MODE_AGGRESSIVE = 1,
458661847f8eSopenharmony_ci    /**
458761847f8eSopenharmony_ci     * sticky mode
458861847f8eSopenharmony_ci     *
458961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
459061847f8eSopenharmony_ci     * @since 9
459161847f8eSopenharmony_ci     * @deprecated since 10
459261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.ble/ble.MatchMode#MATCH_MODE_STICKY
459361847f8eSopenharmony_ci     */
459461847f8eSopenharmony_ci    MATCH_MODE_STICKY = 2
459561847f8eSopenharmony_ci  }
459661847f8eSopenharmony_ci
459761847f8eSopenharmony_ci  /**
459861847f8eSopenharmony_ci   * The enum of profile connection state.
459961847f8eSopenharmony_ci   *
460061847f8eSopenharmony_ci   * @enum { number }
460161847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
460261847f8eSopenharmony_ci   * @since 9
460361847f8eSopenharmony_ci   * @deprecated since 10
460461847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.constant/constant.ProfileConnectionState
460561847f8eSopenharmony_ci   */
460661847f8eSopenharmony_ci  enum ProfileConnectionState {
460761847f8eSopenharmony_ci    /**
460861847f8eSopenharmony_ci     * the current profile is disconnected
460961847f8eSopenharmony_ci     *
461061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
461161847f8eSopenharmony_ci     * @since 9
461261847f8eSopenharmony_ci     * @deprecated since 10
461361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.ProfileConnectionState#STATE_DISCONNECTED
461461847f8eSopenharmony_ci     */
461561847f8eSopenharmony_ci    STATE_DISCONNECTED = 0,
461661847f8eSopenharmony_ci    /**
461761847f8eSopenharmony_ci     * the current profile is being connected
461861847f8eSopenharmony_ci     *
461961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
462061847f8eSopenharmony_ci     * @since 9
462161847f8eSopenharmony_ci     * @deprecated since 10
462261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.ProfileConnectionState#STATE_CONNECTING
462361847f8eSopenharmony_ci     */
462461847f8eSopenharmony_ci    STATE_CONNECTING = 1,
462561847f8eSopenharmony_ci    /**
462661847f8eSopenharmony_ci     * the current profile is connected
462761847f8eSopenharmony_ci     *
462861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
462961847f8eSopenharmony_ci     * @since 9
463061847f8eSopenharmony_ci     * @deprecated since 10
463161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.ProfileConnectionState#STATE_CONNECTED
463261847f8eSopenharmony_ci     */
463361847f8eSopenharmony_ci    STATE_CONNECTED = 2,
463461847f8eSopenharmony_ci    /**
463561847f8eSopenharmony_ci     * the current profile is being disconnected
463661847f8eSopenharmony_ci     *
463761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
463861847f8eSopenharmony_ci     * @since 9
463961847f8eSopenharmony_ci     * @deprecated since 10
464061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.ProfileConnectionState#STATE_DISCONNECTING
464161847f8eSopenharmony_ci     */
464261847f8eSopenharmony_ci    STATE_DISCONNECTING = 3
464361847f8eSopenharmony_ci  }
464461847f8eSopenharmony_ci
464561847f8eSopenharmony_ci  /**
464661847f8eSopenharmony_ci   * The enum of bluetooth state.
464761847f8eSopenharmony_ci   *
464861847f8eSopenharmony_ci   * @enum { number }
464961847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
465061847f8eSopenharmony_ci   * @since 9
465161847f8eSopenharmony_ci   * @deprecated since 10
465261847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.access/access.BluetoothState
465361847f8eSopenharmony_ci   */
465461847f8eSopenharmony_ci  enum BluetoothState {
465561847f8eSopenharmony_ci    /**
465661847f8eSopenharmony_ci     * Indicates the local Bluetooth is off
465761847f8eSopenharmony_ci     *
465861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
465961847f8eSopenharmony_ci     * @since 9
466061847f8eSopenharmony_ci     * @deprecated since 10
466161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.access/access.BluetoothState#STATE_OFF
466261847f8eSopenharmony_ci     */
466361847f8eSopenharmony_ci    STATE_OFF = 0,
466461847f8eSopenharmony_ci    /**
466561847f8eSopenharmony_ci     * Indicates the local Bluetooth is turning on
466661847f8eSopenharmony_ci     *
466761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
466861847f8eSopenharmony_ci     * @since 9
466961847f8eSopenharmony_ci     * @deprecated since 10
467061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.access/access.BluetoothState#STATE_TURNING_ON
467161847f8eSopenharmony_ci     */
467261847f8eSopenharmony_ci    STATE_TURNING_ON = 1,
467361847f8eSopenharmony_ci    /**
467461847f8eSopenharmony_ci     * Indicates the local Bluetooth is on, and ready for use
467561847f8eSopenharmony_ci     *
467661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
467761847f8eSopenharmony_ci     * @since 9
467861847f8eSopenharmony_ci     * @deprecated since 10
467961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.access/access.BluetoothState#STATE_ON
468061847f8eSopenharmony_ci     */
468161847f8eSopenharmony_ci    STATE_ON = 2,
468261847f8eSopenharmony_ci    /**
468361847f8eSopenharmony_ci     * Indicates the local Bluetooth is turning off
468461847f8eSopenharmony_ci     *
468561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
468661847f8eSopenharmony_ci     * @since 9
468761847f8eSopenharmony_ci     * @deprecated since 10
468861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.access/access.BluetoothState#STATE_TURNING_OFF
468961847f8eSopenharmony_ci     */
469061847f8eSopenharmony_ci    STATE_TURNING_OFF = 3,
469161847f8eSopenharmony_ci    /**
469261847f8eSopenharmony_ci     * Indicates the local Bluetooth is turning LE mode on
469361847f8eSopenharmony_ci     *
469461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
469561847f8eSopenharmony_ci     * @since 9
469661847f8eSopenharmony_ci     * @deprecated since 10
469761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.access/access.BluetoothState#STATE_BLE_TURNING_ON
469861847f8eSopenharmony_ci     */
469961847f8eSopenharmony_ci    STATE_BLE_TURNING_ON = 4,
470061847f8eSopenharmony_ci    /**
470161847f8eSopenharmony_ci     * Indicates the local Bluetooth is in LE only mode
470261847f8eSopenharmony_ci     *
470361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
470461847f8eSopenharmony_ci     * @since 9
470561847f8eSopenharmony_ci     * @deprecated since 10
470661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.access/access.BluetoothState#STATE_BLE_ON
470761847f8eSopenharmony_ci     */
470861847f8eSopenharmony_ci    STATE_BLE_ON = 5,
470961847f8eSopenharmony_ci    /**
471061847f8eSopenharmony_ci     * Indicates the local Bluetooth is turning off LE only mode
471161847f8eSopenharmony_ci     *
471261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
471361847f8eSopenharmony_ci     * @since 9
471461847f8eSopenharmony_ci     * @deprecated since 10
471561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.access/access.BluetoothState#STATE_BLE_TURNING_OFF
471661847f8eSopenharmony_ci     */
471761847f8eSopenharmony_ci    STATE_BLE_TURNING_OFF = 6
471861847f8eSopenharmony_ci  }
471961847f8eSopenharmony_ci
472061847f8eSopenharmony_ci  /**
472161847f8eSopenharmony_ci   * The enum of SPP type.
472261847f8eSopenharmony_ci   *
472361847f8eSopenharmony_ci   * @enum { number }
472461847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
472561847f8eSopenharmony_ci   * @since 9
472661847f8eSopenharmony_ci   * @deprecated since 10
472761847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.socket/socket.SppType
472861847f8eSopenharmony_ci   */
472961847f8eSopenharmony_ci  enum SppType {
473061847f8eSopenharmony_ci    /**
473161847f8eSopenharmony_ci     * RFCOMM
473261847f8eSopenharmony_ci     *
473361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
473461847f8eSopenharmony_ci     * @since 9
473561847f8eSopenharmony_ci     * @deprecated since 10
473661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.socket/socket.SppType#SPP_RFCOMM
473761847f8eSopenharmony_ci     */
473861847f8eSopenharmony_ci    SPP_RFCOMM
473961847f8eSopenharmony_ci  }
474061847f8eSopenharmony_ci
474161847f8eSopenharmony_ci  /**
474261847f8eSopenharmony_ci   * The enum of BR scan mode.
474361847f8eSopenharmony_ci   *
474461847f8eSopenharmony_ci   * @enum { number }
474561847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
474661847f8eSopenharmony_ci   * @since 9
474761847f8eSopenharmony_ci   * @deprecated since 10
474861847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.ScanMode
474961847f8eSopenharmony_ci   */
475061847f8eSopenharmony_ci  enum ScanMode {
475161847f8eSopenharmony_ci    /**
475261847f8eSopenharmony_ci     * Indicates the scan mode is none
475361847f8eSopenharmony_ci     *
475461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
475561847f8eSopenharmony_ci     * @since 9
475661847f8eSopenharmony_ci     * @deprecated since 10
475761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.ScanMode#SCAN_MODE_NONE
475861847f8eSopenharmony_ci     */
475961847f8eSopenharmony_ci    SCAN_MODE_NONE = 0,
476061847f8eSopenharmony_ci    /**
476161847f8eSopenharmony_ci     * Indicates the scan mode is connectable
476261847f8eSopenharmony_ci     *
476361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
476461847f8eSopenharmony_ci     * @since 9
476561847f8eSopenharmony_ci     * @deprecated since 10
476661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.ScanMode#SCAN_MODE_CONNECTABLE
476761847f8eSopenharmony_ci     */
476861847f8eSopenharmony_ci    SCAN_MODE_CONNECTABLE = 1,
476961847f8eSopenharmony_ci    /**
477061847f8eSopenharmony_ci     * Indicates the scan mode is general discoverable
477161847f8eSopenharmony_ci     *
477261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
477361847f8eSopenharmony_ci     * @since 9
477461847f8eSopenharmony_ci     * @deprecated since 10
477561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.ScanMode#SCAN_MODE_GENERAL_DISCOVERABLE
477661847f8eSopenharmony_ci     */
477761847f8eSopenharmony_ci    SCAN_MODE_GENERAL_DISCOVERABLE = 2,
477861847f8eSopenharmony_ci    /**
477961847f8eSopenharmony_ci     * Indicates the scan mode is limited discoverable
478061847f8eSopenharmony_ci     *
478161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
478261847f8eSopenharmony_ci     * @since 9
478361847f8eSopenharmony_ci     * @deprecated since 10
478461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.ScanMode#SCAN_MODE_LIMITED_DISCOVERABLE
478561847f8eSopenharmony_ci     */
478661847f8eSopenharmony_ci    SCAN_MODE_LIMITED_DISCOVERABLE = 3,
478761847f8eSopenharmony_ci    /**
478861847f8eSopenharmony_ci     * Indicates the scan mode is connectable and general discoverable
478961847f8eSopenharmony_ci     *
479061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
479161847f8eSopenharmony_ci     * @since 9
479261847f8eSopenharmony_ci     * @deprecated since 10
479361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.ScanMode#SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE
479461847f8eSopenharmony_ci     */
479561847f8eSopenharmony_ci    SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE = 4,
479661847f8eSopenharmony_ci    /**
479761847f8eSopenharmony_ci     * Indicates the scan mode is connectable and limited discoverable
479861847f8eSopenharmony_ci     *
479961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
480061847f8eSopenharmony_ci     * @since 9
480161847f8eSopenharmony_ci     * @deprecated since 10
480261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.ScanMode#SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE
480361847f8eSopenharmony_ci     */
480461847f8eSopenharmony_ci    SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE = 5
480561847f8eSopenharmony_ci  }
480661847f8eSopenharmony_ci
480761847f8eSopenharmony_ci  /**
480861847f8eSopenharmony_ci   * The enum of bond state.
480961847f8eSopenharmony_ci   *
481061847f8eSopenharmony_ci   * @enum { number }
481161847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
481261847f8eSopenharmony_ci   * @since 9
481361847f8eSopenharmony_ci   * @deprecated since 10
481461847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.connection/connection.BondState
481561847f8eSopenharmony_ci   */
481661847f8eSopenharmony_ci  enum BondState {
481761847f8eSopenharmony_ci    /**
481861847f8eSopenharmony_ci     * Indicate the bond state is invalid
481961847f8eSopenharmony_ci     *
482061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
482161847f8eSopenharmony_ci     * @since 9
482261847f8eSopenharmony_ci     * @deprecated since 10
482361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.BondState#BOND_STATE_INVALID
482461847f8eSopenharmony_ci     */
482561847f8eSopenharmony_ci    BOND_STATE_INVALID = 0,
482661847f8eSopenharmony_ci    /**
482761847f8eSopenharmony_ci     * Indicate the bond state is bonding
482861847f8eSopenharmony_ci     *
482961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
483061847f8eSopenharmony_ci     * @since 9
483161847f8eSopenharmony_ci     * @deprecated since 10
483261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.BondState#BOND_STATE_BONDING
483361847f8eSopenharmony_ci     */
483461847f8eSopenharmony_ci    BOND_STATE_BONDING = 1,
483561847f8eSopenharmony_ci    /**
483661847f8eSopenharmony_ci     * Indicate the bond state is bonded
483761847f8eSopenharmony_ci     *
483861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
483961847f8eSopenharmony_ci     * @since 9
484061847f8eSopenharmony_ci     * @deprecated since 10
484161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.connection/connection.BondState#BOND_STATE_BONDED
484261847f8eSopenharmony_ci     */
484361847f8eSopenharmony_ci    BOND_STATE_BONDED = 2
484461847f8eSopenharmony_ci  }
484561847f8eSopenharmony_ci
484661847f8eSopenharmony_ci  /**
484761847f8eSopenharmony_ci   * The enum of major class of a bluetooth device.
484861847f8eSopenharmony_ci   *
484961847f8eSopenharmony_ci   * @enum { number }
485061847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
485161847f8eSopenharmony_ci   * @since 9
485261847f8eSopenharmony_ci   * @deprecated since 10
485361847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.constant/constant.MajorClass
485461847f8eSopenharmony_ci   */
485561847f8eSopenharmony_ci  enum MajorClass {
485661847f8eSopenharmony_ci    /**
485761847f8eSopenharmony_ci     * Miscellaneous device.
485861847f8eSopenharmony_ci     *
485961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
486061847f8eSopenharmony_ci     * @since 9
486161847f8eSopenharmony_ci     * @deprecated since 10
486261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_MISC
486361847f8eSopenharmony_ci     */
486461847f8eSopenharmony_ci    MAJOR_MISC = 0x0000,
486561847f8eSopenharmony_ci    /**
486661847f8eSopenharmony_ci     * Computer.
486761847f8eSopenharmony_ci     *
486861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
486961847f8eSopenharmony_ci     * @since 9
487061847f8eSopenharmony_ci     * @deprecated since 10
487161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_COMPUTER
487261847f8eSopenharmony_ci     */
487361847f8eSopenharmony_ci    MAJOR_COMPUTER = 0x0100,
487461847f8eSopenharmony_ci    /**
487561847f8eSopenharmony_ci     * Mobile phone.
487661847f8eSopenharmony_ci     *
487761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
487861847f8eSopenharmony_ci     * @since 9
487961847f8eSopenharmony_ci     * @deprecated since 10
488061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_PHONE
488161847f8eSopenharmony_ci     */
488261847f8eSopenharmony_ci    MAJOR_PHONE = 0x0200,
488361847f8eSopenharmony_ci    /**
488461847f8eSopenharmony_ci     * Network device.
488561847f8eSopenharmony_ci     *
488661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
488761847f8eSopenharmony_ci     * @since 9
488861847f8eSopenharmony_ci     * @deprecated since 10
488961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_NETWORKING
489061847f8eSopenharmony_ci     */
489161847f8eSopenharmony_ci    MAJOR_NETWORKING = 0x0300,
489261847f8eSopenharmony_ci    /**
489361847f8eSopenharmony_ci     * Audio or video device.
489461847f8eSopenharmony_ci     *
489561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
489661847f8eSopenharmony_ci     * @since 9
489761847f8eSopenharmony_ci     * @deprecated since 10
489861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_AUDIO_VIDEO
489961847f8eSopenharmony_ci     */
490061847f8eSopenharmony_ci    MAJOR_AUDIO_VIDEO = 0x0400,
490161847f8eSopenharmony_ci    /**
490261847f8eSopenharmony_ci     * Peripheral device.
490361847f8eSopenharmony_ci     *
490461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
490561847f8eSopenharmony_ci     * @since 9
490661847f8eSopenharmony_ci     * @deprecated since 10
490761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_PERIPHERAL
490861847f8eSopenharmony_ci     */
490961847f8eSopenharmony_ci    MAJOR_PERIPHERAL = 0x0500,
491061847f8eSopenharmony_ci    /**
491161847f8eSopenharmony_ci     * Imaging device.
491261847f8eSopenharmony_ci     *
491361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
491461847f8eSopenharmony_ci     * @since 9
491561847f8eSopenharmony_ci     * @deprecated since 10
491661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_IMAGING
491761847f8eSopenharmony_ci     */
491861847f8eSopenharmony_ci    MAJOR_IMAGING = 0x0600,
491961847f8eSopenharmony_ci    /**
492061847f8eSopenharmony_ci     * Wearable device.
492161847f8eSopenharmony_ci     *
492261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
492361847f8eSopenharmony_ci     * @since 9
492461847f8eSopenharmony_ci     * @deprecated since 10
492561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_WEARABLE
492661847f8eSopenharmony_ci     */
492761847f8eSopenharmony_ci    MAJOR_WEARABLE = 0x0700,
492861847f8eSopenharmony_ci    /**
492961847f8eSopenharmony_ci     * Toy.
493061847f8eSopenharmony_ci     *
493161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
493261847f8eSopenharmony_ci     * @since 9
493361847f8eSopenharmony_ci     * @deprecated since 10
493461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_TOY
493561847f8eSopenharmony_ci     */
493661847f8eSopenharmony_ci    MAJOR_TOY = 0x0800,
493761847f8eSopenharmony_ci    /**
493861847f8eSopenharmony_ci     * Health device.
493961847f8eSopenharmony_ci     *
494061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
494161847f8eSopenharmony_ci     * @since 9
494261847f8eSopenharmony_ci     * @deprecated since 10
494361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_HEALTH
494461847f8eSopenharmony_ci     */
494561847f8eSopenharmony_ci    MAJOR_HEALTH = 0x0900,
494661847f8eSopenharmony_ci    /**
494761847f8eSopenharmony_ci     * Unclassified device.
494861847f8eSopenharmony_ci     *
494961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
495061847f8eSopenharmony_ci     * @since 9
495161847f8eSopenharmony_ci     * @deprecated since 10
495261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorClass#MAJOR_UNCATEGORIZED
495361847f8eSopenharmony_ci     */
495461847f8eSopenharmony_ci    MAJOR_UNCATEGORIZED = 0x1F00
495561847f8eSopenharmony_ci  }
495661847f8eSopenharmony_ci
495761847f8eSopenharmony_ci  /**
495861847f8eSopenharmony_ci   * The enum of major minor class of a bluetooth device.
495961847f8eSopenharmony_ci   *
496061847f8eSopenharmony_ci   * @enum { number }
496161847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
496261847f8eSopenharmony_ci   * @since 9
496361847f8eSopenharmony_ci   * @deprecated since 10
496461847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass
496561847f8eSopenharmony_ci   */
496661847f8eSopenharmony_ci  enum MajorMinorClass {
496761847f8eSopenharmony_ci    /**
496861847f8eSopenharmony_ci     * The Minor Device Class field
496961847f8eSopenharmony_ci     * Computer Major Class
497061847f8eSopenharmony_ci     *
497161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
497261847f8eSopenharmony_ci     * @since 9
497361847f8eSopenharmony_ci     * @deprecated since 10
497461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#COMPUTER_UNCATEGORIZED
497561847f8eSopenharmony_ci     */
497661847f8eSopenharmony_ci    COMPUTER_UNCATEGORIZED = 0x0100,
497761847f8eSopenharmony_ci    /**
497861847f8eSopenharmony_ci     * Desktop computer.
497961847f8eSopenharmony_ci     *
498061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
498161847f8eSopenharmony_ci     * @since 9
498261847f8eSopenharmony_ci     * @deprecated since 10
498361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#COMPUTER_DESKTOP
498461847f8eSopenharmony_ci     */
498561847f8eSopenharmony_ci    COMPUTER_DESKTOP = 0x0104,
498661847f8eSopenharmony_ci    /**
498761847f8eSopenharmony_ci     * Server.
498861847f8eSopenharmony_ci     *
498961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
499061847f8eSopenharmony_ci     * @since 9
499161847f8eSopenharmony_ci     * @deprecated since 10
499261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#COMPUTER_SERVER
499361847f8eSopenharmony_ci     */
499461847f8eSopenharmony_ci    COMPUTER_SERVER = 0x0108,
499561847f8eSopenharmony_ci    /**
499661847f8eSopenharmony_ci     * Laptop.
499761847f8eSopenharmony_ci     *
499861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
499961847f8eSopenharmony_ci     * @since 9
500061847f8eSopenharmony_ci     * @deprecated since 10
500161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#COMPUTER_LAPTOP
500261847f8eSopenharmony_ci     */
500361847f8eSopenharmony_ci    COMPUTER_LAPTOP = 0x010C,
500461847f8eSopenharmony_ci    /**
500561847f8eSopenharmony_ci     * Hand-held computer.
500661847f8eSopenharmony_ci     *
500761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
500861847f8eSopenharmony_ci     * @since 9
500961847f8eSopenharmony_ci     * @deprecated since 10
501061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#COMPUTER_HANDHELD_PC_PDA
501161847f8eSopenharmony_ci     */
501261847f8eSopenharmony_ci    COMPUTER_HANDHELD_PC_PDA = 0x0110,
501361847f8eSopenharmony_ci    /**
501461847f8eSopenharmony_ci     * Palmtop computer.
501561847f8eSopenharmony_ci     *
501661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
501761847f8eSopenharmony_ci     * @since 9
501861847f8eSopenharmony_ci     * @deprecated since 10
501961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#COMPUTER_PALM_SIZE_PC_PDA
502061847f8eSopenharmony_ci     */
502161847f8eSopenharmony_ci    COMPUTER_PALM_SIZE_PC_PDA = 0x0114,
502261847f8eSopenharmony_ci    /**
502361847f8eSopenharmony_ci     * Wearable computer.
502461847f8eSopenharmony_ci     *
502561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
502661847f8eSopenharmony_ci     * @since 9
502761847f8eSopenharmony_ci     * @deprecated since 10
502861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#COMPUTER_WEARABLE
502961847f8eSopenharmony_ci     */
503061847f8eSopenharmony_ci    COMPUTER_WEARABLE = 0x0118,
503161847f8eSopenharmony_ci    /**
503261847f8eSopenharmony_ci     * Tablet.
503361847f8eSopenharmony_ci     *
503461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
503561847f8eSopenharmony_ci     * @since 9
503661847f8eSopenharmony_ci     * @deprecated since 10
503761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#COMPUTER_TABLET
503861847f8eSopenharmony_ci     */
503961847f8eSopenharmony_ci    COMPUTER_TABLET = 0x011C,
504061847f8eSopenharmony_ci
504161847f8eSopenharmony_ci    /**
504261847f8eSopenharmony_ci     * Phone Major Class
504361847f8eSopenharmony_ci     *
504461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
504561847f8eSopenharmony_ci     * @since 9
504661847f8eSopenharmony_ci     * @deprecated since 10
504761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PHONE_UNCATEGORIZED
504861847f8eSopenharmony_ci     */
504961847f8eSopenharmony_ci    PHONE_UNCATEGORIZED = 0x0200,
505061847f8eSopenharmony_ci    /**
505161847f8eSopenharmony_ci     * Portable phone.
505261847f8eSopenharmony_ci     *
505361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
505461847f8eSopenharmony_ci     * @since 9
505561847f8eSopenharmony_ci     * @deprecated since 10
505661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PHONE_CELLULAR
505761847f8eSopenharmony_ci     */
505861847f8eSopenharmony_ci    PHONE_CELLULAR = 0x0204,
505961847f8eSopenharmony_ci    /**
506061847f8eSopenharmony_ci     * Cordless phone.
506161847f8eSopenharmony_ci     *
506261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
506361847f8eSopenharmony_ci     * @since 9
506461847f8eSopenharmony_ci     * @deprecated since 10
506561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PHONE_CORDLESS
506661847f8eSopenharmony_ci     */
506761847f8eSopenharmony_ci    PHONE_CORDLESS = 0x0208,
506861847f8eSopenharmony_ci    /**
506961847f8eSopenharmony_ci     * Smartphone.
507061847f8eSopenharmony_ci     *
507161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
507261847f8eSopenharmony_ci     * @since 9
507361847f8eSopenharmony_ci     * @deprecated since 10
507461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PHONE_SMART
507561847f8eSopenharmony_ci     */
507661847f8eSopenharmony_ci    PHONE_SMART = 0x020C,
507761847f8eSopenharmony_ci    /**
507861847f8eSopenharmony_ci     * Modem or gateway phone.
507961847f8eSopenharmony_ci     *
508061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
508161847f8eSopenharmony_ci     * @since 9
508261847f8eSopenharmony_ci     * @deprecated since 10
508361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PHONE_MODEM_OR_GATEWAY
508461847f8eSopenharmony_ci     */
508561847f8eSopenharmony_ci    PHONE_MODEM_OR_GATEWAY = 0x0210,
508661847f8eSopenharmony_ci    /**
508761847f8eSopenharmony_ci     * ISDN phone.
508861847f8eSopenharmony_ci     *
508961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
509061847f8eSopenharmony_ci     * @since 9
509161847f8eSopenharmony_ci     * @deprecated since 10
509261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PHONE_ISDN
509361847f8eSopenharmony_ci     */
509461847f8eSopenharmony_ci    PHONE_ISDN = 0x0214,
509561847f8eSopenharmony_ci
509661847f8eSopenharmony_ci    /**
509761847f8eSopenharmony_ci     * LAN/Network Access Point Major Class
509861847f8eSopenharmony_ci     *
509961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
510061847f8eSopenharmony_ci     * @since 9
510161847f8eSopenharmony_ci     * @deprecated since 10
510261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#NETWORK_FULLY_AVAILABLE
510361847f8eSopenharmony_ci     */
510461847f8eSopenharmony_ci    NETWORK_FULLY_AVAILABLE = 0x0300,
510561847f8eSopenharmony_ci    /**
510661847f8eSopenharmony_ci     * Device used on network 1 to 17.
510761847f8eSopenharmony_ci     *
510861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
510961847f8eSopenharmony_ci     * @since 9
511061847f8eSopenharmony_ci     * @deprecated since 10
511161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#NETWORK_1_TO_17_UTILIZED
511261847f8eSopenharmony_ci     */
511361847f8eSopenharmony_ci    NETWORK_1_TO_17_UTILIZED = 0x0320,
511461847f8eSopenharmony_ci    /**
511561847f8eSopenharmony_ci     * Device used on network 17 to 33.
511661847f8eSopenharmony_ci     *
511761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
511861847f8eSopenharmony_ci     * @since 9
511961847f8eSopenharmony_ci     * @deprecated since 10
512061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#NETWORK_17_TO_33_UTILIZED
512161847f8eSopenharmony_ci     */
512261847f8eSopenharmony_ci    NETWORK_17_TO_33_UTILIZED = 0x0340,
512361847f8eSopenharmony_ci    /**
512461847f8eSopenharmony_ci     * Device used on network 33 to 50.
512561847f8eSopenharmony_ci     *
512661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
512761847f8eSopenharmony_ci     * @since 9
512861847f8eSopenharmony_ci     * @deprecated since 10
512961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#NETWORK_33_TO_50_UTILIZED
513061847f8eSopenharmony_ci     */
513161847f8eSopenharmony_ci    NETWORK_33_TO_50_UTILIZED = 0x0360,
513261847f8eSopenharmony_ci    /**
513361847f8eSopenharmony_ci     * Device used on network 60 to 67.
513461847f8eSopenharmony_ci     *
513561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
513661847f8eSopenharmony_ci     * @since 9
513761847f8eSopenharmony_ci     * @deprecated since 10
513861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#NETWORK_60_TO_67_UTILIZED
513961847f8eSopenharmony_ci     */
514061847f8eSopenharmony_ci    NETWORK_60_TO_67_UTILIZED = 0x0380,
514161847f8eSopenharmony_ci    /**
514261847f8eSopenharmony_ci     * Device used on network 67 to 83.
514361847f8eSopenharmony_ci     *
514461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
514561847f8eSopenharmony_ci     * @since 9
514661847f8eSopenharmony_ci     * @deprecated since 10
514761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#NETWORK_67_TO_83_UTILIZED
514861847f8eSopenharmony_ci     */
514961847f8eSopenharmony_ci    NETWORK_67_TO_83_UTILIZED = 0x03A0,
515061847f8eSopenharmony_ci    /**
515161847f8eSopenharmony_ci     * Device used on network 83 to 99.
515261847f8eSopenharmony_ci     *
515361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
515461847f8eSopenharmony_ci     * @since 9
515561847f8eSopenharmony_ci     * @deprecated since 10
515661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#NETWORK_83_TO_99_UTILIZED
515761847f8eSopenharmony_ci     */
515861847f8eSopenharmony_ci    NETWORK_83_TO_99_UTILIZED = 0x03C0,
515961847f8eSopenharmony_ci    /**
516061847f8eSopenharmony_ci     * Device without network service.
516161847f8eSopenharmony_ci     *
516261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
516361847f8eSopenharmony_ci     * @since 9
516461847f8eSopenharmony_ci     * @deprecated since 10
516561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#NETWORK_NO_SERVICE
516661847f8eSopenharmony_ci     */
516761847f8eSopenharmony_ci    NETWORK_NO_SERVICE = 0x03E0,
516861847f8eSopenharmony_ci
516961847f8eSopenharmony_ci    /**
517061847f8eSopenharmony_ci     * Unclassified audio or video device.
517161847f8eSopenharmony_ci     *
517261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
517361847f8eSopenharmony_ci     * @since 9
517461847f8eSopenharmony_ci     * @deprecated since 10
517561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_UNCATEGORIZED
517661847f8eSopenharmony_ci     */
517761847f8eSopenharmony_ci    AUDIO_VIDEO_UNCATEGORIZED = 0x0400,
517861847f8eSopenharmony_ci    /**
517961847f8eSopenharmony_ci     * Wearable audio or video headset.
518061847f8eSopenharmony_ci     *
518161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
518261847f8eSopenharmony_ci     * @since 9
518361847f8eSopenharmony_ci     * @deprecated since 10
518461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_WEARABLE_HEADSET
518561847f8eSopenharmony_ci     */
518661847f8eSopenharmony_ci    AUDIO_VIDEO_WEARABLE_HEADSET = 0x0404,
518761847f8eSopenharmony_ci    /**
518861847f8eSopenharmony_ci     * Hands-free audio or video device.
518961847f8eSopenharmony_ci     *
519061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
519161847f8eSopenharmony_ci     * @since 9
519261847f8eSopenharmony_ci     * @deprecated since 10
519361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_HANDSFREE
519461847f8eSopenharmony_ci     */
519561847f8eSopenharmony_ci    AUDIO_VIDEO_HANDSFREE = 0x0408,
519661847f8eSopenharmony_ci    /**
519761847f8eSopenharmony_ci     * Audio or video microphone.
519861847f8eSopenharmony_ci     *
519961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
520061847f8eSopenharmony_ci     * @since 9
520161847f8eSopenharmony_ci     * @deprecated since 10
520261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_MICROPHONE
520361847f8eSopenharmony_ci     */
520461847f8eSopenharmony_ci    AUDIO_VIDEO_MICROPHONE = 0x0410,
520561847f8eSopenharmony_ci    /**
520661847f8eSopenharmony_ci     * Audio or video loudspeaker.
520761847f8eSopenharmony_ci     *
520861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
520961847f8eSopenharmony_ci     * @since 9
521061847f8eSopenharmony_ci     * @deprecated since 10
521161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_LOUDSPEAKER
521261847f8eSopenharmony_ci     */
521361847f8eSopenharmony_ci    AUDIO_VIDEO_LOUDSPEAKER = 0x0414,
521461847f8eSopenharmony_ci    /**
521561847f8eSopenharmony_ci     * Audio or video headphones.
521661847f8eSopenharmony_ci     *
521761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
521861847f8eSopenharmony_ci     * @since 9
521961847f8eSopenharmony_ci     * @deprecated since 10
522061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_HEADPHONES
522161847f8eSopenharmony_ci     */
522261847f8eSopenharmony_ci    AUDIO_VIDEO_HEADPHONES = 0x0418,
522361847f8eSopenharmony_ci    /**
522461847f8eSopenharmony_ci     * Portable audio or video device.
522561847f8eSopenharmony_ci     *
522661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
522761847f8eSopenharmony_ci     * @since 9
522861847f8eSopenharmony_ci     * @deprecated since 10
522961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_PORTABLE_AUDIO
523061847f8eSopenharmony_ci     */
523161847f8eSopenharmony_ci    AUDIO_VIDEO_PORTABLE_AUDIO = 0x041C,
523261847f8eSopenharmony_ci    /**
523361847f8eSopenharmony_ci     * In-vehicle audio or video device.
523461847f8eSopenharmony_ci     *
523561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
523661847f8eSopenharmony_ci     * @since 9
523761847f8eSopenharmony_ci     * @deprecated since 10
523861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_CAR_AUDIO
523961847f8eSopenharmony_ci     */
524061847f8eSopenharmony_ci    AUDIO_VIDEO_CAR_AUDIO = 0x0420,
524161847f8eSopenharmony_ci    /**
524261847f8eSopenharmony_ci     * Audio or video STB device.
524361847f8eSopenharmony_ci     *
524461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
524561847f8eSopenharmony_ci     * @since 9
524661847f8eSopenharmony_ci     * @deprecated since 10
524761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_SET_TOP_BOX
524861847f8eSopenharmony_ci     */
524961847f8eSopenharmony_ci    AUDIO_VIDEO_SET_TOP_BOX = 0x0424,
525061847f8eSopenharmony_ci    /**
525161847f8eSopenharmony_ci     * High-fidelity speaker device.
525261847f8eSopenharmony_ci     *
525361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
525461847f8eSopenharmony_ci     * @since 9
525561847f8eSopenharmony_ci     * @deprecated since 10
525661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_HIFI_AUDIO
525761847f8eSopenharmony_ci     */
525861847f8eSopenharmony_ci    AUDIO_VIDEO_HIFI_AUDIO = 0x0428,
525961847f8eSopenharmony_ci    /**
526061847f8eSopenharmony_ci     * Video cassette recording (VCR) device.
526161847f8eSopenharmony_ci     *
526261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
526361847f8eSopenharmony_ci     * @since 9
526461847f8eSopenharmony_ci     * @deprecated since 10
526561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_VCR
526661847f8eSopenharmony_ci     */
526761847f8eSopenharmony_ci    AUDIO_VIDEO_VCR = 0x042C,
526861847f8eSopenharmony_ci    /**
526961847f8eSopenharmony_ci     * Camera.
527061847f8eSopenharmony_ci     *
527161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
527261847f8eSopenharmony_ci     * @since 9
527361847f8eSopenharmony_ci     * @deprecated since 10
527461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_VIDEO_CAMERA
527561847f8eSopenharmony_ci     */
527661847f8eSopenharmony_ci    AUDIO_VIDEO_VIDEO_CAMERA = 0x0430,
527761847f8eSopenharmony_ci    /**
527861847f8eSopenharmony_ci     * Camcorder.
527961847f8eSopenharmony_ci     *
528061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
528161847f8eSopenharmony_ci     * @since 9
528261847f8eSopenharmony_ci     * @deprecated since 10
528361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_CAMCORDER
528461847f8eSopenharmony_ci     */
528561847f8eSopenharmony_ci    AUDIO_VIDEO_CAMCORDER = 0x0434,
528661847f8eSopenharmony_ci    /**
528761847f8eSopenharmony_ci     * Audio or video monitor.
528861847f8eSopenharmony_ci     *
528961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
529061847f8eSopenharmony_ci     * @since 9
529161847f8eSopenharmony_ci     * @deprecated since 10
529261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_VIDEO_MONITOR
529361847f8eSopenharmony_ci     */
529461847f8eSopenharmony_ci    AUDIO_VIDEO_VIDEO_MONITOR = 0x0438,
529561847f8eSopenharmony_ci    /**
529661847f8eSopenharmony_ci     * Video display or loudspeaker.
529761847f8eSopenharmony_ci     *
529861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
529961847f8eSopenharmony_ci     * @since 9
530061847f8eSopenharmony_ci     * @deprecated since 10
530161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER
530261847f8eSopenharmony_ci     */
530361847f8eSopenharmony_ci    AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER = 0x043C,
530461847f8eSopenharmony_ci    /**
530561847f8eSopenharmony_ci     * Video conferencing device.
530661847f8eSopenharmony_ci     *
530761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
530861847f8eSopenharmony_ci     * @since 9
530961847f8eSopenharmony_ci     * @deprecated since 10
531061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_VIDEO_CONFERENCING
531161847f8eSopenharmony_ci     */
531261847f8eSopenharmony_ci    AUDIO_VIDEO_VIDEO_CONFERENCING = 0x0440,
531361847f8eSopenharmony_ci    /**
531461847f8eSopenharmony_ci     * Audio or video gaming toy.
531561847f8eSopenharmony_ci     *
531661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
531761847f8eSopenharmony_ci     * @since 9
531861847f8eSopenharmony_ci     * @deprecated since 10
531961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#AUDIO_VIDEO_VIDEO_GAMING_TOY
532061847f8eSopenharmony_ci     */
532161847f8eSopenharmony_ci    AUDIO_VIDEO_VIDEO_GAMING_TOY = 0x0448,
532261847f8eSopenharmony_ci
532361847f8eSopenharmony_ci    /**
532461847f8eSopenharmony_ci     * Peripheral Major Class
532561847f8eSopenharmony_ci     *
532661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
532761847f8eSopenharmony_ci     * @since 9
532861847f8eSopenharmony_ci     * @deprecated since 10
532961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_NON_KEYBOARD_NON_POINTING
533061847f8eSopenharmony_ci     */
533161847f8eSopenharmony_ci    PERIPHERAL_NON_KEYBOARD_NON_POINTING = 0x0500,
533261847f8eSopenharmony_ci    /**
533361847f8eSopenharmony_ci     * Keyboard device.
533461847f8eSopenharmony_ci     *
533561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
533661847f8eSopenharmony_ci     * @since 9
533761847f8eSopenharmony_ci     * @deprecated since 10
533861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_KEYBOARD
533961847f8eSopenharmony_ci     */
534061847f8eSopenharmony_ci    PERIPHERAL_KEYBOARD = 0x0540,
534161847f8eSopenharmony_ci    /**
534261847f8eSopenharmony_ci     * Pointing peripheral device.
534361847f8eSopenharmony_ci     *
534461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
534561847f8eSopenharmony_ci     * @since 9
534661847f8eSopenharmony_ci     * @deprecated since 10
534761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_POINTING_DEVICE
534861847f8eSopenharmony_ci     */
534961847f8eSopenharmony_ci    PERIPHERAL_POINTING_DEVICE = 0x0580,
535061847f8eSopenharmony_ci    /**
535161847f8eSopenharmony_ci     * Keyboard pointing device.
535261847f8eSopenharmony_ci     *
535361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
535461847f8eSopenharmony_ci     * @since 9
535561847f8eSopenharmony_ci     * @deprecated since 10
535661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_KEYBOARD_POINTING
535761847f8eSopenharmony_ci     */
535861847f8eSopenharmony_ci    PERIPHERAL_KEYBOARD_POINTING = 0x05C0,
535961847f8eSopenharmony_ci    /**
536061847f8eSopenharmony_ci     * Unclassified peripheral device.
536161847f8eSopenharmony_ci     *
536261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
536361847f8eSopenharmony_ci     * @since 9
536461847f8eSopenharmony_ci     * @deprecated since 10
536561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_UNCATEGORIZED
536661847f8eSopenharmony_ci     */
536761847f8eSopenharmony_ci    PERIPHERAL_UNCATEGORIZED = 0x0500,
536861847f8eSopenharmony_ci    /**
536961847f8eSopenharmony_ci     * Peripheral joystick.
537061847f8eSopenharmony_ci     *
537161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
537261847f8eSopenharmony_ci     * @since 9
537361847f8eSopenharmony_ci     * @deprecated since 10
537461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_JOYSTICK
537561847f8eSopenharmony_ci     */
537661847f8eSopenharmony_ci    PERIPHERAL_JOYSTICK = 0x0504,
537761847f8eSopenharmony_ci    /**
537861847f8eSopenharmony_ci     * Peripheral game pad.
537961847f8eSopenharmony_ci     *
538061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
538161847f8eSopenharmony_ci     * @since 9
538261847f8eSopenharmony_ci     * @deprecated since 10
538361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_GAMEPAD
538461847f8eSopenharmony_ci     */
538561847f8eSopenharmony_ci    PERIPHERAL_GAMEPAD = 0x0508,
538661847f8eSopenharmony_ci    /**
538761847f8eSopenharmony_ci     * Peripheral remote control device.
538861847f8eSopenharmony_ci     *
538961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
539061847f8eSopenharmony_ci     * @since 9
539161847f8eSopenharmony_ci     * @deprecated since 10
539261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_REMOTE_CONTROL
539361847f8eSopenharmony_ci     */
539461847f8eSopenharmony_ci    PERIPHERAL_REMOTE_CONTROL = 0x05C0,
539561847f8eSopenharmony_ci    /**
539661847f8eSopenharmony_ci     * Peripheral sensing device.
539761847f8eSopenharmony_ci     *
539861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
539961847f8eSopenharmony_ci     * @since 9
540061847f8eSopenharmony_ci     * @deprecated since 10
540161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_SENSING_DEVICE
540261847f8eSopenharmony_ci     */
540361847f8eSopenharmony_ci    PERIPHERAL_SENSING_DEVICE = 0x0510,
540461847f8eSopenharmony_ci    /**
540561847f8eSopenharmony_ci     * Peripheral digitizer tablet.
540661847f8eSopenharmony_ci     *
540761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
540861847f8eSopenharmony_ci     * @since 9
540961847f8eSopenharmony_ci     * @deprecated since 10
541061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_DIGITIZER_TABLET
541161847f8eSopenharmony_ci     */
541261847f8eSopenharmony_ci    PERIPHERAL_DIGITIZER_TABLET = 0x0514,
541361847f8eSopenharmony_ci    /**
541461847f8eSopenharmony_ci     * Peripheral card reader.
541561847f8eSopenharmony_ci     *
541661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
541761847f8eSopenharmony_ci     * @since 9
541861847f8eSopenharmony_ci     * @deprecated since 10
541961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_CARD_READER
542061847f8eSopenharmony_ci     */
542161847f8eSopenharmony_ci    PERIPHERAL_CARD_READER = 0x0518,
542261847f8eSopenharmony_ci    /**
542361847f8eSopenharmony_ci     * Peripheral digital pen.
542461847f8eSopenharmony_ci     *
542561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
542661847f8eSopenharmony_ci     * @since 9
542761847f8eSopenharmony_ci     * @deprecated since 10
542861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_DIGITAL_PEN
542961847f8eSopenharmony_ci     */
543061847f8eSopenharmony_ci    PERIPHERAL_DIGITAL_PEN = 0x051C,
543161847f8eSopenharmony_ci    /**
543261847f8eSopenharmony_ci     * Peripheral RFID scanner.
543361847f8eSopenharmony_ci     *
543461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
543561847f8eSopenharmony_ci     * @since 9
543661847f8eSopenharmony_ci     * @deprecated since 10
543761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_SCANNER_RFID
543861847f8eSopenharmony_ci     */
543961847f8eSopenharmony_ci    PERIPHERAL_SCANNER_RFID = 0x0520,
544061847f8eSopenharmony_ci    /**
544161847f8eSopenharmony_ci     * Gesture input device.
544261847f8eSopenharmony_ci     *
544361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
544461847f8eSopenharmony_ci     * @since 9
544561847f8eSopenharmony_ci     * @deprecated since 10
544661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#PERIPHERAL_GESTURAL_INPUT
544761847f8eSopenharmony_ci     */
544861847f8eSopenharmony_ci    PERIPHERAL_GESTURAL_INPUT = 0x0522,
544961847f8eSopenharmony_ci
545061847f8eSopenharmony_ci    /**
545161847f8eSopenharmony_ci     * Imaging Major Class
545261847f8eSopenharmony_ci     *
545361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
545461847f8eSopenharmony_ci     * @since 9
545561847f8eSopenharmony_ci     * @deprecated since 10
545661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#IMAGING_UNCATEGORIZED
545761847f8eSopenharmony_ci     */
545861847f8eSopenharmony_ci    IMAGING_UNCATEGORIZED = 0x0600,
545961847f8eSopenharmony_ci    /**
546061847f8eSopenharmony_ci     * Imaging display device.
546161847f8eSopenharmony_ci     *
546261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
546361847f8eSopenharmony_ci     * @since 9
546461847f8eSopenharmony_ci     * @deprecated since 10
546561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#IMAGING_DISPLAY
546661847f8eSopenharmony_ci     */
546761847f8eSopenharmony_ci    IMAGING_DISPLAY = 0x0610,
546861847f8eSopenharmony_ci    /**
546961847f8eSopenharmony_ci     * Imaging camera device.
547061847f8eSopenharmony_ci     *
547161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
547261847f8eSopenharmony_ci     * @since 9
547361847f8eSopenharmony_ci     * @deprecated since 10
547461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#IMAGING_CAMERA
547561847f8eSopenharmony_ci     */
547661847f8eSopenharmony_ci    IMAGING_CAMERA = 0x0620,
547761847f8eSopenharmony_ci    /**
547861847f8eSopenharmony_ci     * Imaging scanner.
547961847f8eSopenharmony_ci     *
548061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
548161847f8eSopenharmony_ci     * @since 9
548261847f8eSopenharmony_ci     * @deprecated since 10
548361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#IMAGING_SCANNER
548461847f8eSopenharmony_ci     */
548561847f8eSopenharmony_ci    IMAGING_SCANNER = 0x0640,
548661847f8eSopenharmony_ci    /**
548761847f8eSopenharmony_ci     * Imaging printer.
548861847f8eSopenharmony_ci     *
548961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
549061847f8eSopenharmony_ci     * @since 9
549161847f8eSopenharmony_ci     * @deprecated since 10
549261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#IMAGING_PRINTER
549361847f8eSopenharmony_ci     */
549461847f8eSopenharmony_ci    IMAGING_PRINTER = 0x0680,
549561847f8eSopenharmony_ci
549661847f8eSopenharmony_ci    /**
549761847f8eSopenharmony_ci     * Wearable Major Class
549861847f8eSopenharmony_ci     *
549961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
550061847f8eSopenharmony_ci     * @since 9
550161847f8eSopenharmony_ci     * @deprecated since 10
550261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#WEARABLE_UNCATEGORIZED
550361847f8eSopenharmony_ci     */
550461847f8eSopenharmony_ci    WEARABLE_UNCATEGORIZED = 0x0700,
550561847f8eSopenharmony_ci    /**
550661847f8eSopenharmony_ci     * Smart watch.
550761847f8eSopenharmony_ci     *
550861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
550961847f8eSopenharmony_ci     * @since 9
551061847f8eSopenharmony_ci     * @deprecated since 10
551161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#WEARABLE_WRIST_WATCH
551261847f8eSopenharmony_ci     */
551361847f8eSopenharmony_ci    WEARABLE_WRIST_WATCH = 0x0704,
551461847f8eSopenharmony_ci    /**
551561847f8eSopenharmony_ci     * Wearable pager.
551661847f8eSopenharmony_ci     *
551761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
551861847f8eSopenharmony_ci     * @since 9
551961847f8eSopenharmony_ci     * @deprecated since 10
552061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#WEARABLE_PAGER
552161847f8eSopenharmony_ci     */
552261847f8eSopenharmony_ci    WEARABLE_PAGER = 0x0708,
552361847f8eSopenharmony_ci    /**
552461847f8eSopenharmony_ci     * Smart jacket.
552561847f8eSopenharmony_ci     *
552661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
552761847f8eSopenharmony_ci     * @since 9
552861847f8eSopenharmony_ci     * @deprecated since 10
552961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#WEARABLE_JACKET
553061847f8eSopenharmony_ci     */
553161847f8eSopenharmony_ci    WEARABLE_JACKET = 0x070C,
553261847f8eSopenharmony_ci    /**
553361847f8eSopenharmony_ci     * Wearable helmet.
553461847f8eSopenharmony_ci     *
553561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
553661847f8eSopenharmony_ci     * @since 9
553761847f8eSopenharmony_ci     * @deprecated since 10
553861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#WEARABLE_HELMET
553961847f8eSopenharmony_ci     */
554061847f8eSopenharmony_ci    WEARABLE_HELMET = 0x0710,
554161847f8eSopenharmony_ci    /**
554261847f8eSopenharmony_ci     * Wearable glasses.
554361847f8eSopenharmony_ci     *
554461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
554561847f8eSopenharmony_ci     * @since 9
554661847f8eSopenharmony_ci     * @deprecated since 10
554761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#WEARABLE_GLASSES
554861847f8eSopenharmony_ci     */
554961847f8eSopenharmony_ci    WEARABLE_GLASSES = 0x0714,
555061847f8eSopenharmony_ci
555161847f8eSopenharmony_ci    /**
555261847f8eSopenharmony_ci     * Minor Device Class field - Toy Major Class
555361847f8eSopenharmony_ci     *
555461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
555561847f8eSopenharmony_ci     * @since 9
555661847f8eSopenharmony_ci     * @deprecated since 10
555761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#TOY_UNCATEGORIZED
555861847f8eSopenharmony_ci     */
555961847f8eSopenharmony_ci    TOY_UNCATEGORIZED = 0x0800,
556061847f8eSopenharmony_ci    /**
556161847f8eSopenharmony_ci     * Toy robot.
556261847f8eSopenharmony_ci     *
556361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
556461847f8eSopenharmony_ci     * @since 9
556561847f8eSopenharmony_ci     * @deprecated since 10
556661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#TOY_ROBOT
556761847f8eSopenharmony_ci     */
556861847f8eSopenharmony_ci    TOY_ROBOT = 0x0804,
556961847f8eSopenharmony_ci    /**
557061847f8eSopenharmony_ci     * Toy vehicle.
557161847f8eSopenharmony_ci     *
557261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
557361847f8eSopenharmony_ci     * @since 9
557461847f8eSopenharmony_ci     * @deprecated since 10
557561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#TOY_VEHICLE
557661847f8eSopenharmony_ci     */
557761847f8eSopenharmony_ci    TOY_VEHICLE = 0x0808,
557861847f8eSopenharmony_ci    /**
557961847f8eSopenharmony_ci     * Humanoid toy doll.
558061847f8eSopenharmony_ci     *
558161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
558261847f8eSopenharmony_ci     * @since 9
558361847f8eSopenharmony_ci     * @deprecated since 10
558461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#TOY_DOLL_ACTION_FIGURE
558561847f8eSopenharmony_ci     */
558661847f8eSopenharmony_ci    TOY_DOLL_ACTION_FIGURE = 0x080C,
558761847f8eSopenharmony_ci    /**
558861847f8eSopenharmony_ci     * Toy controller.
558961847f8eSopenharmony_ci     *
559061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
559161847f8eSopenharmony_ci     * @since 9
559261847f8eSopenharmony_ci     * @deprecated since 10
559361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#TOY_CONTROLLER
559461847f8eSopenharmony_ci     */
559561847f8eSopenharmony_ci    TOY_CONTROLLER = 0x0810,
559661847f8eSopenharmony_ci    /**
559761847f8eSopenharmony_ci     * Toy gaming device.
559861847f8eSopenharmony_ci     *
559961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
560061847f8eSopenharmony_ci     * @since 9
560161847f8eSopenharmony_ci     * @deprecated since 10
560261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#TOY_GAME
560361847f8eSopenharmony_ci     */
560461847f8eSopenharmony_ci    TOY_GAME = 0x0814,
560561847f8eSopenharmony_ci
560661847f8eSopenharmony_ci    /**
560761847f8eSopenharmony_ci     * Minor Device Class field - Health
560861847f8eSopenharmony_ci     *
560961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
561061847f8eSopenharmony_ci     * @since 9
561161847f8eSopenharmony_ci     * @deprecated since 10
561261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_UNCATEGORIZED
561361847f8eSopenharmony_ci     */
561461847f8eSopenharmony_ci    HEALTH_UNCATEGORIZED = 0x0900,
561561847f8eSopenharmony_ci    /**
561661847f8eSopenharmony_ci     * Blood pressure device.
561761847f8eSopenharmony_ci     *
561861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
561961847f8eSopenharmony_ci     * @since 9
562061847f8eSopenharmony_ci     * @deprecated since 10
562161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_BLOOD_PRESSURE
562261847f8eSopenharmony_ci     */
562361847f8eSopenharmony_ci    HEALTH_BLOOD_PRESSURE = 0x0904,
562461847f8eSopenharmony_ci    /**
562561847f8eSopenharmony_ci     * Thermometer.
562661847f8eSopenharmony_ci     *
562761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
562861847f8eSopenharmony_ci     * @since 9
562961847f8eSopenharmony_ci     * @deprecated since 10
563061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_THERMOMETER
563161847f8eSopenharmony_ci     */
563261847f8eSopenharmony_ci    HEALTH_THERMOMETER = 0x0908,
563361847f8eSopenharmony_ci    /**
563461847f8eSopenharmony_ci     * Body scale.
563561847f8eSopenharmony_ci     *
563661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
563761847f8eSopenharmony_ci     * @since 9
563861847f8eSopenharmony_ci     * @deprecated since 10
563961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_WEIGHING
564061847f8eSopenharmony_ci     */
564161847f8eSopenharmony_ci    HEALTH_WEIGHING = 0x090C,
564261847f8eSopenharmony_ci    /**
564361847f8eSopenharmony_ci     * Blood glucose monitor.
564461847f8eSopenharmony_ci     *
564561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
564661847f8eSopenharmony_ci     * @since 9
564761847f8eSopenharmony_ci     * @deprecated since 10
564861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_GLUCOSE
564961847f8eSopenharmony_ci     */
565061847f8eSopenharmony_ci    HEALTH_GLUCOSE = 0x0910,
565161847f8eSopenharmony_ci    /**
565261847f8eSopenharmony_ci     * Pulse oximeter.
565361847f8eSopenharmony_ci     *
565461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
565561847f8eSopenharmony_ci     * @since 9
565661847f8eSopenharmony_ci     * @deprecated since 10
565761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_PULSE_OXIMETER
565861847f8eSopenharmony_ci     */
565961847f8eSopenharmony_ci    HEALTH_PULSE_OXIMETER = 0x0914,
566061847f8eSopenharmony_ci    /**
566161847f8eSopenharmony_ci     * Heart rate monitor.
566261847f8eSopenharmony_ci     *
566361847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
566461847f8eSopenharmony_ci     * @since 9
566561847f8eSopenharmony_ci     * @deprecated since 10
566661847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_PULSE_RATE
566761847f8eSopenharmony_ci     */
566861847f8eSopenharmony_ci    HEALTH_PULSE_RATE = 0x0918,
566961847f8eSopenharmony_ci    /**
567061847f8eSopenharmony_ci     * Health data display.
567161847f8eSopenharmony_ci     *
567261847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
567361847f8eSopenharmony_ci     * @since 9
567461847f8eSopenharmony_ci     * @deprecated since 10
567561847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_DATA_DISPLAY
567661847f8eSopenharmony_ci     */
567761847f8eSopenharmony_ci    HEALTH_DATA_DISPLAY = 0x091C,
567861847f8eSopenharmony_ci    /**
567961847f8eSopenharmony_ci     * Step counter.
568061847f8eSopenharmony_ci     *
568161847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
568261847f8eSopenharmony_ci     * @since 9
568361847f8eSopenharmony_ci     * @deprecated since 10
568461847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_STEP_COUNTER
568561847f8eSopenharmony_ci     */
568661847f8eSopenharmony_ci    HEALTH_STEP_COUNTER = 0x0920,
568761847f8eSopenharmony_ci    /**
568861847f8eSopenharmony_ci     * Body composition analyzer.
568961847f8eSopenharmony_ci     *
569061847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
569161847f8eSopenharmony_ci     * @since 9
569261847f8eSopenharmony_ci     * @deprecated since 10
569361847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_BODY_COMPOSITION_ANALYZER
569461847f8eSopenharmony_ci     */
569561847f8eSopenharmony_ci    HEALTH_BODY_COMPOSITION_ANALYZER = 0x0924,
569661847f8eSopenharmony_ci    /**
569761847f8eSopenharmony_ci     * Hygrometer.
569861847f8eSopenharmony_ci     *
569961847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
570061847f8eSopenharmony_ci     * @since 9
570161847f8eSopenharmony_ci     * @deprecated since 10
570261847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_PEAK_FLOW_MONITOR
570361847f8eSopenharmony_ci     */
570461847f8eSopenharmony_ci    HEALTH_PEAK_FLOW_MONITOR = 0x0928,
570561847f8eSopenharmony_ci    /**
570661847f8eSopenharmony_ci     * Medication monitor.
570761847f8eSopenharmony_ci     *
570861847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
570961847f8eSopenharmony_ci     * @since 9
571061847f8eSopenharmony_ci     * @deprecated since 10
571161847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_MEDICATION_MONITOR
571261847f8eSopenharmony_ci     */
571361847f8eSopenharmony_ci    HEALTH_MEDICATION_MONITOR = 0x092C,
571461847f8eSopenharmony_ci    /**
571561847f8eSopenharmony_ci     * Prosthetic knee.
571661847f8eSopenharmony_ci     *
571761847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
571861847f8eSopenharmony_ci     * @since 9
571961847f8eSopenharmony_ci     * @deprecated since 10
572061847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_KNEE_PROSTHESIS
572161847f8eSopenharmony_ci     */
572261847f8eSopenharmony_ci    HEALTH_KNEE_PROSTHESIS = 0x0930,
572361847f8eSopenharmony_ci    /**
572461847f8eSopenharmony_ci     * Prosthetic ankle.
572561847f8eSopenharmony_ci     *
572661847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
572761847f8eSopenharmony_ci     * @since 9
572861847f8eSopenharmony_ci     * @deprecated since 10
572961847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_ANKLE_PROSTHESIS
573061847f8eSopenharmony_ci     */
573161847f8eSopenharmony_ci    HEALTH_ANKLE_PROSTHESIS = 0x0934,
573261847f8eSopenharmony_ci    /**
573361847f8eSopenharmony_ci     * Generic health management device.
573461847f8eSopenharmony_ci     *
573561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
573661847f8eSopenharmony_ci     * @since 9
573761847f8eSopenharmony_ci     * @deprecated since 10
573861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_GENERIC_HEALTH_MANAGER
573961847f8eSopenharmony_ci     */
574061847f8eSopenharmony_ci    HEALTH_GENERIC_HEALTH_MANAGER = 0x0938,
574161847f8eSopenharmony_ci    /**
574261847f8eSopenharmony_ci     * Personal mobility device.
574361847f8eSopenharmony_ci     *
574461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
574561847f8eSopenharmony_ci     * @since 9
574661847f8eSopenharmony_ci     * @deprecated since 10
574761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.MajorMinorClass#HEALTH_PERSONAL_MOBILITY_DEVICE
574861847f8eSopenharmony_ci     */
574961847f8eSopenharmony_ci    HEALTH_PERSONAL_MOBILITY_DEVICE = 0x093C
575061847f8eSopenharmony_ci  }
575161847f8eSopenharmony_ci
575261847f8eSopenharmony_ci  /**
575361847f8eSopenharmony_ci   * The enum of a2dp playing state.
575461847f8eSopenharmony_ci   *
575561847f8eSopenharmony_ci   * @enum { number }
575661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
575761847f8eSopenharmony_ci   * @since 9
575861847f8eSopenharmony_ci   * @deprecated since 10
575961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.a2dp/a2dp.PlayingState
576061847f8eSopenharmony_ci   */
576161847f8eSopenharmony_ci  enum PlayingState {
576261847f8eSopenharmony_ci    /**
576361847f8eSopenharmony_ci     * Not playing.
576461847f8eSopenharmony_ci     *
576561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
576661847f8eSopenharmony_ci     * @since 9
576761847f8eSopenharmony_ci     * @deprecated since 10
576861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.PlayingState#STATE_NOT_PLAYING
576961847f8eSopenharmony_ci     */
577061847f8eSopenharmony_ci    STATE_NOT_PLAYING,
577161847f8eSopenharmony_ci    /**
577261847f8eSopenharmony_ci     * Playing.
577361847f8eSopenharmony_ci     *
577461847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
577561847f8eSopenharmony_ci     * @since 9
577661847f8eSopenharmony_ci     * @deprecated since 10
577761847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.a2dp/a2dp.PlayingState#STATE_PLAYING
577861847f8eSopenharmony_ci     */
577961847f8eSopenharmony_ci    STATE_PLAYING
578061847f8eSopenharmony_ci  }
578161847f8eSopenharmony_ci
578261847f8eSopenharmony_ci  /**
578361847f8eSopenharmony_ci   * The enum of profile id.
578461847f8eSopenharmony_ci   *
578561847f8eSopenharmony_ci   * @enum { number }
578661847f8eSopenharmony_ci   * @syscap SystemCapability.Communication.Bluetooth.Core
578761847f8eSopenharmony_ci   * @since 9
578861847f8eSopenharmony_ci   * @deprecated since 10
578961847f8eSopenharmony_ci   * @useinstead ohos.bluetooth.constant/constant.ProfileId
579061847f8eSopenharmony_ci   */
579161847f8eSopenharmony_ci  enum ProfileId {
579261847f8eSopenharmony_ci    /**
579361847f8eSopenharmony_ci     * A2DP profile.
579461847f8eSopenharmony_ci     *
579561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
579661847f8eSopenharmony_ci     * @since 9
579761847f8eSopenharmony_ci     * @deprecated since 10
579861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.ProfileId#PROFILE_A2DP_SOURCE
579961847f8eSopenharmony_ci     */
580061847f8eSopenharmony_ci    PROFILE_A2DP_SOURCE = 1,
580161847f8eSopenharmony_ci
580261847f8eSopenharmony_ci    /**
580361847f8eSopenharmony_ci     * HFP profile.
580461847f8eSopenharmony_ci     *
580561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
580661847f8eSopenharmony_ci     * @since 9
580761847f8eSopenharmony_ci     * @deprecated since 10
580861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.ProfileId#PROFILE_HANDSFREE_AUDIO_GATEWAY
580961847f8eSopenharmony_ci     */
581061847f8eSopenharmony_ci    PROFILE_HANDS_FREE_AUDIO_GATEWAY = 4,
581161847f8eSopenharmony_ci
581261847f8eSopenharmony_ci    /**
581361847f8eSopenharmony_ci     * Human Interface Device (HID) profile.
581461847f8eSopenharmony_ci     *
581561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
581661847f8eSopenharmony_ci     * @since 9
581761847f8eSopenharmony_ci     * @deprecated since 10
581861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.ProfileId#PROFILE_HID_HOST
581961847f8eSopenharmony_ci     */
582061847f8eSopenharmony_ci    PROFILE_HID_HOST = 6,
582161847f8eSopenharmony_ci
582261847f8eSopenharmony_ci    /**
582361847f8eSopenharmony_ci     * PAN profile.
582461847f8eSopenharmony_ci     *
582561847f8eSopenharmony_ci     * @syscap SystemCapability.Communication.Bluetooth.Core
582661847f8eSopenharmony_ci     * @since 9
582761847f8eSopenharmony_ci     * @deprecated since 10
582861847f8eSopenharmony_ci     * @useinstead ohos.bluetooth.constant/constant.ProfileId#PROFILE_PAN_NETWORK
582961847f8eSopenharmony_ci     */
583061847f8eSopenharmony_ci    PROFILE_PAN_NETWORK = 7
583161847f8eSopenharmony_ci  }
583261847f8eSopenharmony_ci}
583361847f8eSopenharmony_ci
583461847f8eSopenharmony_ciexport default bluetoothManager;