Langue

Notification.ForegroundServiceImmediate Champ

Définition

Attention

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

Si la notification associée au démarrage d’un service de premier plan a été créée à l’aide de Notification.Builder.setForegroundServiceBehavior(int) avec ce comportement, l’affichage de la notification est immédiat même si le comportement par défaut consiste à différer la visibilité pendant une courte période.

[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

Valeur de champ

Value = 1

Implémente

Attributs

Remarques

Si la notification associée au démarrage d’un service de premier plan a été créée à l’aide de Notification.Builder.setForegroundServiceBehavior(int) avec ce comportement, l’affichage de la notification est immédiat même si le comportement par défaut consiste à différer la visibilité pendant une courte période. La valeur est l’une des valeurs suivantes : FOREGROUND_SERVICE_DEFAULT FOREGROUND_SERVICE_IMMEDIATE FOREGROUND_SERVICE_DEFERRED

Référence Android pour android.app.Notification.FOREGROUND_SERVICE_IMMEDIATE.

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 à