# NotificationCompat

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

*** ** * ** ***


```
public class NotificationCompat
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> androidx.media is deprecated. Please migrate to [androidx.media3](https://developer.android.com/media/media3).

Class containing media specific `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` that you can use with `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#setStyle(androidx.core.app.NotificationCompat.Style)`.

## Summary

| ### Nested types |
|---|
| `public class https://developer.android.com/reference/androidx/media/app/NotificationCompat.DecoratedMediaCustomViewStyle extends https://developer.android.com/reference/androidx/media/app/NotificationCompat.MediaStyle` **This class is deprecated.** androidx.media is deprecated. <br /> |
| `public class https://developer.android.com/reference/androidx/media/app/NotificationCompat.MediaStyle extends https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style` **This class is deprecated.** androidx.media is deprecated. <br /> |