# NotificationCompat.Extender

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/app/NotificationCompat.Extender "View this page in Java")

<br />

```
interface NotificationCompat.Extender
```

<br />

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

|---------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------|
| [CarAppExtender](https://developer.android.com/reference/kotlin/androidx/car/app/notification/CarAppExtender)                               | Helper class to add car app extensions to notifications.      |
| [NotificationCompat.CarExtender](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.CarExtender)           | Helper class to add Android Auto extensions to notifications. |
| [NotificationCompat.TvExtender](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.TvExtender)             | Helper class to add Android TV extensions to notifications.   |
| [NotificationCompat.WearableExtender](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender) | Helper class to add wearable extensions to notifications.     |

*** ** * ** ***

Extender interface for use with[extend](https://developer.android.com/reference/kotlin/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 functions                                                    |
|---------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [NotificationCompat.Builder](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder) | [extend](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Extender#extend(androidx.core.app.NotificationCompat.Builder))`(builder: `[NotificationCompat.Builder](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder)`)` Apply this extender to a notification builder. |

## Public functions

### extend

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

```
fun extend(builder: NotificationCompat.Builder): NotificationCompat.Builder
```

Apply this extender to a notification builder.  

|                                                              Parameters                                                              |
|--------------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| `builder: `[NotificationCompat.Builder](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder) | the builder to be modified. |

|                                                          Returns                                                          |
|---------------------------------------------------------------------------------------------------------------------------|--------------------------------|
| [NotificationCompat.Builder](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder) | the build object for chaining. |