to top
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

? Examples
DownloadManager.Query()
Public Methods

? Examples
DownloadManager.Query setFilterById(long... ids)
Include only the downloads with the given IDs.

? Examples
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
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.