Stay organized with collections
Save and categorize content based on your preferences.
Notification.Extender
public
static
interface
Notification.Extender
android.app.Notification.Extender
|
Known indirect subclasses
|
Extender interface for use with Builder.extend
. Extenders may be used to add
metadata or change options on a notification builder.
Summary
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[],[],null,["# Notification.Extender\n\nAdded in [API level 20](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nNotification.Extender\n=====================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/app/Notification.Extender \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nNotification.Extender\n`\n\n\n`\n\n\n`\n\n|-----------------------------------|\n| android.app.Notification.Extender |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [Notification.CarExtender](/reference/android/app/Notification.CarExtender), [Notification.TvExtender](/reference/android/app/Notification.TvExtender), [Notification.WearableExtender](/reference/android/app/Notification.WearableExtender) |---------------------------------------------------------------------------------------|---------------------------------------------------------------| | [Notification.CarExtender](/reference/android/app/Notification.CarExtender) | Helper class to add Android Auto extensions to notifications. | | [Notification.TvExtender](/reference/android/app/Notification.TvExtender) | Helper class to add Android TV extensions to notifications. | | [Notification.WearableExtender](/reference/android/app/Notification.WearableExtender) | Helper class to add wearable extensions to notifications. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nExtender interface for use with [Builder.extend](/reference/android/app/Notification.Builder#extend(android.app.Notification.Extender)). Extenders may be used to add\nmetadata or change options on a notification builder.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[Notification.Builder](/reference/android/app/Notification.Builder) | ` `[extend](/reference/android/app/Notification.Extender#extend(android.app.Notification.Builder))`(`[Notification.Builder](/reference/android/app/Notification.Builder)` builder) ` Apply this extender to a notification builder. |\n\nPublic methods\n--------------\n\n### extend\n\nAdded in [API level 20](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract Notification.Builder extend (Notification.Builder builder)\n```\n\nApply this extender to a notification builder.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------------------------------------------------|\n| `builder` | `Notification.Builder`: the builder to be modified \u003cbr /\u003e |\n\n| Returns ||\n|---------------------------------------------------------------------|--------------------------------------|\n| [Notification.Builder](/reference/android/app/Notification.Builder) | the build object for chaining \u003cbr /\u003e |"]]