# NotificationCompat.Extender

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.Extender) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
public interface NotificationCompat.Extender
```

<br />

Known direct subclasses [CarAppExtender](https://developer.android.com/reference/androidx/car/app/notification/CarAppExtender), [NotificationCompat.CarExtender](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender), [NotificationCompat.ProjectedExtender](https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProjectedExtender), [NotificationCompat.TvExtender](https://developer.android.com/reference/androidx/core/app/NotificationCompat.TvExtender), [NotificationCompat.WearableExtender](https://developer.android.com/reference/androidx/core/app/NotificationCompat.WearableExtender)

|---|---|
| `https://developer.android.com/reference/androidx/car/app/notification/CarAppExtender` | Helper class to add car app extensions to notifications. |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender` | Helper class to add Android Auto extensions to notifications. |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProjectedExtender` | Helper class to add projection-specific extensions to a notification. |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.TvExtender` | Helper class to add Android TV extensions to notifications. |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.WearableExtender` | Helper class to add wearable extensions to notifications. |

*** ** * ** ***

Extender interface for use with `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#extend(androidx.core.app.NotificationCompat.Extender)`. Extenders may be used to add metadata or change options on a notification builder.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Extender#extend(androidx.core.app.NotificationCompat.Builder)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder builder)` Apply this extender to a notification builder. |

## Public methods

### extend

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

```
abstract @NonNull NotificationCompat.Builder extend(@NonNull NotificationCompat.Builder builder)
```

Apply this extender to a notification builder.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder builder` | the builder to be modified. |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder` | the build object for chaining. |