# NotificationCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/app/NotificationCompat.java+class:androidx.core.app.NotificationCompat) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
public class NotificationCompat
```

<br />

*** ** * ** ***

Helper for accessing features in `https://developer.android.com/reference/android/app/Notification.html`.

## Summary

| ### Nested types |
|---|
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action` Structure to encapsulate a named action that can be shown as part of this notification. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action.Builder` Builder class for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action` objects. |
| `public interface https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action.Extender` Extender interface for use with `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action.Builder#extend(androidx.core.app.NotificationCompat.Action.Extender)`. |
| `@https://developer.android.com/reference/androidx/annotation/IntDef(value = ) @https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE) public annotation https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action.SemanticAction` Provides meaning to an `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action` that hints at what the associated `https://developer.android.com/reference/android/app/PendingIntent.html` will do. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action.WearableExtender implements https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action.Extender` Wearable extender for notification actions. |
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` Helper class for generating large-format notifications that include a large image attachment. |
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigTextStyle extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` Helper class for generating large-format notifications that include a lot of text. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.BubbleMetadata` Encapsulates the information needed to display a notification as a bubble. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.BubbleMetadata.Builder` Builder to construct a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BubbleMetadata` object. |
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder` Builder class for `https://developer.android.com/reference/androidx/core/app/NotificationCompat` objects. |
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.CallStyle extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` Helper class for generating large-format notifications that include a caller and required actions, and indicate an incoming call. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender implements https://developer.android.com/reference/androidx/core/app/NotificationCompat.Extender` Helper class to add Android Auto extensions to notifications. |
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation` **This class is deprecated.** `https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation` is no longer supported. <br /> |
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation.Builder` **This class is deprecated.** Deprecated in Java |
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.DecoratedCustomViewStyle extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` Notification style for custom views that are decorated by the system. |
| `public interface https://developer.android.com/reference/androidx/core/app/NotificationCompat.Extender` Extender interface for use with `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#extend(androidx.core.app.NotificationCompat.Extender)`. |
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.InboxStyle extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` Helper class for generating large-format notifications that include a list of (up to 5) strings. |
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` Helper class for generating large-format notifications that include multiple back-and-forth messages of varying types between any number of people. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` |
| `@https://developer.android.com/reference/androidx/annotation/RequiresApi(value = 26) public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric` A metric, used with `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MetricStyle`, and which has a value and a label. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedDate extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.MetricValue` A metric value for showing a date. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedFloat extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.MetricValue` Metric corresponding to a floating point value. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedInt extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.MetricValue` Metric corresponding to an integer value. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedText extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.MetricValue` Metric corresponding to a text value. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedTime extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.MetricValue` A metric value for showing a clock time. |
| `public abstract class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.MetricValue` A superclass for the various value types used by the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric` class. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.TimeDifference extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.MetricValue` This represents a timer, a stopwatch, or a countdown to an event. |
| `@https://developer.android.com/reference/androidx/annotation/RequiresApi(value = 26) public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.MetricStyle extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` A notification style which shows up to 3 metrics when expanded. |
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` Helper class for generating large-format notifications that display progress to the user with a highly customizable progress bar with segments, points, a custom tracker icon, and custom icons at the start and end of the progress bar. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point` A point within the progress bar, defining its position and color. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Segment` A segment of the progress bar, which defines its length and color. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProjectedExtender implements https://developer.android.com/reference/androidx/core/app/NotificationCompat.Extender` Helper class to add projection-specific extensions to a notification. |
| `public abstract class https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` An object that can apply a rich notification style to a `https://developer.android.com/reference/android/app/Notification.Builder.html` object. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.TvExtender implements https://developer.android.com/reference/androidx/core/app/NotificationCompat.Extender` Helper class to add Android TV extensions to notifications. |
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.WearableExtender implements https://developer.android.com/reference/androidx/core/app/NotificationCompat.Extender` Helper class to add wearable extensions to notifications. |

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#BADGE_ICON_LARGE() = 2` If this notification is being shown as a badge, use the icon provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setLargeIcon(android.graphics.Bitmap)` to represent this notification. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#BADGE_ICON_NONE() = 0` If this notification is being shown as a badge, always show as a number. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#BADGE_ICON_SMALL() = 1` If this notification is being shown as a badge, use the icon provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSmallIcon(int)` to represent this notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_ALARM() = "alarm"` Notification category: alarm or timer. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_CALL() = "call"` Notification category: incoming call (voice or video) or similar synchronous communication request. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_EMAIL() = "email"` Notification category: asynchronous bulk message (email). |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_ERROR() = "err"` Notification category: error in background operation or authentication status. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_EVENT() = "event"` Notification category: calendar event. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_LOCATION_SHARING() = "location_sharing"` Notification category: temporarily sharing location. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_MESSAGE() = "msg"` Notification category: incoming direct message (SMS, instant message, etc.). |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_MISSED_CALL() = "missed_call"` Notification category: missed call. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_NAVIGATION() = "navigation"` Notification category: map turn-by-turn navigation. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_PROGRESS() = "progress"` Notification category: progress of a long-running background operation. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_PROMO() = "promo"` Notification category: promotion or advertisement. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_RECOMMENDATION() = "recommendation"` Notification category: a specific, timely recommendation for a single thing. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_REMINDER() = "reminder"` Notification category: user-scheduled reminder. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_SERVICE() = "service"` Notification category: indication of running background service. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_SOCIAL() = "social"` Notification category: social network or sharing update. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_STATUS() = "status"` Notification category: ongoing information about device or contextual status. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_STOPWATCH() = "stopwatch"` Notification category: running stopwatch. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_SYSTEM() = "sys"` Notification category: system or device status update. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_TRANSPORT() = "transport"` Notification category: media transport control for playback. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_VOICEMAIL() = "voicemail"` Notification category: voicemail. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#CATEGORY_WORKOUT() = "workout"` Notification category: tracking a user's workout. |
| `static final @https://developer.android.com/reference/androidx/annotation/ColorInt int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#COLOR_DEFAULT() = 0` Value of `https://developer.android.com/reference/android/app/Notification.html#color` equal to 0 (also known as `https://developer.android.com/reference/android/graphics/Color.html#TRANSPARENT`), telling the system not to decorate this notification with any special color but instead use default colors when presenting this notification. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#DEFAULT_ALL() = -1` Use all default values (where applicable). |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#DEFAULT_LIGHTS() = 4` Use the default notification lights. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#DEFAULT_SOUND() = 1` Use the default notification sound. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#DEFAULT_VIBRATE() = 2` Use the default notification vibrate. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_ANSWER_COLOR() = "android.answerColor"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the color used as a hint for the Answer action button of a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_ANSWER_INTENT() = "android.answerIntent"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the intent to be sent when the users answers a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_AUDIO_CONTENTS_URI() = "android.audioContents"` Keys into the `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` Bundle: the audio contents of this notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_BACKGROUND_IMAGE_URI() = "android.backgroundImageUri"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: A `https://developer.android.com/reference/android/content/ContentUris.html` pointing to an image that can be displayed in the background when the notification is selected. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_BIG_TEXT() = "android.bigText"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the longer text shown in the big form of a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigTextStyle` notification, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigTextStyle#bigText(java.lang.CharSequence)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_CALL_IS_VIDEO() = "android.callIsVideo"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification is for a call that will activate video when answered. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_CALL_PERSON() = "android.callPerson"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the person to be displayed as calling for the `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_CALL_PERSON_COMPAT() = "android.callPersonCompat"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the person to be displayed as calling for the `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification, for Android versions before the `https://developer.android.com/reference/androidx/core/app/Person` class was introduced. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_CALL_TYPE() = "android.callType"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the type of call represented by the `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_CHANNEL_GROUP_ID() = "android.intent.extra.CHANNEL_GROUP_ID"` Optional extra for `https://developer.android.com/reference/androidx/core/app/NotificationCompat#INTENT_CATEGORY_NOTIFICATION_PREFERENCES()`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_CHANNEL_ID() = "android.intent.extra.CHANNEL_ID"` Optional extra for `https://developer.android.com/reference/androidx/core/app/NotificationCompat#INTENT_CATEGORY_NOTIFICATION_PREFERENCES()`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_CHRONOMETER_COUNT_DOWN() = "android.chronometerCountDown"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the chronometer set on the notification should count down instead of counting up. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_COLORIZED() = "android.colorized"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the notification should be colorized as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setColorized(boolean)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_COMPACT_ACTIONS() = "android.compactActions"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the indices of actions to be shown in the compact view, as supplied to (e.g.) `https://developer.android.com/reference/android/app/Notification.MediaStyle.html#setShowActionsInCompactView(int...)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_COMPAT_TEMPLATE() = "androidx.core.app.extra.COMPAT_TEMPLATE"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: A string representing the name of the specific `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` used to create this notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_CONVERSATION_TITLE() = "android.conversationTitle"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: a `https://developer.android.com/reference/java/lang/String.html` to be displayed as the title to a conversation represented by a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_DECLINE_COLOR() = "android.declineColor"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the color used as a hint for the Decline or Hang Up action button of a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_DECLINE_INTENT() = "android.declineIntent"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the intent to be sent when the users declines a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_HANG_UP_INTENT() = "android.hangUpIntent"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the intent to be sent when the users hangs up a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_HIDDEN_CONVERSATION_TITLE() = "android.hiddenConversationTitle"` Key for compat's `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getConversationTitle()`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_HISTORIC_MESSAGES() = "android.messages.historic"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: an array of `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addHistoricMessage(androidx.core.app.NotificationCompat.MessagingStyle.Message)``https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` bundles provided by a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_INFO_TEXT() = "android.infoText"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a small piece of additional text as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentInfo(java.lang.CharSequence)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_IS_GROUP_CONVERSATION() = "android.isGroupConversation"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` notification represents a group conversation. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_LARGE_ICON() = "android.largeIcon"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a bitmap to be used instead of the small icon when showing the notification payload, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setLargeIcon(android.graphics.Bitmap)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_LARGE_ICON_BIG() = "android.largeIcon.big"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a bitmap to be used instead of the one from `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setLargeIcon(android.graphics.Bitmap)` when the notification is shown in its expanded form, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#bigLargeIcon(android.graphics.Bitmap)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_MEDIA_SESSION() = "android.mediaSession"` Notification key: A `https://developer.android.com/reference/android/media/session/MediaSession.Token.html` associated with a `https://developer.android.com/reference/android/app/Notification.MediaStyle.html` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_MESSAGES() = "android.messages"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: an array of `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` bundles provided by a `https://developer.android.com/reference/android/app/Notification.MessagingStyle.html` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_MESSAGING_STYLE_USER() = "android.messagingStyleUser"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the person to display for all messages sent by the user, including direct replies to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` notifications. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_NOTIFICATION_ID() = "android.intent.extra.NOTIFICATION_ID"` Optional extra for `https://developer.android.com/reference/androidx/core/app/NotificationCompat#INTENT_CATEGORY_NOTIFICATION_PREFERENCES()`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_NOTIFICATION_TAG() = "android.intent.extra.NOTIFICATION_TAG"` Optional extra for `https://developer.android.com/reference/androidx/core/app/NotificationCompat#INTENT_CATEGORY_NOTIFICATION_PREFERENCES()`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PEOPLE() = "android.people"` **This field is deprecated.** the actual objects are now in `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PEOPLE_LIST()` <br /> |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PEOPLE_LIST() = "android.people.list"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: : An arrayList of `https://developer.android.com/reference/androidx/core/app/Person` objects containing the people that this notification relates to, each of which was supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#addPerson(androidx.core.app.Person)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PICTURE() = "android.picture"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a bitmap to be shown in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle` expanded notifications, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#bigPicture(android.graphics.Bitmap)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PICTURE_CONTENT_DESCRIPTION() = "android.pictureContentDescription"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a content description of the big picture supplied from `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#bigPicture(android.graphics.Bitmap)`, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#setContentDescription(java.lang.CharSequence)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PICTURE_ICON() = "android.pictureIcon"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is an `https://developer.android.com/reference/android/graphics/drawable/Icon.html` of an image to be shown in `https://developer.android.com/reference/android/app/Notification.BigPictureStyle.html` expanded notifications, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#bigPicture(android.graphics.drawable.Icon)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PREFER_SMALL_ICON() = "android.app.preferSmallIcon"` extras key: requests that the notification card show the small icon instead of the launcher app icon. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PROGRESS() = "android.progress"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the progress value supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setProgress(int,int,boolean)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PROGRESS_END_ICON() = "android.progressEndIcon"` extras key: this is an `https://developer.android.com/reference/androidx/core/graphics/drawable/IconCompat` of an image to be shown at the end of the progress bar in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle`, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setProgressEndIcon(androidx.core.graphics.drawable.IconCompat)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PROGRESS_INDETERMINATE() = "android.progressIndeterminate"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the progress bar is indeterminate, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setProgress(int,int,boolean)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PROGRESS_MAX() = "android.progressMax"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the maximum value supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setProgress(int,int,boolean)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PROGRESS_POINTS() = "android.progressPoints"` extras key: an arraylist of `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point` bundles provided by a `https://developer.android.com/reference/android/app/Notification.ProgressStyle.html` notification as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setProgressPoints(java.util.List<androidx.core.app.NotificationCompat.ProgressStyle.Point>)` or `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#addProgressPoint(androidx.core.app.NotificationCompat.ProgressStyle.Point)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PROGRESS_SEGMENTS() = "android.progressSegments"` extras key: an arraylist of `https://developer.android.com/reference/android/app/Notification.ProgressStyle.Segment.html` bundles provided by a `https://developer.android.com/reference/android/app/Notification.ProgressStyle.html` notification as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setProgressSegments(java.util.List<androidx.core.app.NotificationCompat.ProgressStyle.Segment>)` or `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#addProgressSegment(androidx.core.app.NotificationCompat.ProgressStyle.Segment)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PROGRESS_START_ICON() = "android.progressStartIcon"` extras key: this is an `https://developer.android.com/reference/androidx/core/graphics/drawable/IconCompat` of an image to be shown at the beginning of the progress bar in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle`, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setProgressStartIcon(androidx.core.graphics.drawable.IconCompat)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PROGRESS_TRACKER_ICON() = "android.progressTrackerIcon"` extras key: this is an `https://developer.android.com/reference/androidx/core/graphics/drawable/IconCompat` of an image to be shown as progress bar progress tracker icon in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle`, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setProgressTrackerIcon(androidx.core.graphics.drawable.IconCompat)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_REMOTE_INPUT_HISTORY() = "android.remoteInputHistory"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the remote input history, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setRemoteInputHistory(java.lang.CharSequence[])`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_REQUEST_PROMOTED_ONGOING() = "android.requestPromotedOngoing"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: If provided, should contain a boolean indicating whether the notification is requesting promoted treatment. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_SELF_DISPLAY_NAME() = "android.selfDisplayName"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the username to be displayed for all messages sent by the user including direct replies `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_SHORT_CRITICAL_TEXT() = "android.shortCriticalText"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: very short text summarizing the most critical information contained in the notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_SHOW_BIG_PICTURE_WHEN_COLLAPSED() = "android.showBigPictureWhenCollapsed"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a boolean to indicate that the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#bigPicture(android.graphics.Bitmap)` is to be shown in the collapsed state of a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_SHOW_CHRONOMETER() = "android.showChronometer"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the when field set using `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setWhen(long)` should be shown as a count-up timer (specifically a `https://developer.android.com/reference/android/widget/Chronometer.html`) instead of a timestamp, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setUsesChronometer(boolean)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_SHOW_WHEN() = "android.showWhen"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the when field set using `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setWhen(long)` should be shown, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setShowWhen(boolean)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_SMALL_ICON() = "android.icon"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the resource ID of the notification's main small icon, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSmallIcon(int)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_STYLED_BY_PROGRESS() = "android.styledByProgress"` extras key: whether the progress bar should be styled by its progress as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setStyledByProgress(boolean)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_SUB_TEXT() = "android.subText"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a third line of text, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSubText(java.lang.CharSequence)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_SUMMARY_TEXT() = "android.summaryText"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a line of summary information intended to be shown alongside expanded notifications, as supplied to (e.g.) `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigTextStyle#setSummaryText(java.lang.CharSequence)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_TEMPLATE() = "android.template"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: A string representing the name of the specific `https://developer.android.com/reference/android/app/Notification.Style.html` used to create this notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_TEXT() = "android.text"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the main text payload, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentText(java.lang.CharSequence)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_TEXT_LINES() = "android.textLines"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: An array of CharSequences to show in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.InboxStyle` expanded notifications, each of which was supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.InboxStyle#addLine(java.lang.CharSequence)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_TITLE() = "android.title"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the title of the notification, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentTitle(java.lang.CharSequence)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_TITLE_BIG() = "android.title.big"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the title of the notification when shown in expanded form, e.g. as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigTextStyle#setBigContentTitle(java.lang.CharSequence)`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_VERIFICATION_ICON() = "android.verificationIcon"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the icon to be displayed as a verification status of the caller on a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_VERIFICATION_ICON_COMPAT() = "android.verificationIconCompat"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the icon to be displayed as a verification status of the caller on a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification, for Android versions before the `https://developer.android.com/reference/android/graphics/drawable/Icon.html` class was introduced. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_VERIFICATION_TEXT() = "android.verificationText"` `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the text to be displayed as a verification status of the caller on a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_AUTO_CANCEL() = 16` Bit set in the Notification flags field if the notification should be canceled when it is clicked by the user. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_BUBBLE() = 4096` Bit set in the Notification flags field if this notification is showing as a bubble. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_FOREGROUND_SERVICE() = 64` Bit set in the Notification flags field if this notification represents a currently running service. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_GROUP_SUMMARY() = 512` Bit set in the Notification flags field if this notification is the group summary for a group of notifications. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_HIGH_PRIORITY() = 128` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)` with a positive value. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_INSISTENT() = 4` Bit set in the Notification flags field if the audio will be repeated until the notification is cancelled or the notification window is opened. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_LOCAL_ONLY() = 256` Bit set in the Notification flags field if this notification is relevant to the current device only and it is not recommended that it bridge to other devices. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_NO_CLEAR() = 32` Bit set in the Notification flags field if the notification should not be canceled when the user clicks the Clear all button. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_ONGOING_EVENT() = 2` Bit set in the Notification flags field if this notification is in reference to something that is ongoing, like a phone call. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_ONLY_ALERT_ONCE() = 8` Bit set in the Notification flags field if the notification's sound, vibrate and ticker should only be played if the notification is not already showing. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_SHOW_LIGHTS() = 1` Bit set in the Notification flags field when LEDs should be turned on for this notification. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FOREGROUND_SERVICE_DEFAULT() = 0` Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setForegroundServiceBehavior(int)`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FOREGROUND_SERVICE_DEFERRED() = 2` Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setForegroundServiceBehavior(int)`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FOREGROUND_SERVICE_IMMEDIATE() = 1` Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setForegroundServiceBehavior(int)`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#GROUP_ALERT_ALL() = 0` Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroupAlertBehavior(int)`, meaning that all notifications in a group with sound or vibration ought to make sound or vibrate (respectively), so this notification will not be muted when it is in a group. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#GROUP_ALERT_CHILDREN() = 2` Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroupAlertBehavior(int)`, meaning that the summary notification in a group should be silenced (no sound or vibration) even if they would otherwise make sound or vibrate. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#GROUP_ALERT_SUMMARY() = 1` Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroupAlertBehavior(int)`, meaning that all children notification in a group should be silenced (no sound or vibration) even if they would otherwise make sound or vibrate. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#GROUP_KEY_SILENT() = "silent"` Constant for the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroup(java.lang.String)` that's added to notifications that are not already grouped when `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setNotificationSilent()` is used when `https://developer.android.com/reference/android/os/Build.VERSION.html#SDK_INT` is \>= `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#O`. |
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#INTENT_CATEGORY_NOTIFICATION_PREFERENCES() = "android.intent.category.NOTIFICATION_PREFERENCES"` An activity that provides a user interface for adjusting notification preferences for its containing application. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#PRIORITY_DEFAULT() = 0` Default notification priority for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)`. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#PRIORITY_HIGH() = 1` Higher notification priority for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)`, for more important notifications or alerts. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#PRIORITY_LOW() = -1` Lower notification priority for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)`, for items that are less important. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#PRIORITY_MAX() = 2` Highest notification priority for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)`, for your application's most important items that require the user's prompt attention or input. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#PRIORITY_MIN() = -2` Lowest notification priority for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)`; these items might not be shown to the user except under special circumstances, such as detailed notification logs. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#SEMANTIC_STYLE_CAUTION() = 3` This value is used to annotate an element as indicating caution, moderate urgency, tardiness, or another "intermediate" value on the semantic hierarchy. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#SEMANTIC_STYLE_DANGER() = 4` This value is used to annotate an element as indicating danger, extreme urgency or lateness, or another "extreme" value on the semantic hierarchy. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#SEMANTIC_STYLE_INFO() = 1` This value is used to annotate an element as indicating information that should stand out from other content, but which doesn't fall on a scale or hierarchy. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#SEMANTIC_STYLE_SAFE() = 2` This value is used to annotate an element as indicating safety, non-urgency, timeliness, or another "mild" value on the semantic hierarchy. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#SEMANTIC_STYLE_UNSPECIFIED() = 0` This is the default value for semantic style, signaling no particular semantics. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#STREAM_DEFAULT() = -1` Use this constant as the value for audioStreamType to request that the default stream type for notifications be used. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#VISIBILITY_PRIVATE() = 0` Notification visibility: Show this notification on all lockscreens, but conceal sensitive or private information on secure lockscreens. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#VISIBILITY_PUBLIC() = 1` Notification visibility: Show this notification in its entirety on all lockscreens. |
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#VISIBILITY_SECRET() = -1` Notification visibility: Do not reveal any part of this notification on a secure lockscreen. |

