From d91d2503341dfcc08457cd1ca6d8d31c0d5e7af1 Mon Sep 17 00:00:00 2001 From: chen yi wen <15068825070@163.com> Date: Mon, 7 Jul 2025 07:14:05 +0000 Subject: [PATCH 1/3] 1 Signed-off-by: chen yi wen <15068825070@163.com> --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index d7037e8c25..03d57fc780 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ +/** + * Disable Wi-Fi. + * @permission ohos.permission.SET_WIFI_INFO and (ohos.permission.MANAGE_WIFI_CONNECTION or + * ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION) + * @throws {BusinessError} 201 - Permission denied. + * @throws {BusinessError} 801 - Capability not supported. + * @throws {BusinessError} 2501000 - Operation failed. + * @throws {BusinessError} 2501004 - Operation failed because the service is being opened. + * @syscap SystemCapability.Communication.WiFi.STA + * @since 20 + */ + function disableWifi(): void; # Public Repository for API Declaration Files ## Overview -- Gitee From 013fc26ccd8a42f27341d59ebe6051615d5f6e35 Mon Sep 17 00:00:00 2001 From: chen yi wen <15068825070@163.com> Date: Mon, 7 Jul 2025 07:15:55 +0000 Subject: [PATCH 2/3] 1 Signed-off-by: chen yi wen <15068825070@163.com> --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 03d57fc780..5afd1d2859 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,18 @@ * @since 20 */ function disableWifi(): void; + + /** + * Disable Wi-Fi. + * @permission ohos.permission.SET_WIFI_INFO and (ohos.permission.MANAGE_WIFI_CONNECTION or ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION) + * @throws {BusinessError} 201 - Permission denied. + * @throws {BusinessError} 801 - Capability not supported. + * @throws {BusinessError} 2501000 - Operation failed. + * @throws {BusinessError} 2501004 - Operation failed because the service is being opened. + * @syscap SystemCapability.Communication.WiFi.STA + * @since 16 + */ + function disableWifi(): void; 原来的再改成这个 # Public Repository for API Declaration Files ## Overview -- Gitee From 2c29b7a2cf065b243be5dc3bfccab06e7553a401 Mon Sep 17 00:00:00 2001 From: chen yi wen <15068825070@163.com> Date: Mon, 7 Jul 2025 15:35:06 +0800 Subject: [PATCH 3/3] 222 Signed-off-by: chen yi wen <15068825070@163.com> --- README.md | 24 ------------------------ api/@ohos.wifiManager.d.ts | 5 +++-- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 5afd1d2859..d7037e8c25 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,3 @@ -/** - * Disable Wi-Fi. - * @permission ohos.permission.SET_WIFI_INFO and (ohos.permission.MANAGE_WIFI_CONNECTION or - * ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION) - * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 801 - Capability not supported. - * @throws {BusinessError} 2501000 - Operation failed. - * @throws {BusinessError} 2501004 - Operation failed because the service is being opened. - * @syscap SystemCapability.Communication.WiFi.STA - * @since 20 - */ - function disableWifi(): void; - - /** - * Disable Wi-Fi. - * @permission ohos.permission.SET_WIFI_INFO and (ohos.permission.MANAGE_WIFI_CONNECTION or ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION) - * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 801 - Capability not supported. - * @throws {BusinessError} 2501000 - Operation failed. - * @throws {BusinessError} 2501004 - Operation failed because the service is being opened. - * @syscap SystemCapability.Communication.WiFi.STA - * @since 16 - */ - function disableWifi(): void; 原来的再改成这个 # Public Repository for API Declaration Files ## Overview diff --git a/api/@ohos.wifiManager.d.ts b/api/@ohos.wifiManager.d.ts index ab6539c605..271de34523 100644 --- a/api/@ohos.wifiManager.d.ts +++ b/api/@ohos.wifiManager.d.ts @@ -56,13 +56,14 @@ declare namespace wifiManager { /** * Disable Wi-Fi. - * @permission ohos.permission.SET_WIFI_INFO and (ohos.permission.MANAGE_WIFI_CONNECTION or ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION) + * @permission ohos.permission.SET_WIFI_INFO and (ohos.permission.MANAGE_WIFI_CONNECTION or + * ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION) * @throws {BusinessError} 201 - Permission denied. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. * @throws {BusinessError} 2501004 - Operation failed because the service is being opened. * @syscap SystemCapability.Communication.WiFi.STA - * @since 16 + * @since 20 */ function disableWifi(): void; -- Gitee