diff --git a/api/@ohos.bluetooth.connection.d.ts b/api/@ohos.bluetooth.connection.d.ts index 4436723f197650369f39c19b581c70675683c91f..aae902bf9e40b9460d4248cb71abe7961ac0cb56 100644 --- a/api/@ohos.bluetooth.connection.d.ts +++ b/api/@ohos.bluetooth.connection.d.ts @@ -535,6 +535,21 @@ declare namespace connection { */ function getRemoteDeviceClass(deviceId: string): DeviceClass; + /** + * Get the transport of the bluetooth device. + * + * @param { string } deviceId - Indicates device ID. For example, "11:22:33:AA:BB:FF". + * @returns { BluetoothTransport } The transport of bluetooth device. + * @throws { BusinessError } 801 - Capability not supported. + * @throws { BusinessError } 2900001 - Service stopped. + * @throws { BusinessError } 2900003 - Bluetooth disabled. + * @throws { BusinessError } 2900099 - Get transport failed. + * @syscap SystemCapability.Communication.Bluetooth.Core + * @since 20 + * @arkts 1.1&1.2 + */ + function getRemoteDeviceTransport(deviceId: string): BluetoothTransport; + /** * Obtains the Bluetooth local name of a device. * @@ -1774,7 +1789,23 @@ declare namespace connection { * @syscap SystemCapability.Communication.Bluetooth.Core * @since 10 */ - TRANSPORT_LE = 1 + TRANSPORT_LE = 1, + /** + * The value of bluetooth transport DUAL. + * + * @syscap SystemCapability.Communication.Bluetooth.Core + * @since 20 + * @arkts 1.1&1.2 + */ + TRANSPORT_DUAL = 2, + /** + * The unknown bluetooth transport. + * + * @syscap SystemCapability.Communication.Bluetooth.Core + * @since 20 + * @arkts 1.1&1.2 + */ + TRANSPORT_UNKNOWN = 3 } /**