diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index 68762b425f2a29be6a6e4132c3a3c2fbd41f2558..b62e262a3ce7cc58f48f146dba78a2fe1a8f3ba7 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -475,8 +475,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'9','1.2':'20'} - * @arkts 1.1&1.2 + * @since 9 */ function isDefaultNetMetered(callback: AsyncCallback): void; @@ -488,8 +487,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'9','1.2':'20'} - * @arkts 1.1&1.2 + * @since 9 */ function isDefaultNetMetered(): Promise; @@ -501,8 +499,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function isDefaultNetMeteredSync(): boolean; @@ -649,8 +646,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'8','1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ function reportNetConnected(netHandle: NetHandle, callback: AsyncCallback): void; @@ -665,8 +661,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'8','1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ function reportNetConnected(netHandle: NetHandle): Promise; @@ -681,8 +676,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'8','1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ function reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback): void; @@ -697,8 +691,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'8','1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ function reportNetDisconnected(netHandle: NetHandle): Promise; @@ -713,8 +706,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'8','1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ function getAddressesByName(host: string, callback: AsyncCallback>): void; @@ -729,8 +721,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'8','1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ function getAddressesByName(host: string): Promise>; @@ -742,8 +733,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'9','1.2':'20'} - * @arkts 1.1&1.2 + * @since 9 */ function getAppNet(callback: AsyncCallback): void; @@ -753,8 +743,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'9','1.2':'20'} - * @arkts 1.1&1.2 + * @since 9 */ function getAppNet(): Promise; @@ -764,8 +753,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function getAppNetSync(): NetHandle; @@ -800,8 +788,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'9','1.2':'20'} - * @arkts 1.1&1.2 + * @since 9 */ function setAppNet(netHandle: NetHandle): Promise; @@ -923,8 +910,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ function setPacUrl(pacUrl: string): void; @@ -934,8 +920,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ function getPacUrl(): string; @@ -966,8 +951,7 @@ declare namespace connection { * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core * @atomicservice - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ function addCustomDnsRule(host: string, ip: Array, callback: AsyncCallback): void; @@ -998,8 +982,7 @@ declare namespace connection { * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core * @atomicservice - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ function addCustomDnsRule(host: string, ip: Array): Promise; @@ -1028,8 +1011,7 @@ declare namespace connection { * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core * @atomicservice - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ function removeCustomDnsRule(host: string, callback: AsyncCallback): void; @@ -1058,8 +1040,7 @@ declare namespace connection { * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core * @atomicservice - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ function removeCustomDnsRule(host: string): Promise; @@ -1073,8 +1054,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ function clearCustomDnsRules(callback: AsyncCallback): void; @@ -1087,8 +1067,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ function clearCustomDnsRules(): Promise; @@ -1171,8 +1150,7 @@ declare namespace connection { * @param { 'netBlockStatusChange' } type - Indicates Event name. * @param { Callback } callback - the callback used to return the result. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ on(type: 'netBlockStatusChange', callback: Callback): void; @@ -1242,8 +1220,7 @@ declare namespace connection { * @syscap SystemCapability.Communication.NetManager.Core * @crossplatform * @atomicservice - * @since arkts{'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ on(type: 'netLost', callback: Callback): void; @@ -1269,8 +1246,7 @@ declare namespace connection { * @syscap SystemCapability.Communication.NetManager.Core * @crossplatform * @atomicservice - * @since arkts{'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ on(type: 'netUnavailable', callback: Callback): void; @@ -1575,8 +1551,7 @@ declare namespace connection { * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core * @atomicservice - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ getAddressesByName(host: string, callback: AsyncCallback>): void; @@ -1605,8 +1580,7 @@ declare namespace connection { * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core * @atomicservice - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ getAddressesByName(host: string): Promise>; @@ -1621,8 +1595,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'8','1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ getAddressByName(host: string, callback: AsyncCallback): void; @@ -1637,8 +1610,7 @@ declare namespace connection { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'8','1.2':'20'} - * @arkts 1.1&1.2 + * @since 8 */ getAddressByName(host: string): Promise; } @@ -1950,8 +1922,7 @@ declare namespace connection { * @syscap SystemCapability.Communication.NetManager.Core * @crossplatform * @atomicservice - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ BEARER_BLUETOOTH = 2, diff --git a/api/@ohos.net.http.d.ts b/api/@ohos.net.http.d.ts index e53cdc0846b02bf13ad1329c11d9489f8832714b..f4537f343a7f06059ce8e6653c8aefcd4df6b0e9 100644 --- a/api/@ohos.net.http.d.ts +++ b/api/@ohos.net.http.d.ts @@ -94,31 +94,27 @@ declare namespace http { * Enum for Address Family * @enum {string} * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ export enum AddressFamily { /** * Default, can use addresses of all IP versions that your system allows. * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ DEFAULT = 'CURL_IPRESOLVE_WHATEVER', /** * ONLYV4 Uses only IPv4 addresses. * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ ONLY_V4 = 'CURL_IPRESOLVE_V4', /** * ONLYV6 Uses only IPv6 addresses. * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ ONLY_V6 = 'CURL_IPRESOLVE_V6' } @@ -411,8 +407,7 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ caPath?: string; @@ -431,8 +426,7 @@ declare namespace http { * @type {?long} * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ resumeFrom?: long; @@ -451,8 +445,7 @@ declare namespace http { * @type {?long} * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ resumeTo?: long; @@ -487,8 +480,7 @@ declare namespace http { * @type {?string} * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ dnsOverHttps?: string; @@ -507,8 +499,7 @@ declare namespace http { * @type {?Array} * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ dnsServers?: Array; @@ -525,8 +516,7 @@ declare namespace http { * @type {?int} * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ maxLimit?: int; @@ -555,8 +545,7 @@ declare namespace http { * {@link CertificatePinning.publicKeyHash}, request will fail. * @type {?(CertificatePinning | CertificatePinning[])} * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ certificatePinning?: CertificatePinning | CertificatePinning[]; @@ -565,8 +554,7 @@ declare namespace http { * @type {?RemoteValidation} * @syscap SystemCapability.Communication.NetStack * @atomicservice - * @since arkts{'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ remoteValidation?: RemoteValidation; @@ -575,8 +563,7 @@ declare namespace http { * @type {?TlsOptions} * @syscap SystemCapability.Communication.NetStack * @atomicservice - * @since arkts{'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ tlsOptions?: TlsOptions; @@ -585,8 +572,7 @@ declare namespace http { * @type {?ServerAuthentication} * @syscap SystemCapability.Communication.NetStack * @atomicservice - * @since arkts{'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ serverAuthentication?: ServerAuthentication; @@ -594,8 +580,7 @@ declare namespace http { * Address family option. * @type {?AddressFamily} * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ addressFamily?: AddressFamily; } @@ -1101,24 +1086,21 @@ declare namespace http { * Certificate pinning option. * @interface CertificatePinning * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ interface CertificatePinning { /** * Public key hash. * @type {string} * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ publicKeyHash: string; /** * Certificate public key hash algorithm. * @type {'SHA-256'} * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ hashAlgorithm: 'SHA-256'; } @@ -1948,8 +1930,7 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts{'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ requestInStream(url: string, callback: AsyncCallback): void; @@ -2118,8 +2099,7 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts{'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ requestInStream(url: string, options: HttpRequestOptions, callback: AsyncCallback): void; @@ -2288,8 +2268,7 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts{'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ requestInStream(url: string, options?: HttpRequestOptions): Promise; @@ -3472,8 +3451,7 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts{'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ RANGE_NOT_SATISFIABLE, @@ -4140,8 +4118,7 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ export interface DataReceiveProgressInfo { /** @@ -4163,8 +4140,7 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ receiveSize: int; /** @@ -4186,8 +4162,7 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts{'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ totalSize: int; } @@ -4355,8 +4330,7 @@ declare namespace http { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts{'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ flush(): Promise; diff --git a/api/@ohos.net.networkSecurity.d.ts b/api/@ohos.net.networkSecurity.d.ts index 69bfd721cb2514d3c6678c86c4e2e60cc34037af..b91598e6df76689e549cbd7410389dbaec66cdd1 100644 --- a/api/@ohos.net.networkSecurity.d.ts +++ b/api/@ohos.net.networkSecurity.d.ts @@ -195,8 +195,7 @@ declare namespace networkSecurity { * @returns { boolean } Returns true if the Cleartext traffic is permitted, else returns false. * @throws { BusinessError } 201 - Permission denied. * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ export function isCleartextPermitted(): boolean; @@ -208,8 +207,7 @@ declare namespace networkSecurity { * @returns { boolean } Returns true if the Cleartext traffic is permitted, else returns false. * @throws { BusinessError } 201 - Permission denied. * @syscap SystemCapability.Communication.NetStack - * @since arkts{'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ export function isCleartextPermittedByHostName(hostName: string): boolean; } diff --git a/api/@ohos.net.statistics.d.ts b/api/@ohos.net.statistics.d.ts index 5c67522154ce481bac4cda6fefe79b7c6725948c..6a7a355e151f7b7baa130ae718db4019e05def19 100644 --- a/api/@ohos.net.statistics.d.ts +++ b/api/@ohos.net.statistics.d.ts @@ -117,8 +117,7 @@ declare namespace statistics { * @throws { BusinessError } 2103011 - Failed to create a system map. * @throws { BusinessError } 2103012 - Failed to obtain the NIC name. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function getCellularRxBytes(callback: AsyncCallback): void; @@ -131,8 +130,7 @@ declare namespace statistics { * @throws { BusinessError } 2103011 - Failed to create a system map. * @throws { BusinessError } 2103012 - Failed to obtain the NIC name. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function getCellularRxBytes(): Promise; @@ -145,8 +143,7 @@ declare namespace statistics { * @throws { BusinessError } 2103011 - Failed to create a system map. * @throws { BusinessError } 2103012 - Failed to obtain the NIC name. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function getCellularTxBytes(callback: AsyncCallback): void; @@ -159,8 +156,7 @@ declare namespace statistics { * @throws { BusinessError } 2103011 - Failed to create a system map. * @throws { BusinessError } 2103012 - Failed to obtain the NIC name. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function getCellularTxBytes(): Promise; @@ -270,8 +266,7 @@ declare namespace statistics { * @throws { BusinessError } 2103005 - Failed to read the system map. * @throws { BusinessError } 2103011 - Failed to create a system map. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function getUidRxBytes(uid: int, callback: AsyncCallback): void; @@ -285,8 +280,7 @@ declare namespace statistics { * @throws { BusinessError } 2103005 - Failed to read the system map. * @throws { BusinessError } 2103011 - Failed to create a system map. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function getUidRxBytes(uid: int): Promise; @@ -300,8 +294,7 @@ declare namespace statistics { * @throws { BusinessError } 2103005 - Failed to read the system map. * @throws { BusinessError } 2103011 - Failed to create a system map. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function getUidTxBytes(uid: int, callback: AsyncCallback): void; @@ -315,8 +308,7 @@ declare namespace statistics { * @throws { BusinessError } 2103005 - Failed to read the system map. * @throws { BusinessError } 2103011 - Failed to create a system map. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function getUidTxBytes(uid: int): Promise; @@ -465,8 +457,7 @@ declare namespace statistics { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ function getSockfdRxBytes(sockfd: int, callback: AsyncCallback): void; @@ -479,8 +470,7 @@ declare namespace statistics { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ function getSockfdRxBytes(sockfd: int): Promise; @@ -493,8 +483,7 @@ declare namespace statistics { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ function getSockfdTxBytes(sockfd: int, callback: AsyncCallback): void; @@ -507,8 +496,7 @@ declare namespace statistics { * @throws { BusinessError } 2100002 - Failed to connect to the service. * @throws { BusinessError } 2100003 - System internal error. * @syscap SystemCapability.Communication.NetManager.Core - * @since arkts{'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ function getSockfdTxBytes(sockfd: int): Promise; diff --git a/api/@ohos.net.webSocket.d.ts b/api/@ohos.net.webSocket.d.ts index e582a5f2edc446444a307ec222ad33fd60c302cd..27998aa472fbc9100e29e5ef20103d42fc355b93 100644 --- a/api/@ohos.net.webSocket.d.ts +++ b/api/@ohos.net.webSocket.d.ts @@ -118,8 +118,7 @@ declare namespace webSocket { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ header?: Object; @@ -134,8 +133,7 @@ declare namespace webSocket { * @type {?string} * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ caPath?: string; @@ -150,8 +148,7 @@ declare namespace webSocket { * @type {?ClientCert} * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ clientCert?: ClientCert; @@ -159,8 +156,7 @@ declare namespace webSocket { * HTTP proxy configuration. Use 'system' if this filed is not set. * @type {?ProxyConfiguration} * @syscap SystemCapability.Communication.NetStack - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ proxy?: ProxyConfiguration; @@ -168,8 +164,7 @@ declare namespace webSocket { * Self defined protocol. * @type {?string} * @syscap SystemCapability.Communication.NetStack - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ protocol?: string; } @@ -201,8 +196,7 @@ declare namespace webSocket { * @interface ClientCert * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ export interface ClientCert { /** @@ -216,8 +210,7 @@ declare namespace webSocket { * @type {string} * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ certPath: string; @@ -232,8 +225,7 @@ declare namespace webSocket { * @type {string} * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ keyPath: string; @@ -248,8 +240,7 @@ declare namespace webSocket { * @type {?string} * @syscap SystemCapability.Communication.NetStack * @crossplatform - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ keyPassword?: string; } @@ -618,8 +609,7 @@ declare namespace webSocket { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ send(data: string | ArrayBuffer, callback: AsyncCallback): void; @@ -654,8 +644,7 @@ declare namespace webSocket { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ send(data: string | ArrayBuffer): Promise; @@ -723,8 +712,7 @@ declare namespace webSocket { * @syscap SystemCapability.Communication.NetStack * @crossplatform * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ close(options: WebSocketCloseOptions, callback: AsyncCallback): void;