Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static class

DownloadManager.Query

extends Object
java.lang.Object
   ↳ android.app.DownloadManager.Query

Class Overview

This class may be used to filter download manager queries.

Summary

Public Constructors
DownloadManager.Query ()
Public Methods
DownloadManager.Query setFilterById (long... ids)
Include only the downloads with the given IDs.
DownloadManager.Query setFilterByStatus (int flags)
Include only downloads with status matching any the given status flags.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DownloadManager.Query ()

Added in API level 9

Public Methods

public DownloadManager.Query setFilterById (long... ids)

Added in API level 9

Include only the downloads with the given IDs.

Returns
  • this object

public DownloadManager.Query setFilterByStatus (int flags)

Added in API level 9

Include only downloads with status matching any the given status flags.

Parameters
flags any combination of the STATUS_* bit flags
Returns
  • this object