NotificationImportance Enum

Definition

public enum NotificationImportance
type NotificationImportance = 
Inheritance
NotificationImportance

Fields

Name Value Description
Unspecified -1000

Value signifying that the user has not expressed an importance.

None 0

A notification with no importance: does not show in the shade.

Min 1

Min notification importance: only shows in the shade, below the fold.

Low 2

Low notification importance: Shows in the shade, and potentially in the status bar (see shouldHideSilentStatusBarIcons()), but is not audibly intrusive.

Default 3

Default notification importance: shows everywhere, makes noise, but does not visually intrude.

High 4

Higher notification importance: shows everywhere, makes noise and peeks.

Max 5

Higher notification importance: shows everywhere, makes noise and peeks.

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