diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index 3ff974a7558c559153b9f2c6c1ff02df4843297e..491c670a81387b4715ddde0cf4b16ffd9a6263ad 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -272,9 +272,6 @@ declare namespace connection { prefixLength: number; } - /** - * @since 7 - */ export interface NetAddress { address: string; family?: number; // IPv4 = 1; IPv6 = 2, default is IPv4 diff --git a/api/@ohos.telephony.observer.d.ts b/api/@ohos.telephony.observer.d.ts index 8193aca0556d6a93da396099949fda566c6e06a1..29d749abd6a8e8c2cf0ba283b826bcc701e223d2 100644 --- a/api/@ohos.telephony.observer.d.ts +++ b/api/@ohos.telephony.observer.d.ts @@ -107,6 +107,9 @@ declare namespace observer { function on(type: 'cellularDataConnectionStateChange', options: { slotId: number }, callback: Callback<{ state: DataConnectState, network: RatType }>): void; + /** + * @since 7 + */ function off(type: 'cellularDataConnectionStateChange', callback?: Callback<{ state: DataConnectState, network: RatType }>): void; @@ -123,6 +126,9 @@ declare namespace observer { function on(type: 'cellularDataFlowChange', options: { slotId: number }, callback: Callback): void; + /** + * @since 7 + */ function off(type: 'cellularDataFlowChange', callback?: Callback): void; /** @@ -156,6 +162,9 @@ declare namespace observer { function on(type: 'simStateChange', callback: Callback): void; function on(type: 'simStateChange', options: { slotId: number }, callback: Callback): void; + /** + * @since 7 + */ function off(type: 'simStateChange', callback?: Callback): void; /**