Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WL.getCurrentBackgroundDownloads function

Gets current pending background download operations.

Parameters

This function has no parameters.

Return value

Returns a Promise object. This object allows you to handle a succeeded event where you will get a list of current pending download operations.

Remarks

You can invoke an attach() method on each operation. The attach() method returns a Promise object that allow you to handle corresponding onSuccess, onFailure, and onProgress event for that operation.

Your app may be terminated when the background uploads or background downloads are still running. If that happens, use the WL.getCurrentBackgroundDownloads or WL.getCurrentBackgroundUploads methods to:

  • Retrieve those operations and attach to them in order to let the operations finish, and receive corresponding events.
  • Clean up pending downloads and uploads to free resources.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Header

N/A

Library

Wl.js

DLL

N/A

 

 

Show:
© 2014 Microsoft