Home
last modified time | relevance | path

Searched refs:dataReceiveProgress (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.2/
H A Dchangelogs-netstack.md13 - dataProgress事件名称更换为dataReceiveProgress
38 …- on(type: "dataReceiveProgress", callback: Callback<{ receiveSize: number, totalSize: number }>):…
39 …- off(type: 'dataReceiveProgress', callback?: Callback<{ receiveSize: number, totalSize: number }>…
43 将原有业务代码中request2接口名称和dataProgress事件名称分别替换为requestInStream和dataReceiveProgress即可正常使用。
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.2/
H A Dchangelogs-netstack.md11 …e of the streaming data receiving event from **dataProgress** to **dataReceiveProgress**. The orig…
38 …- on(type: "dataReceiveProgress", callback: Callback<{ receiveSize: number, totalSize: number }>):…
39 …- off(type: 'dataReceiveProgress', callback?: Callback<{ receiveSize: number, totalSize: number }>…
43 …ress** in the original service code with **requestInStream** and **dataReceiveProgress**, respecti…
/ohos5.0/docs/zh-cn/application-dev/network/
H A Dhttp-request.md30 | on\('dataReceiveProgress'\)<sup>10+</sup> | 订阅HTTP流式响应数据接收进度事件。 |
31 | off\('dataReceiveProgress'\)<sup>10+</sup> | 取消订阅HTTP流式响应数据接收进度事件。 |
157 httpRequest.on('dataReceiveProgress', (data: Data) => {
158 …console.log("dataReceiveProgress receiveSize:" + data.receiveSize + ", totalSize:" + data.totalSiz…
186 httpRequest.off('dataReceiveProgress');
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_ffi.cpp176 req->callbacks->dataReceiveProgress.push_back(CJLambda::Create(callback)); in CJ_OnDataReceiveProgress()
186 req->callbacks->dataReceiveProgress.clear(); in CJ_OffDataReceiveProgress()
H A Dnet_http_client_exec.cpp947 callbackSize = static_cast<int>(context->streamingCallback->dataReceiveProgress.size()); in ProgressCallback()
955 context->streamingCallback->dataReceiveProgress[i](info); in ProgressCallback()
H A Dnet_http_request_context.cpp579 callbacks->dataReceiveProgress.clear(); in Destroy()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/
H A Djs-apis-http.md973 ### on('dataReceiveProgress')<sup>10+</sup>
975 on(type: 'dataReceiveProgress', callback: Callback\<DataReceiveProgressInfo\>): void
985 | type | string | 是 | 订阅的事件类型,'dataReceiveProgress'。 |
994 httpRequest.on("dataReceiveProgress", (data: http.DataReceiveProgressInfo) => {
995 console.info("dataReceiveProgress:" + JSON.stringify(data));
997 httpRequest.off("dataReceiveProgress");
1000 ### off('dataReceiveProgress')<sup>10+</sup>
1015 | type | string | 是 | 取消订阅的事件类型:'dataReceiveProgress'。 |
1024 httpRequest.on("dataReceiveProgress", (data: http.DataReceiveProgressInfo) => {
1025 console.info("dataReceiveProgress:" + JSON.stringify(data));
[all …]
/ohos5.0/docs/en/application-dev/network/
H A Dhttp-request.md30 | on\('dataReceiveProgress'\)<sup>10+</sup> | Registers an observer for events indicating pr…
31 | off\('dataReceiveProgress'\)<sup>10+</sup> | Unregisters the observer for events indicating…
157 httpRequest.on('dataReceiveProgress', (data: Data) => {
158 …console.log("dataReceiveProgress receiveSize:" + data.receiveSize + ", totalSize:" + data.totalSiz…
186 httpRequest.off('dataReceiveProgress');
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/include/
H A Dnet_http_request_context.h53 std::vector<std::function<void(CDataReceiveProgressInfo)>> dataReceiveProgress; member
/ohos5.0/docs/en/application-dev/reference/apis-network-kit/
H A Djs-apis-http.md973 ### on('dataReceiveProgress')<sup>10+</sup>
975 on(type: 'dataReceiveProgress', callback: Callback\<DataReceiveProgressInfo\>): void
994 httpRequest.on("dataReceiveProgress", (data: http.DataReceiveProgressInfo) => {
995 console.info("dataReceiveProgress:" + JSON.stringify(data));
997 httpRequest.off("dataReceiveProgress");
1000 ### off('dataReceiveProgress')<sup>10+</sup>
1002 off(type: 'dataReceiveProgress', callback?: Callback\<DataReceiveProgressInfo\>): void
1015 | type | string | Yes | Event type. The value is **dataReceiveProgress**.|
1024 httpRequest.on("dataReceiveProgress", (data: http.DataReceiveProgressInfo) => {
1025 console.info("dataReceiveProgress:" + JSON.stringify(data));
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/
H A Djs-apidiff-communication.md1054 …, totalSize: number }>): void;|类名:HttpRequest;<br>方法or属性:on(type: 'dataReceiveProgress', callback:…
1055 … totalSize: number }>): void;|类名:HttpRequest;<br>方法or属性:off(type: 'dataReceiveProgress', callback?…
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v4.0-beta2/
H A Djs-apidiff-communication.md1054 …d;|Class name: HttpRequest;<br>Method or attribute name: on(type: 'dataReceiveProgress', callback:…
1055 …;|Class name: HttpRequest;<br>Method or attribute name: off(type: 'dataReceiveProgress', callback?…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/
H A Djs-apidiff-communication.md463 |新增|NA|类名:HttpRequest;<br>方法or属性:on(type: 'dataReceiveProgress', callback: Callback\<{ receiveSize:…
466 |新增|NA|类名:HttpRequest;<br>方法or属性:off(type: 'dataReceiveProgress', callback?: Callback\<{ receiveSiz…
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v3.2-Release/
H A Djs-apidiff-communication.md463 |Added|NA|Class name: HttpRequest;<br>Method or attribute name: on(type: 'dataReceiveProgress', cal…
466 |Added|NA|Class name: HttpRequest;<br>Method or attribute name: off(type: 'dataReceiveProgress', ca…