Lenguaje

Notification.ForegroundServiceDeferred 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 normalmente se suprimirá durante un breve tiempo para evitar alteraciones visuales al usuario.

[Android.Runtime.Register("FOREGROUND_SERVICE_DEFERRED", 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 ForegroundServiceDeferred = 2;
[<Android.Runtime.Register("FOREGROUND_SERVICE_DEFERRED", 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 ForegroundServiceDeferred : Android.App.NotificationForegroundService

Valor de campo

Value = 2

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 normalmente se suprimirá durante un breve tiempo para evitar alteraciones visuales al usuario. 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_DEFERRED.

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