Language

DownloadManager.Query.SetFilterByStatus(DownloadStatus) Method

Definition

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

[Android.Runtime.Register("setFilterByStatus", "(I)Landroid/app/DownloadManager$Query;", "GetSetFilterByStatus_IHandler")]
public virtual Android.App.DownloadManager.Query? SetFilterByStatus(Android.App.DownloadStatus flags);
[<Android.Runtime.Register("setFilterByStatus", "(I)Landroid/app/DownloadManager$Query;", "GetSetFilterByStatus_IHandler")>]
abstract member SetFilterByStatus : Android.App.DownloadStatus -> Android.App.DownloadManager.Query
override this.SetFilterByStatus : Android.App.DownloadStatus -> Android.App.DownloadManager.Query

Parameters

flags
DownloadStatus

int: any combination of the STATUS_* bit flags

Returns

this object

Attributes

Remarks

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

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.DownloadManager.Query.setFilterByStatus.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to