Langue

DownloadManager.Request.SetShowRunningNotification(Boolean) Méthode

Définition

Attention

deprecated

Cette méthode a été déconseillée au niveau de l’API 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

Paramètres

show
Boolean

booléen : indique si le gestionnaire de téléchargement doit afficher une notification pour ce téléchargement.

Retours

cet objet

Attributs

Remarques

Cette méthode a été déconseillée au niveau de l’API 15. utiliser setNotificationVisibility(int)

Déterminez si une notification système est publiée par le gestionnaire de téléchargement pendant l’exécution de ce téléchargement. Si cette option est activée, le gestionnaire de téléchargement publie des notifications sur les téléchargements via le système NotificationManager. Par défaut, une notification s’affiche. Si la valeur est false, cela nécessite l’autorisation android.permission.DOWNLOAD_WITHOUT_NOTIFICATION.

Référence Android pour android.app.DownloadManager.Request.setShowRunningNotification.

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à