/ohos5.0/docs/en/application-dev/web/ |
H A D | web-download.md | 33 // Pass in a download path and start the download. 42 // Current download speed. 70 // Click the download button in the lower right corner of the video to trigger a download task. 75 …ta:text/html,%3Ch1%3EHello%2C%20World%21%3C%2Fh1%3E' download='download.html'>Download the downloa… 82 <!-- download.html --> 86 <h1>download test</h1> 117 // Pass in a download path and start the download. 167 // Used to record failed download tasks. 177 // Pass in a download path and start the download. 208 …// Serialize and save the current download task information for subsequent download task resumptio… [all …]
|
/ohos5.0/base/request/request/ |
H A D | README.md | 18 Download API: provides the download function. 24 Data download capability: saves download records. 50 ├── download/ability # Database management module of the download service 51 ├── download/etc # Process configuration files of the download service 54 ├── download/sa_profile # System service configuration files of the download ser… 55 ├── download/services # Implementation of the download service 191 title: 'download libc', 332 12. Remove the download task. 361 13. Pause the download task. 382 14. Resume the download task. [all …]
|
H A D | README_ZH.md | 9 下载支持后台管理能力,通过download(downloadFile)接口新建任务,请求成功后会通过异步方式返回task对象。用户可以通过task对象管理任务,支持新建、移除、暂停、恢复以及查询任务… 47 ├── download/ability # 下载服务数据库管理模块 48 ├── download/etc # 下载服务包含的进程配置文件 51 ├── download/sa_profile # 下载服务包含的系统服务的配置文件 52 ├── download/services # 下载系统服务实现 53 ├── download/utils # 下载服务包含日志打印和公共事件定义的常量
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ohos-arkui-advanced-DownloadFileButton.md | 28 Creates a download file button, which by default displays both an icon and text. 45 Defines the content displayed in the download file button. 58 Defines the style of the icon and text in the download file button. 78 Defines the icon style of the download file button. 93 Defines the text on the download file button. 103 | SAVE | 3 | The text on the download file button is **Save**. | 104 | SAVE_IMAGE | 4 | The text on the download file button is **Save Image**.| 105 | SAVE_FILE | 5 | The text on the download file button is **Save File**.| 107 | RECEIVE | 7 | The text on the download file button is **Receive**. | 108 | CONTINUE_TO_RECEIVE | 8 | The text on the download file button is **Continue**.| [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-file-cloudsync.md | 17 Enumerates the download states of a cloud file. 25 | FAILED | 2 | The cloud file download failed.| 26 | STOPPED | 3 | The cloud file download is stopped.| 98 console.info("download state: " + pg.state); 140 console.info("download state: " + pg.state); 183 console.info("download state:" + pg.state); 191 console.info("start download successfully"); 249 console.info("start download successfully"); 298 console.info("stop download successfully"); 345 console.info("stop download successfully"); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/web/ |
H A D | web-download.md | 32 console.log("will start a download."); 39 console.log("download update guid: " + webDownloadItem.getGuid()); 46 console.log("download failed guid: " + webDownloadItem.getGuid()); 51 console.log("download finish guid: " + webDownloadItem.getGuid()); 75 <a href='data:text/html,%3Ch1%3EHello%2C%20World%21%3C%2Fh1%3E' download='download.html'>下载download… 82 <!-- download.html --> 86 <h1>download test</h1> 116 console.log("will start a download."); 166 download: webview.WebDownloadItem = new webview.WebDownloadItem(); 176 console.log("will start a download."); [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/ |
H A D | js-apis-system-request.md | 133 ## request.download<sup>(deprecated)</sup> 135 download(options: DownloadRequestOptions): void 156 description: 'this is requeSystem download response', 161 console.info(' download fail data: ' + data + 'code: ' + code); 164 console.info(' download complete'); 169 request.download(downloadRequestOptions); 170 console.info('download start '); 172 console.info(' download err:' + err); 215 Listens for download task status. This API returns no value. 239 console.info(' download complete'); [all …]
|
H A D | js-apis-request.md | 926 ## request.download<sup>(deprecated)</sup> 975 ## request.download<sup>(deprecated)</sup> 1011 request.download({ url: 'https://xxxx/xxxxx.hap', 1086 Unsubscribes from download progress events. 1154 …o.<br>- **'complete'**: download task completion event.<br>- **'pause'**: download task pause even… 1201 Unsubscribes from download events. 1209 …m.<br>- **'complete'**: download task completion event.<br>- **'pause'**: download task pause even… 1332 Unsubscribes from download failure events. 2301 Defines the download task configuration. 2325 | downloadId | number |Yes| ID of the download task.| [all …]
|
/ohos5.0/docs/en/readme/ |
H A D | request.md | 5 …download subsystem provides upload and download capabilities for applications, including creating,… 10 **Figure 1** Architecture of the upload and download subsystem 13 </sup> 135 download(options: DownloadRequestOptions): void 156 description: 'this is requeSystem download response', 158 console.info(' download success, code:' + JSON.stringify(data)); 161 console.info(' download fail data: ' + data + 'code: ' + code); 164 console.info(' download complete'); 169 request.download(downloadRequestOptions); 170 console.info('download start '); 172 console.info(' download err:' + err); 239 console.info(' download complete'); [all …]
|
H A D | js-apis-request.md | 927 ## request.download<sup>(deprecated)</sup> 929 download(config: DownloadConfig): Promise<DownloadTask> 976 ## request.download<sup>(deprecated)</sup> 1012 request.download({ url: 'https://xxxx/xxxxx.hap', 2013 console.info('Succeeded in querying the download task.') 3739 description: 'Sample code for start the download task', 3814 description: 'Sample code for start the download task', 3880 description: 'Sample code for pause the download task', 3946 description: 'Sample code for pause the download task', 4152 description: 'Sample code for stop the download task', [all …]
|
/ohos5.0/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | napi_web_download_item.cpp | 31 namespace download { namespace 787 WebDownloadItem *download = (WebDownloadItem *)data; in JS_Deserialize() local 788 delete download; in JS_Deserialize() 896 download::DOWNLOAD_INTERRUPT_REASON_FILE_FAILED))), in ExportWebDownloadErrorCodeEnum() 907 download::DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE))), in ExportWebDownloadErrorCodeEnum() 935 download::DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED))), in ExportWebDownloadErrorCodeEnum() 941 download:: in ExportWebDownloadErrorCodeEnum() 987 download:: in ExportWebDownloadErrorCodeEnum() 1033 download:: in ExportWebDownloadErrorCodeEnum() 1040 download:: in ExportWebDownloadErrorCodeEnum() [all …]
|
/ohos5.0/base/request/request/test/unittest/common/napi/requestTest/ |
H A D | RequestJsunit.test.js | 68 request.download(downloadConfig, (err, data) => { 108 request.download(downloadConfig, (err, data) => { 142 request.download(downloadConfig, (err, data) => { 181 request.download(downloadConfig, (err, data) => { 221 request.download(downloadConfig, (err, data) => { 254 request.download(downloadConfig, (err, data) => { 281 request.download(downloadConfig, (err, data) => { 308 request.download(downloadConfig, (err, data) => { 336 request.download(downloadConfig, (err, data) => { 364 request.download(downloadConfig, (err, data) => { [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-request.md | 7 1. function download(context: BaseContext, config: DownloadConfig, callback: AsyncCallback<Download… 8 2. function download(context: BaseContext, config: DownloadConfig): Promise<DownloadTask>; 20 | ohos.request | request | function download(context: BaseContext, config: DownloadConfig, cal… 21 | ohos.request | request | function download(context: BaseContext, config: DownloadConfig): Pr… 28 以download为例,在新版本上需要使用downloadFile, 如下方式进行调用: 35 console.error('Failed to request the download. Cause: ' + JSON.stringify(err));
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/ |
H A D | changelogs-request.md | 7 1. function download(context: BaseContext, config: DownloadConfig, callback: AsyncCallback<Download… 8 2. function download(context: BaseContext, config: DownloadConfig): Promise<DownloadTask>; 20 | ohos.request | request | function download(context: BaseContext, config: DownloadConfig, cal… 21 | ohos.request | request | function download(context: BaseContext, config: DownloadConfig): Pr… 28 以download为例,在新版本上需要使用downloadFile, 如下方式进行调用: 35 console.error('Failed to request the download. Cause: ' + JSON.stringify(err));
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-basic-button.md | 20 …;<br/>- text:文本按钮,仅包含文本显示;<br/>- arc:弧形按钮,仅支持智能穿戴;<br/>- download:下载按钮,额外增加下载进度条功能。… 24 … | boolean | false | 否 | waiting状态,waiting为true时展现等待中转圈效果,位于文本左侧。类型为download时不生效。 | 70 类型为download时,支持如下方法: 84 <button class="button download" type="download" id="download-btn" 126 .download { 143 this.$element('download-btn').setProgress({ progress: this.count});
|
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/ |
H A D | _rdb___table_details.md | 6 Defines a struct for statistics of device-cloud upload and download tasks of a database table. 22 | [download](_r_d_b.md#download) | Statistics of the device-cloud download tasks.|
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-file-cloudsync.md | 98 console.info("download state:" + pg.state); 140 console.info("download state:" + pg.state); 183 console.info("download state:" + pg.state); 191 console.info("start download successfully"); 193 …console.error("start download failed with error message: " + err.message + ", error code: " + err.… 247 …console.error("start download failed with error message: " + err.message + ", error code: " + err.… 249 console.info("start download successfully"); 298 console.info("stop download successfully"); 300 …console.error("stop download failed with error message: " + err.message + ", error code: " + err.c… 343 …console.error("stop download failed with error message: " + err.message + ", error code: " + err.c… [all …]
|
/ohos5.0/docs/en/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-request.md | 7 1. function download(context: BaseContext, config: DownloadConfig, callback: AsyncCallback<Download… 8 2. function download(context: BaseContext, config: DownloadConfig): Promise<DownloadTask>; 20 | ohos.request | request | function download(context: BaseContext, config: DownloadConfig, cal… 21 | ohos.request | request | function download(context: BaseContext, config: DownloadConfig): Pr… 35 console.error('Failed to request the download. Cause: ' + JSON.stringify(err));
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.10.6/ |
H A D | changelogs-request.md | 8 1. function download(context: BaseContext, config: DownloadConfig, callback: AsyncCallback\<Downloa… 9 2. function download(context: BaseContext, config: DownloadConfig): Promise\<DownloadTask>; 21 | ohos.request | request | function download(context: BaseContext, config: DownloadConfig, cal… 22 | ohos.request | request | function download(context: BaseContext, config: DownloadConfig): Pr… 35 console.error('Failed to request the download. Cause: ' + JSON.stringify(err));
|
/ohos5.0/base/request/request/test/unittest/js_test/requestAgentTaskTest/entry/src/main/ets/test/ |
H A D | RequestOperateTask.test.ets | 71 url: 'https://gitee.com/tiga-ultraman/downloadTests/releases/download/v1.01/test.txt', 95 url: 'https://gitee.com/tiga-ultraman/downloadTests/releases/download/v1.01/test.txt', 122 url: 'https://gitee.com/tiga-ultraman/downloadTests/releases/download/v1.01/test.txt', 146 url: 'https://gitee.com/tiga-ultraman/downloadTests/releases/download/v1.01/test.txt', 173 url: 'https://gitee.com/tiga-ultraman/downloadTests/releases/download/v1.01/test.txt', 201 url: 'https://gitee.com/tiga-ultraman/downloadTests/releases/download/v1.01/test.txt', 228 url: 'https://gitee.com/tiga-ultraman/downloadTests/releases/download/v1.01/test.txt', 292 url: 'https://gitee.com/tiga-ultraman/downloadTests/releases/download/v1.01/test.txt', 321 url: 'https://gitee.com/tiga-ultraman/downloadTests/releases/download/v1.01/test.txt', 1133 url: 'https://gitee.com/chenzhixue/downloadTest/releases/download/v1.0/test1.txt', [all …]
|
/ohos5.0/docs/zh-cn/device-dev/quick-start/ |
H A D | quickstart-pkg-common-builderr.md | 174  203  232 
|
/ohos5.0/docs/en/application-dev/performance/ |
H A D | improve-file-upload-and-download-performance.md | 7 …gies for upload/download and network requests: data compression and resumable download. Both techn… 38  64  80  311 To implement resumable download, proceed as follows: 322 2. Create a download class. 330 // Background task download list. 336 3. Configure an agent and create a background download task. [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-basic-button.md | 7 The **\<button>** component includes capsule, circle, text, arc, and download buttons. 21 …This value is applicable to wearables only.<br>- **download**: download button, with an extra down… 25 …animation is displayed on the left of the text. This attribute does not work for download buttons.| 71 When the button type is **download**, the following methods are supported. 75 | setProgress | { progress:percent } | Progress bar of the download button. The value ranges from 0… 85 <button class="button download" type="download" id="download-btn" 127 .download { 144 this.$element('download-btn').setProgress({ progress: this.count});
|
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/ |
H A D | global-configuration-guide.md | 72 async function download() { 81 console.info(`User[${await config.getUser()}] start download ...`) 153 Text("download") 161 let ret = await taskpool.execute(download) 162 this.downloadResult = ret ? "download success" : "download fail";
|