Lenguaje

DownloadManager.Request.SetShowRunningNotification(Boolean) Método

Definición

Precaución

deprecated

Este método está en desuso en el nivel de 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

Parámetros

show
Boolean

boolean: si el administrador de descargas debe mostrar una notificación para esta descarga.

Devoluciones

este objeto

Atributos

Comentarios

Este método está en desuso en el nivel de API 15. use setNotificationVisibility(int)

Controlar si el administrador de descargas publica una notificación del sistema mientras se ejecuta esta descarga. Si está habilitado, el administrador de descargas publica notificaciones sobre las descargas a través del sistema NotificationManager. De forma predeterminada, se muestra una notificación. Si se establece en false, esto requiere el permiso android.permission.DOWNLOAD_WITHOUT_NOTIFICATION.

Referencia de Android para android.app.DownloadManager.Request.setShowRunningNotification.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a