Compartilhar via


Notification.ForegroundServiceDefault Field

Definition

Caution

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

If the Notification associated with starting a foreground service has been built using setForegroundServiceBehavior() with this behavior, display of the notification will usually be suppressed for a short time to avoid visual disturbances to the user.

[Android.Runtime.Register("FOREGROUND_SERVICE_DEFAULT", 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 ForegroundServiceDefault = 0;
[<Android.Runtime.Register("FOREGROUND_SERVICE_DEFAULT", 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 ForegroundServiceDefault : Android.App.NotificationForegroundService

Field Value

Value = 0

Implements

Attributes

Remarks

If the Notification associated with starting a foreground service has been built using setForegroundServiceBehavior() with this behavior, display of the notification will usually be suppressed for a short time to avoid visual disturbances to the user.

Java documentation for android.app.Notification.FOREGROUND_SERVICE_DEFAULT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to