Lenguaje

Notification.ForegroundServiceImmediate Campo

Definición

Precaución

This constant will be removed in the future version. Use Android.App.NotificationForegroundService enum directly instead of this field.

Si la notificación asociada al inicio de un servicio en primer plano se ha compilado mediante Notification.Builder.setForegroundServiceBehavior(int) con este comportamiento, la presentación de la notificación será inmediata incluso si el comportamiento predeterminado sería aplazar la visibilidad durante un breve tiempo.

[Android.Runtime.Register("FOREGROUND_SERVICE_IMMEDIATE", ApiSince=31)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.NotificationForegroundService enum directly instead of this field.", true)]
public const Android.App.NotificationForegroundService ForegroundServiceImmediate = 1;
[<Android.Runtime.Register("FOREGROUND_SERVICE_IMMEDIATE", ApiSince=31)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.NotificationForegroundService enum directly instead of this field.", true)>]
val mutable ForegroundServiceImmediate : Android.App.NotificationForegroundService

Valor de campo

Value = 1

Implementaciones

Atributos

Comentarios

Si la notificación asociada al inicio de un servicio en primer plano se ha compilado mediante Notification.Builder.setForegroundServiceBehavior(int) con este comportamiento, la presentación de la notificación será inmediata incluso si el comportamiento predeterminado sería aplazar la visibilidad durante un breve tiempo. El valor es uno de los siguientes: FOREGROUND_SERVICE_DEFAULT FOREGROUND_SERVICE_IMMEDIATE FOREGROUND_SERVICE_DEFERRED

Referencia de Android para android.app.Notification.FOREGROUND_SERVICE_IMMEDIATE.

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