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