Skip to main content

AndroidImportance

Importance of an Android notification channel on Android 8.0 and later.

Controls how prominently notifications interrupt the user. After a channel is created, its importance is controlled by the user in system settings; posting another notification does not override that choice. Use AndroidPriority for Android 7.1 and earlier.

Inherits: enum.Enum

Properties

  • DEFAULT - Uses normal prominence, including sound when enabled for the channel.
  • HIGH - Uses high prominence, including sound and a heads-up display when allowed.
  • LOW - Shows notifications without sound.
  • MAX - Maps to Android's maximum-importance constant.
  • MIN - Shows notifications quietly, with minimal prominence and no status-bar icon.
  • NONE - Disables notifications from the channel.
  • UNSPECIFIED - Sentinel indicating that no importance has been specified.

Properties​

DEFAULTclass-attributeinstance-attribute​

Uses normal prominence, including sound when enabled for the channel.

HIGHclass-attributeinstance-attribute​

Uses high prominence, including sound and a heads-up display when allowed.

LOWclass-attributeinstance-attribute​

Shows notifications without sound.

MAXclass-attributeinstance-attribute​

Maps to Android's maximum-importance constant.

Android documents this level as unused; use HIGH for urgent channels.

MINclass-attributeinstance-attribute​

Shows notifications quietly, with minimal prominence and no status-bar icon.

NONEclass-attributeinstance-attribute​

Disables notifications from the channel.

UNSPECIFIEDclass-attributeinstance-attribute​

Sentinel indicating that no importance has been specified.

Maps to Android's IMPORTANCE_UNSPECIFIED. It is not an importance level for creating a new channel; choose an explicit level instead.