Language

DownloadManager.Request.SetVisibleInDownloadsUi(Boolean) Method

Definition

This method was deprecated in API level 29.

[Android.Runtime.Register("setVisibleInDownloadsUi", "(Z)Landroid/app/DownloadManager$Request;", "GetSetVisibleInDownloadsUi_ZHandler")]
public virtual Android.App.DownloadManager.Request? SetVisibleInDownloadsUi(bool isVisible);
[<Android.Runtime.Register("setVisibleInDownloadsUi", "(Z)Landroid/app/DownloadManager$Request;", "GetSetVisibleInDownloadsUi_ZHandler")>]
abstract member SetVisibleInDownloadsUi : bool -> Android.App.DownloadManager.Request
override this.SetVisibleInDownloadsUi : bool -> Android.App.DownloadManager.Request

Parameters

isVisible
Boolean

boolean: whether to display this download in the Downloads UI

Returns

this object

Attributes

Remarks

This method was deprecated in API level 29. Starting in Q, this value is ignored. Only files downloaded to public Downloads directory (as returned by Environment.getExternalStoragePublicDirectory(String) with Environment.DIRECTORY_DOWNLOADS) will be visible in system's Downloads UI and the rest will not be visible. All non-visible downloads that are not modified in the last 7 days will be deleted during idle runs. (e.g. Context.getExternalFilesDir(String)) will not be visible.

Set whether this download should be displayed in the system's Downloads UI. True by default.

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.Request.setVisibleInDownloadsUi.

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