Taal

DownloadManager.Request.SetVisibleInDownloadsUi(Boolean) Method

Definition

On Android 5.0 through Android 9, sets whether this download should be displayed in the system's Downloads UI.

[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

On Android 5.0 through Android 9, whether to display this download in the Downloads UI. Ignored on Android 10 and later.

Returns

this object

Attributes

Remarks

This method was deprecated in API level 29. On Android 10 and later, this value is ignored. Only files downloaded to the public Downloads directory (as returned by GetExternalStoragePublicDirectory(String) with DirectoryDownloads) are visible in the system's Downloads UI. During idle maintenance, the system can remove finished non-visible downloads, whether successful or failed, that have not been modified for at least 7 days.

On Android 5.0 through Android 9, this value determines whether the download is displayed in the system's Downloads UI. It is true by default.

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