Most visited

Recently visited

Added in API level 9

DownloadManager.Query

public static class DownloadManager.Query
extends Object

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


该类可用于过滤下载管理器查询。

Summary

Public constructors

DownloadManager.Query()

Public methods

DownloadManager.Query setFilterById(long... ids)

仅包含具有给定ID的下载。

DownloadManager.Query setFilterByStatus(int flags)

仅包含状态与任何给定状态标志匹配的下载。

Inherited methods

From class java.lang.Object

Public constructors

DownloadManager.Query

Added in API level 9
DownloadManager.Query ()

Public methods

setFilterById

Added in API level 9
DownloadManager.Query setFilterById (long... ids)

仅包含具有给定ID的下载。

Parameters
ids long
Returns
DownloadManager.Query this object

setFilterByStatus

Added in API level 9
DownloadManager.Query setFilterByStatus (int flags)

仅包含状态与任何给定状态标志匹配的下载。

Parameters
flags int: any combination of the STATUS_* bit flags
Returns
DownloadManager.Query this object

Hooray!