Partager via


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 setForegroundServiceBehavior() 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 setForegroundServiceBehavior() 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.

Documentation Java pour android.app.Notification.FOREGROUND_SERVICE_IMMEDIATE.

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

S’applique à