NotificationFlags Enum

Definition

Enumerates values returned by several types.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum NotificationFlags
[<System.Flags>]
type NotificationFlags = 
Inheritance
NotificationFlags
Attributes

Fields

AutoCancel 16

Bit to be bitwise-ored into the Flagsfield that should be set if the notification should be canceled when it is clicked by the user.

Bubble 4096
ForegroundService 64

Bit to be bitwise-ored into the Flagsfield that should be set if this notification represents a currently running service.

GroupSummary 512
HighPriority 128

Obsolete flag indicating high-priority notifications; use the priority field instead.

Insistent 4

Bit to be bitwise-ored into the Flagsfield that if set, the audio will be repeated until the notification is cancelled or the notification window is opened.

LocalOnly 256
NoClear 32

Bit to be bitwise-ored into the Flagsfield that should be set if the notification should not be canceled when the user clicks the Clear all button.

OngoingEvent 2

Bit to be bitwise-ored into the Flagsfield that should be set if this notification is in reference to something that is ongoing, like a phone call.

OnlyAlertOnce 8
ShowLights 1

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