From 119dc9ffab584e0e3f6b631a9e5d471a88b87e0f Mon Sep 17 00:00:00 2001 From: lverpeng Date: Thu, 21 Jul 2022 17:21:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?d.ts=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lverpeng --- api/@ohos.bluetooth.d.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/api/@ohos.bluetooth.d.ts b/api/@ohos.bluetooth.d.ts index 54bdf747c1..93cc5db1b4 100644 --- a/api/@ohos.bluetooth.d.ts +++ b/api/@ohos.bluetooth.d.ts @@ -178,8 +178,7 @@ declare namespace bluetooth { * * @return Returns {@code true} if the scan is started successfully; returns {@code false} otherwise. * @since 8 - * @permission ohos.permission.DISCOVER_BLUETOOTH - * @permission ohos.permission.LOCATION + * @permission ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION */ function startBluetoothDiscovery(): boolean; @@ -436,17 +435,8 @@ declare namespace bluetooth { * * @param device The address of the remote device. * @return Returns {@link PlayingState} of the remote device. - * @deprecated since 9 * @since 8 */ - /** - * Obtains the playing state of device. - * - * @param device The address of the remote device. - * @return Returns {@link PlayingState} of the remote device. - * @since 9 - * @permission ohos.permission.USE_BLUETOOTH - */ getPlayingState(device: string): PlayingState; } @@ -628,9 +618,7 @@ declare namespace bluetooth { * {@link ScanOptions#interval} set to 0, {@link ScanOptions#dutyMode} set to {@link SCAN_MODE_LOW_POWER} * and {@link ScanOptions#matchMode} set to {@link MATCH_MODE_AGGRESSIVE}. * @since 7 - * @permission ohos.permission.DISCOVER_BLUETOOTH - * @permission ohos.permission.MANAGE_BLUETOOTH - * @permission ohos.permission.LOCATION + * @permission ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.MANAGE_BLUETOOTH and ohos.permission.LOCATION */ function startBLEScan(filters: Array, options?: ScanOptions): void; -- Gitee From abded15d41817996f2b62bf15ef547e102050c36 Mon Sep 17 00:00:00 2001 From: lverpeng Date: Mon, 25 Jul 2022 20:39:03 +0800 Subject: [PATCH 2/2] =?UTF-8?q?bluetooth=E7=9A=84d.ts=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=90=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lverpeng --- api/@ohos.bluetooth.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.bluetooth.d.ts b/api/@ohos.bluetooth.d.ts index 93cc5db1b4..882a13afa1 100644 --- a/api/@ohos.bluetooth.d.ts +++ b/api/@ohos.bluetooth.d.ts @@ -362,7 +362,7 @@ declare namespace bluetooth { * @return Returns instance of profile. * @since 9 */ - function getProfile(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile | HidHostProfile | PanProfile; + function getProfileInst(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile | HidHostProfile | PanProfile; /** * Base interface of profile. -- Gitee