/ohos5.0/base/request/request/test/unittest/js_test/requestAgentTaskTest/entry/src/main/ets/test/ |
H A D | RequestDownloadFile.test.ets | 66 * @tc.desc: Test downloadFile when lack url 75 request.downloadFile(context, conf, (err) => { 88 * @tc.desc: Test downloadFile when url is undefined 186 * @tc.desc: Test downloadFile when url is empty 218 await request.downloadFile(context, "conf"); 240 await request.downloadFile(context, conf); 242 await request.downloadFile(context, conf); 309 * @tc.desc: Test downloadFile task on for fail 334 * @tc.desc: Test downloadFile task on for progress 427 * @tc.desc: Test downloadFile task on for pause [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/ |
H A D | errorcode-request.md | 15 在调用uploadFile或downloadFile接口时,文件权限不足或操作失败。 33 在调用uploadFile或downloadFile接口时,文件路径不合法或文件路径下文件已存在。 51 在调用downloadFile接口时,下载任务后台服务失败。 69 在调用uploadFile或downloadFile接口时,出现特殊错误。
|
H A D | js-apis-request.md | 814 ## request.downloadFile<sup>9+</sup> 816 downloadFile(context: BaseContext, config: DownloadConfig): Promise<DownloadTask> 871 ## request.downloadFile<sup>9+</sup> 908 request.downloadFile(getContext(), { 935 > 从API Version 9开始不再维护,建议使用[request.downloadFile<sup>9+</sup>](#requestdownloadfile9)替代。 984 > 从API Version 9开始不再维护,建议使用[request.downloadFile<sup>9+</sup>](#requestdownloadfile9-1)替代。 1024 …ownloadTask对象,promise形式通过[request.downloadFile<sup>9+</sup>](#requestdownloadfile9)获取,callback形式通过… 1120 …request.downloadFile(getContext(), { url: 'https://xxxx/xxxx.hap' }).then((data: request.DownloadT… 1173 …request.downloadFile(getContext(), { url: 'https://xxxx/xxxx.hap' }).then((data: request.DownloadT… 1228 …request.downloadFile(getContext(), { url: 'https://xxxx/xxxx.hap' }).then((data: request.DownloadT… [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.1/ |
H A D | changelogs-request.md | 28 | ohos.request | request | function downloadFile(context: BaseContext, config: DownloadConfig,… 29 | ohos.request | request | function downloadFile(context: BaseContext, config: DownloadConfig)… 44 …onfig, callback: AsyncCallback<DownloadTask>): void;<br>代替接口:function downloadFile(context: BaseCo… 45 …load(config: DownloadConfig): Promise<DownloadTask>;<br>代替接口:function downloadFile(context: BaseCo… 46 …onfig, callback: AsyncCallback<DownloadTask>): void;<br>代替接口:function downloadFile(context: BaseCo… 47 …ext, config: DownloadConfig): Promise<DownloadTask>;<br>代替接口:function downloadFile(context: BaseCo… 94 以downloadFile为例,在新版本上需要使用如下方式进行调用: 98 request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', 106 … console.log("downloadFile callback fail." + "errCode:" + err.code + ",errMessage:" + err.message);
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.8.1/ |
H A D | changelogs-request.md | 28 | ohos.request | request | function downloadFile(context: BaseContext, config:… 29 | ohos.request | request | function downloadFile(context: BaseContext, config:… 44 …back: AsyncCallback<DownloadTask>): void;<br>Substitute API: function downloadFile(context: BaseCo… 45 …: DownloadConfig): Promise<DownloadTask>;<br>Substitute API: function downloadFile(context: BaseCo… 46 …back: AsyncCallback<DownloadTask>): void;<br>Substitute API: function downloadFile(context: BaseCo… 47 …: DownloadConfig): Promise<DownloadTask>;<br>Substitute API: function downloadFile(context: BaseCo… 94 The following uses **downloadFile** as an example to show how it is called in the new version: 98 request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', 106 … console.log("downloadFile callback fail." + "errCode:" + err.code + ",errMessage:" + err.message);
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-request.md | 28 以download为例,在新版本上需要使用downloadFile, 如下方式进行调用: 32 request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', 40 … console.log("downloadFile callback fail." + "errCode:" + err.code + ",errMessage:" + err.message);
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/ |
H A D | changelogs-request.md | 28 以download为例,在新版本上需要使用downloadFile, 如下方式进行调用: 32 request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', 40 … console.log("downloadFile callback fail." + "errCode:" + err.code + ",errMessage:" + err.message);
|
/ohos5.0/docs/en/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-request.md | 28 The following sample code shows how to call **downloadFile** in the new version: 32 request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', 40 … console.log("downloadFile callback fail." + "errCode:" + err.code + ",errMessage:" + err.message);
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.10.6/ |
H A D | changelogs-request.md | 28 Call the new APIs. The following uses **downloadFile** as an example to show how it is called in th… 32 request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', 40 … console.log("downloadFile callback fail." + "errCode:" + err.code + ",errMessage:" + err.message);
|
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/ |
H A D | errorcode-request.md | 15 …reported when a file operation error occurs in invoking the **uploadFile** or **downloadFile** API. 33 …e is reported when a file path error occurs in invoking the **uploadFile** or **downloadFile** API. 51 This error code is reported when a task manager service error occurs in invoking the **downloadFile… 69 …ode is reported when a special error occurs in invoking the **uploadFile** or **downloadFile** API.
|
H A D | js-apis-request.md | 813 ## request.downloadFile<sup>9+</sup> 815 downloadFile(context: BaseContext, config: DownloadConfig): Promise<DownloadTask> 870 ## request.downloadFile<sup>9+</sup> 907 request.downloadFile(getContext(), { 1119 …request.downloadFile(getContext(), { url: 'https://xxxx/xxxx.hap' }).then((data: request.DownloadT… 1172 …request.downloadFile(getContext(), { url: 'https://xxxx/xxxx.hap' }).then((data: request.DownloadT… 1227 …request.downloadFile(getContext(), { url: 'https://xxxx/xxxx.hap' }).then((data: request.DownloadT… 1313 …request.downloadFile(getContext(), { url: 'https://xxxx/xxxx.hap' }).then((data: request.DownloadT… 1358 …request.downloadFile(getContext(), { url: 'https://xxxx/xxxx.hap' }).then((data: request.DownloadT… 1411 …request.downloadFile(getContext(), { url: 'https://xxxx/xxxx.hap' }).then((data: request.DownloadT… [all …]
|
/ohos5.0/docs/en/application-dev/application-models/ |
H A D | request-switch.md | 6 …downloadFile(context: BaseContext, config: DownloadConfig, callback: AsyncCallback<DownloadTask…
|
/ohos5.0/docs/zh-cn/application-dev/application-models/ |
H A D | request-switch.md | 6 …downloadFile(context: BaseContext, config: DownloadConfig, callback: Asyn…
|
/ohos5.0/base/request/request/frameworks/js/napi/src/legacy/ |
H A D | download_task.cpp | 46 auto downloadFile = option_.fileDir_ + '/' + option_.filename_; in OpenDownloadFile() local 47 FILE *filp = fopen(downloadFile.c_str(), "w+"); in OpenDownloadFile()
|
/ohos5.0/docs/en/application-dev/basic-services/request/ |
H A D | app-file-upload-download.md | 121 You can use **downloadFile()** in [ohos.request](../../reference/apis-basic-services-kit/js-apis-re… 132 // Way 1: Use request.downloadFile. 145 request.downloadFile(context, { 163 console.error(`Invoke downloadFile failed, code is ${err.code}, message is ${err.message}`);
|
/ohos5.0/docs/zh-cn/application-dev/basic-services/request/ |
H A D | app-file-upload-download.md | 138 // 方式一:request.downloadFile 151 request.downloadFile(context, { 169 console.error(`Invoke downloadFile failed, code is ${err.code}, message is ${err.message}`);
|
/ohos5.0/base/request/request/ |
H A D | README_ZH.md | 9 下载支持后台管理能力,通过download(downloadFile)接口新建任务,请求成功后会通过异步方式返回task对象。用户可以通过task对象管理任务,支持新建、移除、暂停、恢复以及查询任务…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/ |
H A D | js-apidiff-misc.md | 127 …wnload<br>废弃版本:N/A|方法名 or 属性名:download<br>废弃版本:9<br>代替接口:ohos.request.downloadFile |@ohos.reques… 128 …wnload<br>废弃版本:N/A|方法名 or 属性名:download<br>废弃版本:9<br>代替接口:ohos.request.downloadFile |@ohos.reques… 129 …wnload<br>废弃版本:N/A|方法名 or 属性名:download<br>废弃版本:9<br>代替接口:ohos.request.downloadFile |@ohos.reques… 130 …wnload<br>废弃版本:N/A|方法名 or 属性名:download<br>废弃版本:9<br>代替接口:ohos.request.downloadFile |@ohos.reques…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202210/ |
H A D | js-apidiff-misc.md | 157 …wnload<br>废弃版本:N/A|方法名 or 属性名:download<br>废弃版本:9<br>代替接口:ohos.request.downloadFile |@ohos.reques… 158 …wnload<br>废弃版本:N/A|方法名 or 属性名:download<br>废弃版本:9<br>代替接口:ohos.request.downloadFile |@ohos.reques… 159 …wnload<br>废弃版本:N/A|方法名 or 属性名:download<br>废弃版本:9<br>代替接口:ohos.request.downloadFile |@ohos.reques… 160 …wnload<br>废弃版本:N/A|方法名 or 属性名:download<br>废弃版本:9<br>代替接口:ohos.request.downloadFile |@ohos.reques…
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/atomicserviceweb/source/ |
H A D | atomicserviceweb.ets | 105 registerJsApi('request.downloadFile', 'downloadFile', '1.0.0', MAX_VERSION, ['url']); 939 downloadFile(options: DownloadFileOptions): void { 943 request.downloadFile(this.context, {
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/atomicserviceweb/interfaces/ |
H A D | atomicserviceweb.js | 1052 downloadFile(m2) { method in AtomicServiceApi 1056 request.downloadFile(this.context, {
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-misc.md | 179 …loadConfig): Promise\<DownloadTask>;<br>新版本信息:9<br>代替接口: ohos.request.downloadFile|@ohos.request.d… 275 …downloadFile(context: BaseContext, config: DownloadConfig, callback: AsyncCallback\<DownloadTask>)… 276 …unction downloadFile(context: BaseContext, config: DownloadConfig): Promise\<DownloadTask>;<br>旧版本…
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/pages/subBenchmarkTest/ |
H A D | hotspotBenchmarkTest.ets | 417 … request.downloadFile(getContext() , this.downloadConfig , (err , downloadTask) => {
|
H A D | hotspotManagerBenchmarkTest.ets | 419 … request.downloadFile(getContext() , this.downloadConfig , (err , downloadTask) => {
|
H A D | p2pManagerBenchmarkTest.ets | 417 … request.downloadFile(getContext() , this.downloadConfig , (err , downloadTask) => {
|