diff --git a/api/@ohos.net.sharing.d.ts b/api/@ohos.net.sharing.d.ts index c341206cef817c8b7a1030b59694e7506864724b..d17b5c2b71f8a67e2a9084800270f9ceb9fc8d34 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