From c89ff02ae45e974c393bc8ec778cbc307e6d0ba5 Mon Sep 17 00:00:00 2001 From: leo9001 Date: Tue, 5 Aug 2025 04:16:22 +0000 Subject: [PATCH] support net sharing ani support net sharing ani Issue:https://gitee.com/openharmony/interface_sdk-js/issues/ICR5JJ Signed-off-by: leo9001 --- api/@ohos.net.sharing.d.ts | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/api/@ohos.net.sharing.d.ts b/api/@ohos.net.sharing.d.ts index c341206cef..d17b5c2b71 100644 --- a/api/@ohos.net.sharing.d.ts +++ b/api/@ohos.net.sharing.d.ts @@ -425,18 +425,6 @@ declare namespace sharing { */ function off(type: 'sharingStateChange', callback?: Callback): void; - /** - * Register a callback for the interface network sharing state change. - * @permission ohos.permission.CONNECTIVITY_INTERNAL - * @param { 'interfaceSharingStateChange' } type - Indicates Event name. - * @param { Callback<{ type: SharingIfaceType, iface: string, state: SharingIfaceState }> } callback - the callback function that returns the message. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Parameter error. - * @syscap SystemCapability.Communication.NetManager.NetSharing - * @systemapi Hide this for inner system use. - * @since 9 - */ /** * Register a callback for the interface network sharing state change. * @permission ohos.permission.CONNECTIVITY_INTERNAL @@ -452,18 +440,6 @@ declare namespace sharing { */ function on(type: 'interfaceSharingStateChange', callback: Callback): void; - /** - * Unregister a callback for the interface network sharing state change. - * @permission ohos.permission.CONNECTIVITY_INTERNAL - * @param { 'interfaceSharingStateChange' } type - Indicates Event name. - * @param { Callback<{ type: SharingIfaceType, iface: string, state: SharingIfaceState }> } callback - the callback function that returns the message. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Parameter error. - * @syscap SystemCapability.Communication.NetManager.NetSharing - * @systemapi Hide this for inner system use. - * @since 9 - */ /** * Unregister a callback for the interface network sharing state change. * @permission ohos.permission.CONNECTIVITY_INTERNAL -- Gitee