diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index fe160e86d3ebeb31bc4afe85eba292acb6dbd7b1..fb74631dfdcd17f78d9ef5a406b5ff9bead9239a 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -249,7 +249,8 @@ declare namespace connection { * This method requires the {@code ohos.permission.GET_NETWORK_INFO} permission. * @permission ohos.permission.GET_NETWORK_INFO * @param { NetHandle } netHandle - Indicates the network to be queried. - * @param { AsyncCallback } callback - the callback of getConnectionProperties.{@link ConnectionProperties}. + * @param { AsyncCallback } callback - the callback of getConnectionProperties. + * {@link ConnectionProperties}. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 2100001 - Invalid parameter value. @@ -453,7 +454,8 @@ declare namespace connection { /** * Checks whether data traffic usage on the current network is metered. * @permission ohos.permission.GET_NETWORK_INFO - * @param { AsyncCallback } callback - Returns {@code true} if data traffic usage on the current network is metered; + * @param { AsyncCallback } callback - Returns {@code true} if data traffic usage on the current network + * is metered; * returns {@code false} otherwise. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. @@ -774,7 +776,8 @@ declare namespace connection { * * If an application level proxy is set, the application level proxy parameters are returned. * If a global proxy is set, the global proxy parameters are returned. - * If the process is bound to a {@link NetHandle} using {@link setAppNet}, the {@link NetHandle} proxy settings are returned. + * If the process is bound to a {@link NetHandle} using {@link setAppNet}, the {@link NetHandle} proxy settings + * are returned. * In other cases, the proxy settings of default network are returned. * * @param { AsyncCallback } callback - Returns the default {@link HttpProxy} settings. @@ -790,7 +793,8 @@ declare namespace connection { * * If an application level proxy is set, the application level proxy parameters are returned. * If a global proxy is set, the global proxy parameters are returned. - * If the process is bound to a {@link NetHandle} using {@link setAppNet}, the {@link NetHandle} proxy settings are returned. + * If the process is bound to a {@link NetHandle} using {@link setAppNet}, the {@link NetHandle} proxy settings + * are returned. * In other cases, the proxy settings of default network are returned. * * @returns { Promise } the promise returned by the function. @@ -1150,7 +1154,8 @@ declare namespace connection { /** * Registers a listener for netConnectionPropertiesChange events. * @param { 'netConnectionPropertiesChange' } type - Indicates Event name. - * @param { Callback<{ netHandle: NetHandle, connectionProperties: ConnectionProperties }> } callback - the callback used to return the result. + * @param { Callback<{ netHandle: NetHandle, connectionProperties: ConnectionProperties }> } callback - the + * callback used to return the result. * @syscap SystemCapability.Communication.NetManager.Core * @since 8 */ @@ -1340,13 +1345,15 @@ declare namespace connection { netCapabilities: NetCapabilities; /** - * Network identifier, the identifier for Wi Fi networks is "wifi", and the identifier for cellular networks is "simId1" (corresponding to SIM card 1). + * Network identifier, the identifier for Wi Fi networks is "wifi", and the identifier for cellular networks + * is "simId1" (corresponding to SIM card 1). * @type {?string} * @syscap SystemCapability.Communication.NetManager.Core * @since 8 */ /** - * Network identifier, the identifier for Wi Fi networks is "wifi", and the identifier for cellular networks is "simId1" (corresponding to SIM card 1). + * Network identifier, the identifier for Wi Fi networks is "wifi", and the identifier for cellular networks + * is "simId1" (corresponding to SIM card 1). * @type {?string} * @syscap SystemCapability.Communication.NetManager.Core * @atomicservice