Android.App.DownloadManager.Request.SetNotificationVisibility Method
Control whether a system notification is posted by the download manager while this download is running or when it is completed.

Syntax

[Android.Runtime.Register("setNotificationVisibility", "(I)Landroid/app/DownloadManager$Request;", "GetSetNotificationVisibility_IHandler")]
public virtual DownloadManager.Request SetNotificationVisibility ([Android.Runtime.GeneratedEnum] DownloadVisibility visibility)

Parameters

visibility
the visibility setting value

Returns

Documentation for this section has not yet been entered.

Remarks

Control whether a system notification is posted by the download manager while this download is running or when it is completed. If enabled, the download manager posts notifications about downloads through the system Android.App.NotificationManager. By default, a notification is shown only when the download is in progress.

It can take the following values: Android.App.DownloadManager.Request.VisibilityHidden, Android.App.DownloadManager.Request.VisibilityVisible, Android.App.DownloadManager.Request.VisibilityVisibleNotifyCompleted.

If set to Android.App.DownloadManager.Request.VisibilityHidden, this requires the permission android.permission.DOWNLOAD_WITHOUT_NOTIFICATION.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11