From 631fdf38334f4ac619b92e614bee990dae52e2d5 Mon Sep 17 00:00:00 2001 From: chen yi wen <15068825070@163.com> Date: Tue, 8 Jul 2025 11:33:56 +0000 Subject: [PATCH 1/2] 1 Signed-off-by: chen yi wen <15068825070@163.com> --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index d7037e8c25..6376810ac8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ +/** + * Start Wi-Fi network detection + * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION + * @throws {BusinessError} 201 - Permission denied. + * @throws {BusinessError} 202 - System API is not allowed called by Non-system application. + * @throws {BusinessError} 801 - Capability not supported. + * @throws {BusinessError} 25010000 - Operation failed. + * @throws {BusinessError} 25010001 - Wi-Fi STA disabled. + * @syscap SystemCapability.Communication.Wifi.STA + * @systemapi Hide this for inner system use. + * @since 20 + * @arkts 1.1&1.2 + */ + function startWifiDetection(): void; # Public Repository for API Declaration Files ## Overview -- Gitee From cfacacc8dc9cb5a0b45a526b96a7d6705abef7d0 Mon Sep 17 00:00:00 2001 From: chen yi wen <15068825070@163.com> Date: Tue, 8 Jul 2025 19:47:56 +0800 Subject: [PATCH 2/2] 111 Signed-off-by: chen yi wen <15068825070@163.com> --- README.md | 14 -------------- api/@ohos.wifiManager.d.ts | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 6376810ac8..d7037e8c25 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,3 @@ -/** - * Start Wi-Fi network detection - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 202 - System API is not allowed called by Non-system application. - * @throws {BusinessError} 801 - Capability not supported. - * @throws {BusinessError} 25010000 - Operation failed. - * @throws {BusinessError} 25010001 - Wi-Fi STA disabled. - * @syscap SystemCapability.Communication.Wifi.STA - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - function startWifiDetection(): void; # Public Repository for API Declaration Files ## Overview diff --git a/api/@ohos.wifiManager.d.ts b/api/@ohos.wifiManager.d.ts index 55fed4246c..720b9c81e2 100644 --- a/api/@ohos.wifiManager.d.ts +++ b/api/@ohos.wifiManager.d.ts @@ -4618,6 +4618,20 @@ declare namespace wifiManager { */ GO_BAND_5GHZ = 2 } + /** + * Start Wi-Fi network detection + * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION + * @throws {BusinessError} 201 - Permission denied. + * @throws {BusinessError} 202 - System API is not allowed called by Non-system application. + * @throws {BusinessError} 801 - Capability not supported. + * @throws {BusinessError} 25010000 - Operation failed. + * @throws {BusinessError} 25010001 - Wi-Fi STA disabled. + * @syscap SystemCapability.Communication.Wifi.STA + * @systemapi Hide this for inner system use. + * @since 20 + * @arkts 1.1&1.2 + */ + function startWifiDetection(): void; } export default wifiManager; -- Gitee