Stay organized with collections
Save and categorize content based on your preferences.
Extender
interface Extender
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# Notification.Extender\n\nAdded in [API level 20](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nExtender\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/app/Notification.Extender \"View this page in Java\") \n\n```\ninterface Extender\n```\n\n|----------------------------------------|\n| [android.app.Notification.Extender](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Notification.CarExtender](/reference/kotlin/android/app/Notification.CarExtender), [Notification.TvExtender](/reference/kotlin/android/app/Notification.TvExtender), [Notification.WearableExtender](/reference/kotlin/android/app/Notification.WearableExtender) |----------------------------------------------------------------------------------------------|---------------------------------------------------------------| | [Notification.CarExtender](/reference/kotlin/android/app/Notification.CarExtender) | Helper class to add Android Auto extensions to notifications. | | [Notification.TvExtender](/reference/kotlin/android/app/Notification.TvExtender) | Helper class to add Android TV extensions to notifications. | | [Notification.WearableExtender](/reference/kotlin/android/app/Notification.WearableExtender) | Helper class to add wearable extensions to notifications. | |\n\nExtender interface for use with [Builder.extend](/reference/kotlin/android/app/Notification.Builder#extend(android.app.Notification.Extender)). Extenders may be used to add metadata or change options on a notification builder.\n\nSummary\n-------\n\n| Public methods ||\n|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Notification.Builder](/reference/kotlin/android/app/Notification.Builder)! | [extend](#extend(android.app.Notification.Builder))`(`builder:` `[Notification.Builder](/reference/kotlin/android/app/Notification.Builder)!`)` Apply this extender to a notification builder. |\n\nPublic methods\n--------------\n\n### extend\n\nAdded in [API level 20](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun extend(builder: Notification.Builder!): Notification.Builder!\n```\n\nApply this extender to a notification builder.\n\n| Parameters ||\n|-----------|---------------------------------------------------------------------------------------------------------|\n| `builder` | [Notification.Builder](/reference/kotlin/android/app/Notification.Builder)!: the builder to be modified |\n\n| Return ||\n|-----------------------------------------------------------------------------|-------------------------------|\n| [Notification.Builder](/reference/kotlin/android/app/Notification.Builder)! | the build object for chaining |"]]