NotificationForegroundService Enum

Definition

public enum NotificationForegroundService
type NotificationForegroundService = 
Inheritance
NotificationForegroundService

Fields

Name Value Description
Default 0

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

Immediate 1

If the Notification associated with starting a foreground service has been built using Notification.Builder.setForegroundServiceBehavior(int) with this behavior, display of the notification will be immediate even if the default behavior would be to defer visibility for a short time.

Deferred 2

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

Remarks

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