DownloadManager.Request.SetShowRunningNotification(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
This method was deprecated in API level 15.
[Android.Runtime.Register("setShowRunningNotification", "(Z)Landroid/app/DownloadManager$Request;", "GetSetShowRunningNotification_ZHandler")]
[System.Obsolete("deprecated")]
public virtual Android.App.DownloadManager.Request? SetShowRunningNotification(bool show);
[<Android.Runtime.Register("setShowRunningNotification", "(Z)Landroid/app/DownloadManager$Request;", "GetSetShowRunningNotification_ZHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetShowRunningNotification : bool -> Android.App.DownloadManager.Request
override this.SetShowRunningNotification : bool -> Android.App.DownloadManager.Request
Parameters
- show
- Boolean
boolean: whether the download manager should show a notification for this download.
Returns
this object
- Attributes
Remarks
This method was deprecated in API level 15. use setNotificationVisibility(int)
Control whether a system notification is posted by the download manager while this download is running. If enabled, the download manager posts notifications about downloads through the system NotificationManager. By default, a notification is shown. If set to false, this requires the permission android.permission.DOWNLOAD_WITHOUT_NOTIFICATION.
Android reference for android.app.DownloadManager.Request.setShowRunningNotification.
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.