<td>void <a href="#DownloadCallback::onprogress">onprogress</a> (long downloadId, unsigned long long receivedSize, unsigned long long totalSize)<br>
void <a href="#DownloadCallback::onpaused">onpaused</a> (long downloadId)<br>
void <a href="#DownloadCallback::oncanceled">oncanceled</a> (long downloadId)<br>
- void <a href="#DownloadCallback::oncompleted">oncompleted</a> (long downloadId, DOMString fullPath)<br>
+ void <a href="#DownloadCallback::oncompleted">oncompleted</a> (long downloadId, DOMString path)<br>
void <a href="#DownloadCallback::onfailed">onfailed</a> (long downloadId, <a href="tizen.html#WebAPIError">WebAPIError</a> error)</td>
</tr>
</tbody>
oncanceled: function(id) {
console.log('Canceled with id: ' + id);
},
- oncompleted: function(id, fullPath) {
- console.log('Completed with id: ' + id + ', full path: ' + fullPath);
+ oncompleted: function(id, path) {
+ console.log('Completed with id: ' + id + ', path: ' + path);
},
onfailed: function(id, error) {
console.log('Failed with id: ' + id + ', error name: ' + error.name);
void oncanceled(long downloadId);
- void oncompleted(long downloadId, DOMString fullPath);
+ void oncompleted(long downloadId, DOMString path);
void onfailed(long downloadId, <a href="tizen.html#WebAPIError">WebAPIError</a> error);
};</pre>
</dt>
<dd>
<div class="brief">
- Called when the download operation is completed with the final full path.
+ Called when the download operation is completed with the final full path or virtual path.
If the same file name already exists in the destination, it is changed according to the platform policy and delivered in this callback.
</div>
-<div class="synopsis"><pre class="signature prettyprint">void oncompleted(long downloadId, DOMString fullPath);
+<div class="synopsis"><pre class="signature prettyprint">void oncompleted(long downloadId, DOMString path);
</pre></div>
<p><span class="version">
Since: </span>
<p><span class="param">Parameters:</span></p>
<ul>
<li class="param">
-<span class="name">downloadId</span>:
+<span class="name">downloadId</span>:
The ID of the corresponding download operation.
</li>
<li class="param">
-<span class="name">fullPath</span>:
- The final full path for the downloaded file.
+<span class="name">path</span>:
+ The final full path or virtual path for the downloaded file.
</li>
</ul>
</div>
void oncanceled(long downloadId);
- void oncompleted(long downloadId, DOMString fullPath);
+ void oncompleted(long downloadId, DOMString path);
void onfailed(long downloadId, <a href="tizen.html#WebAPIError">WebAPIError</a> error);
};
<td>void <a href="#DownloadCallback::onprogress">onprogress</a> (long downloadId, unsigned long long receivedSize, unsigned long long totalSize)<br>
void <a href="#DownloadCallback::onpaused">onpaused</a> (long downloadId)<br>
void <a href="#DownloadCallback::oncanceled">oncanceled</a> (long downloadId)<br>
- void <a href="#DownloadCallback::oncompleted">oncompleted</a> (long downloadId, DOMString fullPath)<br>
+ void <a href="#DownloadCallback::oncompleted">oncompleted</a> (long downloadId, DOMString path)<br>
void <a href="#DownloadCallback::onfailed">onfailed</a> (long downloadId, <a href="tizen.html#WebAPIError">WebAPIError</a> error)</td>
</tr>
</tbody>
oncanceled: function(id) {
console.log('Canceled with id: ' + id);
},
- oncompleted: function(id, fullPath) {
- console.log('Completed with id: ' + id + ', full path: ' + fullPath);
+ oncompleted: function(id, path) {
+ console.log('Completed with id: ' + id + ', path: ' + path);
},
onfailed: function(id, error) {
console.log('Failed with id: ' + id + ', error name: ' + error.name);
void oncanceled(long downloadId);
- void oncompleted(long downloadId, DOMString fullPath);
+ void oncompleted(long downloadId, DOMString path);
void onfailed(long downloadId, <a href="tizen.html#WebAPIError">WebAPIError</a> error);
};</pre>
</dt>
<dd>
<div class="brief">
- Called when the download operation is completed with the final full path.
+ Called when the download operation is completed with the final full path or virtual path.
If the same file name already exists in the destination, it is changed according to the platform policy and delivered in this callback.
</div>
-<div class="synopsis"><pre class="signature prettyprint">void oncompleted(long downloadId, DOMString fullPath);
+<div class="synopsis"><pre class="signature prettyprint">void oncompleted(long downloadId, DOMString path);
</pre></div>
<p><span class="version">
Since: </span>
The ID of the corresponding download operation.
</li>
<li class="param">
-<span class="name">fullPath</span>:
- The final full path for the downloaded file.
+<span class="name">path</span>:
+ The final full path or virtual path for the downloaded file.
</li>
</ul>
</div>
void oncanceled(long downloadId);
- void oncompleted(long downloadId, DOMString fullPath);
+ void oncompleted(long downloadId, DOMString path);
void onfailed(long downloadId, <a href="tizen.html#WebAPIError">WebAPIError</a> error);
};