| ### Public constructors |
|---|
| `[NotificationCompat](https://developer.android.com/reference/androidx/core/app/NotificationCompat#NotificationCompat())()` **This method is deprecated.** This type should not be instantiated as it contains only static methods. <br /> |

| ### Public methods |
|---|---|
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/text/ParcelableSpan.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#createSemanticStyleAnnotation(int)(int semanticStyle)` Constructs an `https://developer.android.com/reference/android/text/ParcelableSpan.html` that can be used to span text in a `https://developer.android.com/reference/android/text/Spanned.html``https://developer.android.com/reference/java/lang/CharSequence.html` in some Notification text fields, and which may then be converted into styling of that section of text in order to indicate the semantic style. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getAction(android.app.Notification,int)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification, int actionIndex)` Get an action on this notification in a backwards compatible manner. |
| `static int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getActionCount(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the number of actions in this notification in a backwards compatible manner. |
| `static boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getAllowSystemGeneratedContextualActions(android.app.Notification)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification )` Returns whether the platform is allowed (by the app developer) to generate contextual actions for this notification. |
| `static boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getAutoCancel(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setAutoCancel(boolean)` |
| `static int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getBadgeIconType(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns what icon should be shown for this notification if it is being displayed in a Launcher that supports badging. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.BubbleMetadata` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getBubbleMetadata(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BubbleMetadata` for a notification that will be used to display app content in a floating window over the existing foreground activity. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getCategory(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the category of this notification in a backwards compatible manner. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getChannelId(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` |
| `static int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getColor(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setColor(int)` |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getContentInfo(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns the content info provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentInfo(java.lang.CharSequence)`. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getContentText(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns the content text provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentText(java.lang.CharSequence)`. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getContentTitle(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns the content title provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentTitle(java.lang.CharSequence)`. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html` | `@https://developer.android.com/reference/androidx/annotation/ReplaceWith(expression = "notification.extras") [getExtras](https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` **This method is deprecated.** Call `https://developer.android.com/reference/android/app/Notification.html#extras` directly. <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getGroup(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the key used to group this notification into a cluster or stack with other notifications on devices which support such rendering. |
| `static int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getGroupAlertBehavior(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns which type of notifications in a group are responsible for audibly alerting the user. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/app/NotificationCompat.Action>` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getInvisibleActions(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns the invisible actions contained within the given notification. |
| `static boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getLocalOnly(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get whether or not this notification is only relevant to the current device. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/content/LocusIdCompat` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getLocusId(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Gets the `https://developer.android.com/reference/androidx/core/content/LocusIdCompat` associated with this notification. |
| `static boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getOngoing(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setOngoing(boolean)` |
| `static boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getOnlyAlertOnce(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setOnlyAlertOnce(boolean)` |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/app/Person>` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getPeople(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns the people in the notification. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/app/Notification.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getPublicVersion(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setVisibility(int)` |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getSettingsText(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns the settings text provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSettingsText(java.lang.CharSequence)`. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getShortCriticalText(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns the very short text summarizing the most critical information contained in the notification, or null if this field was not set. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getShortcutId(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns the `https://developer.android.com/reference/androidx/core/content/pm/ShortcutInfoCompat#getId()` that this notification supersedes, if any. |
| `static boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getShowWhen(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setShowWhen(boolean)` |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getSortKey(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get a sort key that orders this notification among other notifications from the same package. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getSubText(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns the sub text provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSubText(java.lang.CharSequence)`. |
| `static long` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getTimeoutAfter(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns the time at which this notification should be canceled by the system, if it's not canceled already. |
| `static boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getUsesChronometer(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setUsesChronometer(boolean)` |
| `static int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getVisibility(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setVisibility(int)` |
| `static boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#hasPromotableCharacteristics(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns whether the notification has any promotable characteristics. |
| `static boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#isGroupSummary(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Get whether this notification to be the group summary for a group of notifications. |
| `static boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#isRequestPromotedOngoing(android.app.Notification)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` Returns whether this notification has requested to be a promoted ongoing notification. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat#reduceLargeIconSize(android.content.Context,android.graphics.Bitmap)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/graphics/Bitmap.html icon)` Reduces the size of a provided `icon` if it's larger than the maximum allowed for a notification large icon; returns the resized icon. |

## Constants

### BADGE_ICON_LARGE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int BADGE_ICON_LARGE = 2
```

If this notification is being shown as a badge, use the icon provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setLargeIcon(android.graphics.Bitmap)` to represent this notification.

### BADGE_ICON_NONE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int BADGE_ICON_NONE = 0
```

If this notification is being shown as a badge, always show as a number.

### BADGE_ICON_SMALL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int BADGE_ICON_SMALL = 1
```

If this notification is being shown as a badge, use the icon provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSmallIcon(int)` to represent this notification.

### CATEGORY_ALARM

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_ALARM = "alarm"
```

Notification category: alarm or timer.

### CATEGORY_CALL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_CALL = "call"
```

Notification category: incoming call (voice or video) or similar synchronous communication request.

### CATEGORY_EMAIL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_EMAIL = "email"
```

Notification category: asynchronous bulk message (email).

### CATEGORY_ERROR

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_ERROR = "err"
```

Notification category: error in background operation or authentication status.

### CATEGORY_EVENT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_EVENT = "event"
```

Notification category: calendar event.

### CATEGORY_LOCATION_SHARING

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String CATEGORY_LOCATION_SHARING = "location_sharing"
```

Notification category: temporarily sharing location.

### CATEGORY_MESSAGE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_MESSAGE = "msg"
```

Notification category: incoming direct message (SMS, instant message, etc.).

### CATEGORY_MISSED_CALL

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String CATEGORY_MISSED_CALL = "missed_call"
```

Notification category: missed call.

### CATEGORY_NAVIGATION

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_NAVIGATION = "navigation"
```

Notification category: map turn-by-turn navigation.

### CATEGORY_PROGRESS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_PROGRESS = "progress"
```

Notification category: progress of a long-running background operation.

### CATEGORY_PROMO

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_PROMO = "promo"
```

Notification category: promotion or advertisement.

### CATEGORY_RECOMMENDATION

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_RECOMMENDATION = "recommendation"
```

Notification category: a specific, timely recommendation for a single thing. For example, a news app might want to recommend a news story it believes the user will want to read next.

### CATEGORY_REMINDER

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_REMINDER = "reminder"
```

Notification category: user-scheduled reminder.

### CATEGORY_SERVICE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_SERVICE = "service"
```

Notification category: indication of running background service.

### CATEGORY_SOCIAL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_SOCIAL = "social"
```

Notification category: social network or sharing update.

### CATEGORY_STATUS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_STATUS = "status"
```

Notification category: ongoing information about device or contextual status.

### CATEGORY_STOPWATCH

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String CATEGORY_STOPWATCH = "stopwatch"
```

Notification category: running stopwatch.

### CATEGORY_SYSTEM

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_SYSTEM = "sys"
```

Notification category: system or device status update. Reserved for system use.

### CATEGORY_TRANSPORT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String CATEGORY_TRANSPORT = "transport"
```

Notification category: media transport control for playback.

### CATEGORY_VOICEMAIL

Added in [1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)

```
public static final String CATEGORY_VOICEMAIL = "voicemail"
```

Notification category: voicemail.

### CATEGORY_WORKOUT

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String CATEGORY_WORKOUT = "workout"
```

Notification category: tracking a user's workout.

### COLOR_DEFAULT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final @ColorInt int COLOR_DEFAULT = 0
```

Value of `https://developer.android.com/reference/android/app/Notification.html#color` equal to 0 (also known as `https://developer.android.com/reference/android/graphics/Color.html#TRANSPARENT`), telling the system not to decorate this notification with any special color but instead use default colors when presenting this notification.

### DEFAULT_ALL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int DEFAULT_ALL = -1
```

Use all default values (where applicable).

### DEFAULT_LIGHTS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int DEFAULT_LIGHTS = 4
```

Use the default notification lights. This will ignore the `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FLAG_SHOW_LIGHTS()` bit, and values set with `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setLights(int,int,int)`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setDefaults(int)` |   |

### DEFAULT_SOUND

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int DEFAULT_SOUND = 1
```

Use the default notification sound. This will ignore any sound set using `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSound(android.net.Uri)`

A notification that is noisy is more likely to be presented as a heads-up notification, on some platforms.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setDefaults(int)` |   |

### DEFAULT_VIBRATE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int DEFAULT_VIBRATE = 2
```

Use the default notification vibrate. This will ignore any vibrate set using `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setVibrate(long[])`. Using phone vibration requires the `https://developer.android.com/reference/android/Manifest.permission.html#VIBRATE` permission.

A notification that vibrates is more likely to be presented as a heads-up notification, on some platforms.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setDefaults(int)` |   |

### EXTRA_ANSWER_COLOR

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_ANSWER_COLOR = "android.answerColor"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the color used as a hint for the Answer action button of a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. This extra is a `https://developer.android.com/reference/androidx/annotation/ColorInt`.

### EXTRA_ANSWER_INTENT

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_ANSWER_INTENT = "android.answerIntent"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the intent to be sent when the users answers a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. This extra is a `https://developer.android.com/reference/android/app/PendingIntent.html`.

### EXTRA_AUDIO_CONTENTS_URI

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_AUDIO_CONTENTS_URI = "android.audioContents"
```

Keys into the `https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` Bundle: the audio contents of this notification. This is for use when rendering the notification on an audio-focused interface; the audio contents are a complete sound sample that contains the contents/body of the notification. This may be used in substitute of a Text-to-Speech reading of the notification. For example if the notification represents a voice message this should point to the audio of that message. The data stored under this key should be a String representation of a Uri that contains the audio contents in one of the following formats: WAV, PCM 16-bit, AMR-WB. This extra is unnecessary if you are using `MessagingStyle` since each `Message` has a field for holding data URI. That field can be used for audio. See `Message#setData`. Example usage:

```
NotificationCompat.Builder myBuilder = (build your Notification as normal);
myBuilder.getExtras().putString(EXTRA_AUDIO_CONTENTS_URI, myAudioUri.toString());
```

### EXTRA_BACKGROUND_IMAGE_URI

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_BACKGROUND_IMAGE_URI = "android.backgroundImageUri"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: A `https://developer.android.com/reference/android/content/ContentUris.html` pointing to an image that can be displayed in the background when the notification is selected. The URI must point to an image stream suitable for passing into `https://developer.android.com/reference/android/graphics/BitmapFactory.html#decodeStream(java.io.InputStream)`; all other content types will be ignored. The content provider URI used for this purpose must require no permissions to read the image data.

### EXTRA_BIG_TEXT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_BIG_TEXT = "android.bigText"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the longer text shown in the big form of a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigTextStyle` notification, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigTextStyle#bigText(java.lang.CharSequence)`.

### EXTRA_CALL_IS_VIDEO

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_CALL_IS_VIDEO = "android.callIsVideo"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification is for a call that will activate video when answered. This extra is a boolean.

### EXTRA_CALL_PERSON

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_CALL_PERSON = "android.callPerson"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the person to be displayed as calling for the `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. This extra is a `https://developer.android.com/reference/androidx/core/app/Person`.

### EXTRA_CALL_PERSON_COMPAT

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_CALL_PERSON_COMPAT = "android.callPersonCompat"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the person to be displayed as calling for the `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification, for Android versions before the `https://developer.android.com/reference/androidx/core/app/Person` class was introduced. This extra is a `https://developer.android.com/reference/android/os/Bundle.html` representing a `https://developer.android.com/reference/androidx/core/app/Person`.

### EXTRA_CALL_TYPE

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_CALL_TYPE = "android.callType"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the type of call represented by the `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. This extra is an int.

### EXTRA_CHANNEL_GROUP_ID

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String EXTRA_CHANNEL_GROUP_ID = "android.intent.extra.CHANNEL_GROUP_ID"
```

Optional extra for `https://developer.android.com/reference/androidx/core/app/NotificationCompat#INTENT_CATEGORY_NOTIFICATION_PREFERENCES()`. If provided, will contain a `https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat#getId()` that can be used to narrow down what settings should be shown in the target app.

### EXTRA_CHANNEL_ID

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String EXTRA_CHANNEL_ID = "android.intent.extra.CHANNEL_ID"
```

Optional extra for `https://developer.android.com/reference/androidx/core/app/NotificationCompat#INTENT_CATEGORY_NOTIFICATION_PREFERENCES()`. If provided, will contain a `https://developer.android.com/reference/androidx/core/app/NotificationChannelCompat#getId()` that can be used to narrow down what settings should be shown in the target app.

### EXTRA_CHRONOMETER_COUNT_DOWN

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
public static final String EXTRA_CHRONOMETER_COUNT_DOWN = "android.chronometerCountDown"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the chronometer set on the notification should count down instead of counting up. Is only relevant if key `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_SHOW_CHRONOMETER()` is present. This extra is a boolean. The default is (@code false).

### EXTRA_COLORIZED

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String EXTRA_COLORIZED = "android.colorized"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the notification should be colorized as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setColorized(boolean)`.

### EXTRA_COMPACT_ACTIONS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_COMPACT_ACTIONS = "android.compactActions"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the indices of actions to be shown in the compact view, as supplied to (e.g.) `https://developer.android.com/reference/android/app/Notification.MediaStyle.html#setShowActionsInCompactView(int...)`.

### EXTRA_COMPAT_TEMPLATE

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String EXTRA_COMPAT_TEMPLATE = "androidx.core.app.extra.COMPAT_TEMPLATE"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: A string representing the name of the specific `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` used to create this notification.

### EXTRA_CONVERSATION_TITLE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_CONVERSATION_TITLE = "android.conversationTitle"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: a `https://developer.android.com/reference/java/lang/String.html` to be displayed as the title to a conversation represented by a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle`.

### EXTRA_DECLINE_COLOR

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_DECLINE_COLOR = "android.declineColor"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the color used as a hint for the Decline or Hang Up action button of a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. This extra is a `https://developer.android.com/reference/androidx/annotation/ColorInt`.

### EXTRA_DECLINE_INTENT

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_DECLINE_INTENT = "android.declineIntent"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the intent to be sent when the users declines a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. This extra is a `https://developer.android.com/reference/android/app/PendingIntent.html`.

### EXTRA_HANG_UP_INTENT

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_HANG_UP_INTENT = "android.hangUpIntent"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the intent to be sent when the users hangs up a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. This extra is a `https://developer.android.com/reference/android/app/PendingIntent.html`.

### EXTRA_HIDDEN_CONVERSATION_TITLE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_HIDDEN_CONVERSATION_TITLE = "android.hiddenConversationTitle"
```

Key for compat's `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getConversationTitle()`. This allows backwards support for conversation titles as SDK


### EXTRA_HISTORIC_MESSAGES

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String EXTRA_HISTORIC_MESSAGES = "android.messages.historic"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: an array of `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addHistoricMessage(androidx.core.app.NotificationCompat.MessagingStyle.Message)``https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` bundles provided by a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` notification. This extra is a parcelable array of `https://developer.android.com/reference/android/os/Bundle.html` objects.

### EXTRA_INFO_TEXT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_INFO_TEXT = "android.infoText"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a small piece of additional text as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentInfo(java.lang.CharSequence)`.

### EXTRA_IS_GROUP_CONVERSATION

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_IS_GROUP_CONVERSATION = "android.isGroupConversation"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` notification represents a group conversation.

### EXTRA_LARGE_ICON

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_LARGE_ICON = "android.largeIcon"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a bitmap to be used instead of the small icon when showing the notification payload, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setLargeIcon(android.graphics.Bitmap)`.

### EXTRA_LARGE_ICON_BIG

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_LARGE_ICON_BIG = "android.largeIcon.big"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a bitmap to be used instead of the one from `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setLargeIcon(android.graphics.Bitmap)` when the notification is shown in its expanded form, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#bigLargeIcon(android.graphics.Bitmap)`.

### EXTRA_MEDIA_SESSION

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_MEDIA_SESSION = "android.mediaSession"
```

Notification key: A `https://developer.android.com/reference/android/media/session/MediaSession.Token.html` associated with a `https://developer.android.com/reference/android/app/Notification.MediaStyle.html` notification.

### EXTRA_MESSAGES

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_MESSAGES = "android.messages"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: an array of `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` bundles provided by a `https://developer.android.com/reference/android/app/Notification.MessagingStyle.html` notification. This extra is a parcelable array of `https://developer.android.com/reference/android/os/Bundle.html` objects.

### EXTRA_MESSAGING_STYLE_USER

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_MESSAGING_STYLE_USER = "android.messagingStyleUser"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the person to display for all messages sent by the user, including direct replies to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` notifications.

### EXTRA_NOTIFICATION_ID

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String EXTRA_NOTIFICATION_ID = "android.intent.extra.NOTIFICATION_ID"
```

Optional extra for `https://developer.android.com/reference/androidx/core/app/NotificationCompat#INTENT_CATEGORY_NOTIFICATION_PREFERENCES()`. If provided, will contain the id provided to `https://developer.android.com/reference/androidx/core/app/NotificationManagerCompat#notify(java.lang.String,int,android.app.Notification)` that can be used to narrow down what settings should be shown in the target app.

### EXTRA_NOTIFICATION_TAG

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String EXTRA_NOTIFICATION_TAG = "android.intent.extra.NOTIFICATION_TAG"
```

Optional extra for `https://developer.android.com/reference/androidx/core/app/NotificationCompat#INTENT_CATEGORY_NOTIFICATION_PREFERENCES()`. If provided, will contain the tag provided to `https://developer.android.com/reference/androidx/core/app/NotificationManagerCompat#notify(java.lang.String,int,android.app.Notification)` that can be used to narrow down what settings should be shown in the target app.

### EXTRA_PEOPLE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String EXTRA_PEOPLE = "android.people"
```

> [!CAUTION]
> **This field is deprecated.**   
>
> the actual objects are now in `https://developer.android.com/reference/androidx/core/app/NotificationCompat#EXTRA_PEOPLE_LIST()`

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: A String array containing the people that this notification relates to, each of which was supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#addPerson(java.lang.String)`.

### EXTRA_PEOPLE_LIST

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String EXTRA_PEOPLE_LIST = "android.people.list"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: : An arrayList of `https://developer.android.com/reference/androidx/core/app/Person` objects containing the people that this notification relates to, each of which was supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#addPerson(androidx.core.app.Person)`.

### EXTRA_PICTURE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_PICTURE = "android.picture"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a bitmap to be shown in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle` expanded notifications, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#bigPicture(android.graphics.Bitmap)`.

### EXTRA_PICTURE_CONTENT_DESCRIPTION

Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/core#1.8.0)

```
public static final String EXTRA_PICTURE_CONTENT_DESCRIPTION = "android.pictureContentDescription"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a content description of the big picture supplied from `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#bigPicture(android.graphics.Bitmap)`, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#setContentDescription(java.lang.CharSequence)`.

### EXTRA_PICTURE_ICON

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)

```
public static final String EXTRA_PICTURE_ICON = "android.pictureIcon"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is an `https://developer.android.com/reference/android/graphics/drawable/Icon.html` of an image to be shown in `https://developer.android.com/reference/android/app/Notification.BigPictureStyle.html` expanded notifications, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#bigPicture(android.graphics.drawable.Icon)`.

### EXTRA_PREFER_SMALL_ICON

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public static final String EXTRA_PREFER_SMALL_ICON = "android.app.preferSmallIcon"
```

extras key: requests that the notification card show the small icon instead of the launcher app icon.

### EXTRA_PROGRESS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_PROGRESS = "android.progress"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the progress value supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setProgress(int,int,boolean)`.

### EXTRA_PROGRESS_END_ICON

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static final String EXTRA_PROGRESS_END_ICON = "android.progressEndIcon"
```

extras key: this is an `https://developer.android.com/reference/androidx/core/graphics/drawable/IconCompat` of an image to be shown at the end of the progress bar in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle`, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setProgressEndIcon(androidx.core.graphics.drawable.IconCompat)`.

### EXTRA_PROGRESS_INDETERMINATE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_PROGRESS_INDETERMINATE = "android.progressIndeterminate"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the progress bar is indeterminate, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setProgress(int,int,boolean)`.

### EXTRA_PROGRESS_MAX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_PROGRESS_MAX = "android.progressMax"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the maximum value supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setProgress(int,int,boolean)`.

### EXTRA_PROGRESS_POINTS

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static final String EXTRA_PROGRESS_POINTS = "android.progressPoints"
```

extras key: an arraylist of `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point` bundles provided by a `https://developer.android.com/reference/android/app/Notification.ProgressStyle.html` notification as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setProgressPoints(java.util.List<androidx.core.app.NotificationCompat.ProgressStyle.Point>)` or `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#addProgressPoint(androidx.core.app.NotificationCompat.ProgressStyle.Point)`. This extra is a parcelable array list of bundles.

### EXTRA_PROGRESS_SEGMENTS

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static final String EXTRA_PROGRESS_SEGMENTS = "android.progressSegments"
```

extras key: an arraylist of `https://developer.android.com/reference/android/app/Notification.ProgressStyle.Segment.html` bundles provided by a `https://developer.android.com/reference/android/app/Notification.ProgressStyle.html` notification as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setProgressSegments(java.util.List<androidx.core.app.NotificationCompat.ProgressStyle.Segment>)` or `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#addProgressSegment(androidx.core.app.NotificationCompat.ProgressStyle.Segment)`. This extra is a parcelable array list of bundles.

### EXTRA_PROGRESS_START_ICON

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static final String EXTRA_PROGRESS_START_ICON = "android.progressStartIcon"
```

extras key: this is an `https://developer.android.com/reference/androidx/core/graphics/drawable/IconCompat` of an image to be shown at the beginning of the progress bar in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle`, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setProgressStartIcon(androidx.core.graphics.drawable.IconCompat)`.

### EXTRA_PROGRESS_TRACKER_ICON

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static final String EXTRA_PROGRESS_TRACKER_ICON = "android.progressTrackerIcon"
```

extras key: this is an `https://developer.android.com/reference/androidx/core/graphics/drawable/IconCompat` of an image to be shown as progress bar progress tracker icon in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle`, supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setProgressTrackerIcon(androidx.core.graphics.drawable.IconCompat)`.

### EXTRA_REMOTE_INPUT_HISTORY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_REMOTE_INPUT_HISTORY = "android.remoteInputHistory"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the remote input history, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setRemoteInputHistory(java.lang.CharSequence[])`. Apps can fill this through `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setRemoteInputHistory(java.lang.CharSequence[])` with the most recent inputs that have been sent through a `https://developer.android.com/reference/androidx/core/app/RemoteInput` of this Notification and are expected to clear it once the it is no longer relevant (e.g. for chat notifications once the other party has responded). The extra with this key is of type CharSequence\[\] and contains the most recent entry at the 0 index, the second most recent at the 1 index, etc.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setRemoteInputHistory(java.lang.CharSequence[])` |   |

### EXTRA_REQUEST_PROMOTED_ONGOING

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static final String EXTRA_REQUEST_PROMOTED_ONGOING = "android.requestPromotedOngoing"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: If provided, should contain a boolean indicating whether the notification is requesting promoted treatment.

### EXTRA_SELF_DISPLAY_NAME

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_SELF_DISPLAY_NAME = "android.selfDisplayName"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the username to be displayed for all messages sent by the user including direct replies `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` notification.

### EXTRA_SHORT_CRITICAL_TEXT

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static final String EXTRA_SHORT_CRITICAL_TEXT = "android.shortCriticalText"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: very short text summarizing the most critical information contained in the notification.

### EXTRA_SHOW_BIG_PICTURE_WHEN_COLLAPSED

Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/core#1.7.0)

```
public static final String EXTRA_SHOW_BIG_PICTURE_WHEN_COLLAPSED = "android.showBigPictureWhenCollapsed"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a boolean to indicate that the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle#bigPicture(android.graphics.Bitmap)` is to be shown in the collapsed state of a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigPictureStyle` notification. This will replace a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setLargeIcon(android.graphics.Bitmap)` in that state if one was provided.

### EXTRA_SHOW_CHRONOMETER

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_SHOW_CHRONOMETER = "android.showChronometer"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the when field set using `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setWhen(long)` should be shown as a count-up timer (specifically a `https://developer.android.com/reference/android/widget/Chronometer.html`) instead of a timestamp, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setUsesChronometer(boolean)`.

### EXTRA_SHOW_WHEN

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_SHOW_WHEN = "android.showWhen"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: whether the when field set using `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setWhen(long)` should be shown, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setShowWhen(boolean)`.

### EXTRA_SMALL_ICON

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_SMALL_ICON = "android.icon"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the resource ID of the notification's main small icon, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSmallIcon(int)`.

### EXTRA_STYLED_BY_PROGRESS

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static final String EXTRA_STYLED_BY_PROGRESS = "android.styledByProgress"
```

extras key: whether the progress bar should be styled by its progress as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#setStyledByProgress(boolean)`. This extra is a boolean.

### EXTRA_SUB_TEXT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_SUB_TEXT = "android.subText"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a third line of text, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSubText(java.lang.CharSequence)`.

### EXTRA_SUMMARY_TEXT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_SUMMARY_TEXT = "android.summaryText"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is a line of summary information intended to be shown alongside expanded notifications, as supplied to (e.g.) `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigTextStyle#setSummaryText(java.lang.CharSequence)`.

### EXTRA_TEMPLATE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_TEMPLATE = "android.template"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: A string representing the name of the specific `https://developer.android.com/reference/android/app/Notification.Style.html` used to create this notification.

### EXTRA_TEXT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_TEXT = "android.text"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the main text payload, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentText(java.lang.CharSequence)`.

### EXTRA_TEXT_LINES

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_TEXT_LINES = "android.textLines"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: An array of CharSequences to show in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.InboxStyle` expanded notifications, each of which was supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.InboxStyle#addLine(java.lang.CharSequence)`.

### EXTRA_TITLE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_TITLE = "android.title"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the title of the notification, as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentTitle(java.lang.CharSequence)`.

### EXTRA_TITLE_BIG

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final String EXTRA_TITLE_BIG = "android.title.big"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: this is the title of the notification when shown in expanded form, e.g. as supplied to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BigTextStyle#setBigContentTitle(java.lang.CharSequence)`.

### EXTRA_VERIFICATION_ICON

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_VERIFICATION_ICON = "android.verificationIcon"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the icon to be displayed as a verification status of the caller on a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. This extra is an `https://developer.android.com/reference/android/graphics/drawable/Icon.html`.

### EXTRA_VERIFICATION_ICON_COMPAT

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_VERIFICATION_ICON_COMPAT = "android.verificationIconCompat"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the icon to be displayed as a verification status of the caller on a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification, for Android versions before the `https://developer.android.com/reference/android/graphics/drawable/Icon.html` class was introduced. This extra is an `https://developer.android.com/reference/android/os/Bundle.html` representing an `https://developer.android.com/reference/android/graphics/drawable/Icon.html`.

### EXTRA_VERIFICATION_TEXT

Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
public static final String EXTRA_VERIFICATION_TEXT = "android.verificationText"
```

`https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification)` key: the text to be displayed as a verification status of the caller on a `https://developer.android.com/reference/android/app/Notification.CallStyle.html` notification. This extra is a `https://developer.android.com/reference/java/lang/CharSequence.html`.

### FLAG_AUTO_CANCEL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FLAG_AUTO_CANCEL = 16
```

Bit set in the Notification flags field if the notification should be canceled when it is clicked by the user.

### FLAG_BUBBLE

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
public static final int FLAG_BUBBLE = 4096
```

Bit set in the Notification flags field if this notification is showing as a bubble. Applications cannot set this flag directly; they should instead call `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setBubbleMetadata(androidx.core.app.NotificationCompat.BubbleMetadata)` to request that a notification be displayed as a bubble, and then check this flag to see whether that request was honored by the system.

### FLAG_FOREGROUND_SERVICE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FLAG_FOREGROUND_SERVICE = 64
```

Bit set in the Notification flags field if this notification represents a currently running service. This will normally be set for you by `https://developer.android.com/reference/android/app/Service.html#startForeground(int, android.app.Notification)`.

### FLAG_GROUP_SUMMARY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FLAG_GROUP_SUMMARY = 512
```

Bit set in the Notification flags field if this notification is the group summary for a group of notifications. Grouped notifications may display in a cluster or stack on devices which support such rendering. Requires a group key also be set using `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroup(java.lang.String)`.

### FLAG_HIGH_PRIORITY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FLAG_HIGH_PRIORITY = 128
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)` with a positive value.

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

### FLAG_INSISTENT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FLAG_INSISTENT = 4
```

Bit set in the Notification flags field if the audio will be repeated until the notification is cancelled or the notification window is opened.

### FLAG_LOCAL_ONLY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FLAG_LOCAL_ONLY = 256
```

Bit set in the Notification flags field if this notification is relevant to the current device only and it is not recommended that it bridge to other devices.

### FLAG_NO_CLEAR

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FLAG_NO_CLEAR = 32
```

Bit set in the Notification flags field if the notification should not be canceled when the user clicks the Clear all button.

### FLAG_ONGOING_EVENT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FLAG_ONGOING_EVENT = 2
```

Bit set in the Notification flags field if this notification is in reference to something that is ongoing, like a phone call. It should not be set if this notification is in reference to something that happened at a particular point in time, like a missed phone call.

### FLAG_ONLY_ALERT_ONCE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FLAG_ONLY_ALERT_ONCE = 8
```

Bit set in the Notification flags field if the notification's sound, vibrate and ticker should only be played if the notification is not already showing.

### FLAG_SHOW_LIGHTS

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int FLAG_SHOW_LIGHTS = 1
```

Bit set in the Notification flags field when LEDs should be turned on for this notification.

### FOREGROUND_SERVICE_DEFAULT

Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/core#1.7.0)

```
public static final int FOREGROUND_SERVICE_DEFAULT = 0
```

Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setForegroundServiceBehavior(int)`. In Android 12 or later, if the Notification associated with starting a foreground service has been built using setForegroundServiceBehavior() with this behavior, display of the notification will often be suppressed for a short time to avoid visual disturbances to the user.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setForegroundServiceBehavior(int)` |   |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FOREGROUND_SERVICE_IMMEDIATE()` |   |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FOREGROUND_SERVICE_DEFERRED()` |   |

### FOREGROUND_SERVICE_DEFERRED

Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/core#1.7.0)

```
public static final int FOREGROUND_SERVICE_DEFERRED = 2
```

Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setForegroundServiceBehavior(int)`. In Android 12 or later, if the Notification associated with starting a foreground service has been built using setForegroundServiceBehavior() with this behavior, display of the notification will usually be suppressed for a short time to avoid visual disturbances to the user.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setForegroundServiceBehavior(int)` |   |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FOREGROUND_SERVICE_DEFAULT()` |   |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FOREGROUND_SERVICE_IMMEDIATE()` |   |

### FOREGROUND_SERVICE_IMMEDIATE

Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/core#1.7.0)

```
public static final int FOREGROUND_SERVICE_IMMEDIATE = 1
```

Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setForegroundServiceBehavior(int)`. In Android 12 or later, if the Notification associated with starting a foreground service has been built using setForegroundServiceBehavior() with this behavior, display of the notification will be immediate even if the default behavior would be to defer visibility for a short time.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setForegroundServiceBehavior(int)` |   |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FOREGROUND_SERVICE_DEFAULT()` |   |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat#FOREGROUND_SERVICE_DEFERRED()` |   |

### GROUP_ALERT_ALL

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int GROUP_ALERT_ALL = 0
```

Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroupAlertBehavior(int)`, meaning that all notifications in a group with sound or vibration ought to make sound or vibrate (respectively), so this notification will not be muted when it is in a group.

### GROUP_ALERT_CHILDREN

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int GROUP_ALERT_CHILDREN = 2
```

Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroupAlertBehavior(int)`, meaning that the summary notification in a group should be silenced (no sound or vibration) even if they would otherwise make sound or vibrate. Use this constant to mute this notification if this notification is a group summary.

For example, you might want to use this constant if only the children notifications in your group have content and the summary is only used to visually group notifications rather than to alert the user that new information is available.

### GROUP_ALERT_SUMMARY

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int GROUP_ALERT_SUMMARY = 1
```

Constant for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroupAlertBehavior(int)`, meaning that all children notification in a group should be silenced (no sound or vibration) even if they would otherwise make sound or vibrate. Use this constant to mute this notification if this notification is a group child. This must be applied to all children notifications you want to mute.

For example, you might want to use this constant if you post a number of children notifications at once (say, after a periodic sync), and only need to notify the user audibly once.

### GROUP_KEY_SILENT

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
public static final String GROUP_KEY_SILENT = "silent"
```

Constant for the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroup(java.lang.String)` that's added to notifications that are not already grouped when `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setNotificationSilent()` is used when `https://developer.android.com/reference/android/os/Build.VERSION.html#SDK_INT` is \>= `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#O`.

### INTENT_CATEGORY_NOTIFICATION_PREFERENCES

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static final String INTENT_CATEGORY_NOTIFICATION_PREFERENCES = "android.intent.category.NOTIFICATION_PREFERENCES"
```

An activity that provides a user interface for adjusting notification preferences for its containing application.

### PRIORITY_DEFAULT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int PRIORITY_DEFAULT = 0
```

Default notification priority for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)`. If your application does not prioritize its own notifications, use this value for all notifications.

### PRIORITY_HIGH

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int PRIORITY_HIGH = 1
```

Higher notification priority for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)`, for more important notifications or alerts. The UI may choose to show these items larger, or at a different position in notification lists, compared with your app's `https://developer.android.com/reference/androidx/core/app/NotificationCompat#PRIORITY_DEFAULT()` items.

### PRIORITY_LOW

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int PRIORITY_LOW = -1
```

Lower notification priority for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)`, for items that are less important. The UI may choose to show these items smaller, or at a different position in the list, compared with your app's `https://developer.android.com/reference/androidx/core/app/NotificationCompat#PRIORITY_DEFAULT()` items.

### PRIORITY_MAX

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int PRIORITY_MAX = 2
```

Highest notification priority for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)`, for your application's most important items that require the user's prompt attention or input.

### PRIORITY_MIN

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int PRIORITY_MIN = -2
```

Lowest notification priority for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setPriority(int)`; these items might not be shown to the user except under special circumstances, such as detailed notification logs.

### SEMANTIC_STYLE_CAUTION

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public static final int SEMANTIC_STYLE_CAUTION = 3
```

This value is used to annotate an element as indicating caution, moderate urgency, tardiness, or another "intermediate" value on the semantic hierarchy.

Caution is generally represented to users by styling the element with a yellow or orange color.

### SEMANTIC_STYLE_DANGER

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public static final int SEMANTIC_STYLE_DANGER = 4
```

This value is used to annotate an element as indicating danger, extreme urgency or lateness, or another "extreme" value on the semantic hierarchy.

Danger is generally represented to users by styling the element with a red color.

### SEMANTIC_STYLE_INFO

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public static final int SEMANTIC_STYLE_INFO = 1
```

This value is used to annotate an element as indicating information that should stand out from other content, but which doesn't fall on a scale or hierarchy. This can be thought of as a more neutral value that may be used in cases where the element is intended to stand out against elements with the other semantic styles -- for example if a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle` bar uses semantic style to color segments, this style would be appropriate for segments where the semantic hierarchy is unhelpful to the user.

Info is generally represented to users by styling the element with a color (like blue) that is clearly distinct from the colors used for other styles.

### SEMANTIC_STYLE_SAFE

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public static final int SEMANTIC_STYLE_SAFE = 2
```

This value is used to annotate an element as indicating safety, non-urgency, timeliness, or another "mild" value on the semantic hierarchy.

Safety is generally represented to users by styling the element with a green color.

### SEMANTIC_STYLE_UNSPECIFIED

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public static final int SEMANTIC_STYLE_UNSPECIFIED = 0
```

This is the default value for semantic style, signaling no particular semantics. An `https://developer.android.com/reference/android/text/Annotation.html` with this style has no effect.

### STREAM_DEFAULT

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int STREAM_DEFAULT = -1
```

Use this constant as the value for audioStreamType to request that the default stream type for notifications be used. Currently the default stream type is `https://developer.android.com/reference/android/media/AudioManager.html#STREAM_NOTIFICATION`.

### VISIBILITY_PRIVATE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int VISIBILITY_PRIVATE = 0
```

Notification visibility: Show this notification on all lockscreens, but conceal sensitive or private information on secure lockscreens. {@see android.app.Notification#visibility}

### VISIBILITY_PUBLIC

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int VISIBILITY_PUBLIC = 1
```

Notification visibility: Show this notification in its entirety on all lockscreens. {@see android.app.Notification#visibility}

### VISIBILITY_SECRET

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int VISIBILITY_SECRET = -1
```

Notification visibility: Do not reveal any part of this notification on a secure lockscreen. {@see android.app.Notification#visibility}

## Public constructors

### NotificationCompat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public [NotificationCompat](https://developer.android.com/reference/androidx/core/app/NotificationCompat#NotificationCompat())()
```

> [!CAUTION]
> **This method is deprecated.**   
>
> This type should not be instantiated as it contains only static methods.

## Public methods

### createSemanticStyleAnnotation

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public static @NonNull ParcelableSpan createSemanticStyleAnnotation(int semanticStyle)
```

Constructs an `https://developer.android.com/reference/android/text/ParcelableSpan.html` that can be used to span text in a `https://developer.android.com/reference/android/text/Spanned.html``https://developer.android.com/reference/java/lang/CharSequence.html` in some Notification text fields, and which may then be converted into styling of that section of text in order to indicate the semantic style. Since Notifications may strip styling, even for semantic styles, it's important that stripping these styles should not distort the meaning of the text.

Semantic style will only be applied to text appearance in notifications that are eligible (e.g. `https://developer.android.com/reference/android/app/Notification.html#FLAG_PROMOTED_ONGOING` notifications).

| See also |
|---|---|
| `https://developer.android.com/reference/android/text/Spannable.html#setSpan(java.lang.Object, int, int, int)` |   |

### getAction

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static @Nullable NotificationCompat.Action getAction(@NonNull Notification notification, int actionIndex)
```

Get an action on this notification in a backwards compatible manner. Actions were supported from JellyBean (Api level 16) forwards.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification` | The notification to inspect. |
| `int actionIndex` | The index of the action to retrieve. |

### getActionCount

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static int getActionCount(@NonNull Notification notification)
```

Get the number of actions in this notification in a backwards compatible manner. Actions were supported from JellyBean (Api level 16) forwards.

### getAllowSystemGeneratedContextualActions

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
public static boolean getAllowSystemGeneratedContextualActions(
    @NonNull Notification notification
)
```

Returns whether the platform is allowed (by the app developer) to generate contextual actions for this notification.

### getAutoCancel

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static boolean getAutoCancel(@NonNull Notification notification)
```

Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setAutoCancel(boolean)`

### getBadgeIconType

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static int getBadgeIconType(@NonNull Notification notification)
```

Returns what icon should be shown for this notification if it is being displayed in a Launcher that supports badging. Will be one of `https://developer.android.com/reference/androidx/core/app/NotificationCompat#BADGE_ICON_NONE()`, `https://developer.android.com/reference/androidx/core/app/NotificationCompat#BADGE_ICON_SMALL()`, or `https://developer.android.com/reference/androidx/core/app/NotificationCompat#BADGE_ICON_LARGE()`.

### getBubbleMetadata

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
public static @Nullable NotificationCompat.BubbleMetadata getBubbleMetadata(@NonNull Notification notification)
```

Get the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.BubbleMetadata` for a notification that will be used to display app content in a floating window over the existing foreground activity.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification` | the notification to inspect |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.BubbleMetadata` | the BubbleMetadata if available and set, otherwise null |

### getCategory

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static @Nullable String getCategory(@NonNull Notification notification)
```

Get the category of this notification in a backwards compatible manner.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification` | The notification to inspect. |

### getChannelId

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static @Nullable String getChannelId(@NonNull Notification notification)
```

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | the ID of the channel this notification posts to. |

### getColor

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static int getColor(@NonNull Notification notification)
```

Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setColor(int)`

### getContentInfo

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static @Nullable CharSequence getContentInfo(@NonNull Notification notification)
```

Returns the content info provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentInfo(java.lang.CharSequence)`.

### getContentText

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static @Nullable CharSequence getContentText(@NonNull Notification notification)
```

Returns the content text provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentText(java.lang.CharSequence)`.

### getContentTitle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static @Nullable CharSequence getContentTitle(@NonNull Notification notification)
```

Returns the content title provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setContentTitle(java.lang.CharSequence)`.

### getExtras

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)

```
@ReplaceWith(expression = "notification.extras")
public static @Nullable Bundle [getExtras](https://developer.android.com/reference/androidx/core/app/NotificationCompat#getExtras(android.app.Notification))(@NonNull Notification notification)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Call `https://developer.android.com/reference/android/app/Notification.html#extras` directly.

Gets the `https://developer.android.com/reference/android/app/Notification.html#extras` field from a notification in a backwards compatible manner. Extras field was supported from JellyBean (Api level 16) forwards. This function will return `null` on older api levels.

### getGroup

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static @Nullable String getGroup(@NonNull Notification notification)
```

Get the key used to group this notification into a cluster or stack with other notifications on devices which support such rendering.

### getGroupAlertBehavior

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static int getGroupAlertBehavior(@NonNull Notification notification)
```

Returns which type of notifications in a group are responsible for audibly alerting the user. See `https://developer.android.com/reference/androidx/core/app/NotificationCompat#GROUP_ALERT_ALL()`, `https://developer.android.com/reference/androidx/core/app/NotificationCompat#GROUP_ALERT_CHILDREN()`, `https://developer.android.com/reference/androidx/core/app/NotificationCompat#GROUP_ALERT_SUMMARY()`.

### getInvisibleActions

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static @NonNull List<NotificationCompat.Action> getInvisibleActions(@NonNull Notification notification)
```

Returns the invisible actions contained within the given notification.

### getLocalOnly

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static boolean getLocalOnly(@NonNull Notification notification)
```

Get whether or not this notification is only relevant to the current device.

Some notifications can be bridged to other devices for remote display. If this hint is set, it is recommend that this notification not be bridged.

### getLocusId

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static @Nullable LocusIdCompat getLocusId(@NonNull Notification notification)
```

Gets the `https://developer.android.com/reference/androidx/core/content/LocusIdCompat` associated with this notification.

Used by the Android system to correlate objects (such as `https://developer.android.com/reference/androidx/core/content/pm/ShortcutInfoCompat` and `https://developer.android.com/reference/android/view/contentcapture/ContentCaptureContext.html`).

### getOngoing

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static boolean getOngoing(@NonNull Notification notification)
```

Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setOngoing(boolean)`

### getOnlyAlertOnce

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static boolean getOnlyAlertOnce(@NonNull Notification notification)
```

Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setOnlyAlertOnce(boolean)`

### getPeople

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static @NonNull List<Person> getPeople(@NonNull Notification notification)
```

Returns the people in the notification. On platforms which do not have the `https://developer.android.com/reference/android/app/Person.html` class, the `https://developer.android.com/reference/androidx/core/app/Person` objects will contain only the URI from `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#addPerson(java.lang.String)`.

### getPublicVersion

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static @Nullable Notification getPublicVersion(@NonNull Notification notification)
```

Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setVisibility(int)`

### getSettingsText

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static @Nullable CharSequence getSettingsText(@NonNull Notification notification)
```

Returns the settings text provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSettingsText(java.lang.CharSequence)`.

### getShortCriticalText

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static @Nullable String getShortCriticalText(@NonNull Notification notification)
```

Returns the very short text summarizing the most critical information contained in the notification, or null if this field was not set.

### getShortcutId

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static @Nullable String getShortcutId(@NonNull Notification notification)
```

Returns the `https://developer.android.com/reference/androidx/core/content/pm/ShortcutInfoCompat#getId()` that this notification supersedes, if any.

### getShowWhen

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static boolean getShowWhen(@NonNull Notification notification)
```

Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setShowWhen(boolean)`

### getSortKey

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static @Nullable String getSortKey(@NonNull Notification notification)
```

Get a sort key that orders this notification among other notifications from the same package. This can be useful if an external sort was already applied and an app would like to preserve this. Notifications will be sorted lexicographically using this value, although providing different priorities in addition to providing sort key may cause this value to be ignored.

This sort key can also be used to order members of a notification group. See `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroup(java.lang.String)`.

| See also |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html#compareTo(java.lang.String)` |   |

### getSubText

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static @Nullable CharSequence getSubText(@NonNull Notification notification)
```

Returns the sub text provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setSubText(java.lang.CharSequence)`.

### getTimeoutAfter

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static long getTimeoutAfter(@NonNull Notification notification)
```

Returns the time at which this notification should be canceled by the system, if it's not canceled already.

### getUsesChronometer

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static boolean getUsesChronometer(@NonNull Notification notification)
```

Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setUsesChronometer(boolean)`

### getVisibility

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public static int getVisibility(@NonNull Notification notification)
```

Get the value provided to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setVisibility(int)`

### hasPromotableCharacteristics

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static boolean hasPromotableCharacteristics(@NonNull Notification notification)
```

Returns whether the notification has any promotable characteristics.

This is a wrapper around `https://developer.android.com/reference/android/app/Notification.html#hasPromotableCharacteristics()`.

### isGroupSummary

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static boolean isGroupSummary(@NonNull Notification notification)
```

Get whether this notification to be the group summary for a group of notifications. Grouped notifications may display in a cluster or stack on devices which support such rendering. Requires a group key also be set using `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setGroup(java.lang.String)`.

| Returns |
|---|---|
| `boolean` | Whether this notification is a group summary. |

### isRequestPromotedOngoing

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public static boolean isRequestPromotedOngoing(@NonNull Notification notification)
```

Returns whether this notification has requested to be a promoted ongoing notification.

### reduceLargeIconSize

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
public static @Nullable Bitmap reduceLargeIconSize(@NonNull Context context, @Nullable Bitmap icon)
```

Reduces the size of a provided `icon` if it's larger than the maximum allowed for a notification large icon; returns the resized icon. Note that the framework does this scaling automatically starting from API 27.