Megosztás a következőn keresztül:


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

Name Value Description
ShowLights 1
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.

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.

OnlyAlertOnce 8
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.

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.

ForegroundService 64

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

HighPriority 128

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

LocalOnly 256
GroupSummary 512
Bubble 4096

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