未验证 提交 6ab2b65a 编写于 作者: O openharmony_ci 提交者: Gitee

!22452 翻译完成 22155:增加因功耗性能要求,应用在后台时,上传下载进度不再回调

Merge pull request !22452 from ester.zhou/TR-22155
...@@ -286,6 +286,10 @@ on(type: 'progress', callback:(uploadedSize: number, totalSize: number) => vo ...@@ -286,6 +286,10 @@ on(type: 'progress', callback:(uploadedSize: number, totalSize: number) => vo
Subscribes to upload progress events. This API uses a callback to return the result synchronously. Subscribes to upload progress events. This API uses a callback to return the result synchronously.
> **NOTE**
>
> To maintain a balance between power consumption and performance, this API cannot be called when the application is running in the background.
**Required permissions**: ohos.permission.INTERNET **Required permissions**: ohos.permission.INTERNET
**System capability**: SystemCapability.MiscServices.Upload **System capability**: SystemCapability.MiscServices.Upload
...@@ -851,6 +855,10 @@ on(type: 'progress', callback:(receivedSize: number, totalSize: number) => vo ...@@ -851,6 +855,10 @@ on(type: 'progress', callback:(receivedSize: number, totalSize: number) => vo
Subscribes to download progress events. This API uses a callback to return the result synchronously. Subscribes to download progress events. This API uses a callback to return the result synchronously.
> **NOTE**
>
> To maintain a balance between power consumption and performance, this API cannot be called when the application is running in the background.
**Required permissions**: ohos.permission.INTERNET **Required permissions**: ohos.permission.INTERNET
**System capability**: SystemCapability.MiscServices.Download **System capability**: SystemCapability.MiscServices.Download
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册