# NotificationCompat.WearableExtender

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

*** ** * ** ***


```
class NotificationCompat.WearableExtender : NotificationCompat.Extender
```

<br />

*** ** * ** ***

Helper class to add wearable extensions to notifications.

See [Creating Notifications for Android Wear](https://developer.android.com/training/wearables/notifications) for more information on how to use this class.

To create a notification with wearable extensions:

1. Create a `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder`, setting any desired properties.
2. Create a `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender`.
3. Set wearable-specific properties using the `add` and `set` methods of `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender`.
4. Call `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder#extend(androidx.core.app.NotificationCompat.Extender)` to apply the extensions to a notification.
5. Post the notification to the notification system with the `NotificationManagerCompat.notify(...)` methods and not the `NotificationManager.notify(...)` methods.

```kotlin
Notification notification = new NotificationCompat.Builder(mContext)
        .setContentTitle("New mail from " + sender.toString())
        .setContentText(subject)
        .setSmallIcon(R.drawable.new_mail)
        .extend(new NotificationCompat.WearableExtender()
                .setContentIcon(R.drawable.new_mail))
        .build();
NotificationManagerCompat.from(mContext).notify(0, notification);
```

Wearable extensions can be accessed on an existing notification by using the `WearableExtender(Notification)` constructor, and then using the `get` methods to access values.

```kotlin
NotificationCompat.WearableExtender wearableExtender =
        new NotificationCompat.WearableExtender(notification);
List<Notification> pages = wearableExtender.getPages();
```

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_LONG() = -1` **This property is deprecated.** This feature is no longer supported. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_SHORT() = 0` **This property is deprecated.** This feature is no longer supported. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SIZE_DEFAULT() = 0` **This property is deprecated.** Display intents are no longer supported. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SIZE_FULL_SCREEN() = 5` **This property is deprecated.** Display intents are no longer supported. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SIZE_LARGE() = 4` **This property is deprecated.** Display intents are no longer supported. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SIZE_MEDIUM() = 3` **This property is deprecated.** Display intents are no longer supported. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SIZE_SMALL() = 2` **This property is deprecated.** Display intents are no longer supported. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SIZE_XSMALL() = 1` **This property is deprecated.** Display intents are no longer supported. <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#UNSET_ACTION_INDEX() = -1` Sentinel value for an action index that is unset. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#WearableExtender()()` Create a `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` with default options. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#WearableExtender(android.app.Notification)(notification: https://developer.android.com/reference/android/app/Notification.html)` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#addAction(androidx.core.app.NotificationCompat.Action)(action: https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Action)` Add a wearable action to this notification. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#addActions(java.util.List<androidx.core.app.NotificationCompat.Action>)(actions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Action!>)` Adds wearable actions to this notification. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[addPage](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#addPage(android.app.Notification))(page: https://developer.android.com/reference/android/app/Notification.html)` **This function is deprecated.** Multiple content pages are no longer supported. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[addPages](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#addPages(java.util.List<android.app.Notification>))(pages: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/app/Notification.html!>)` **This function is deprecated.** Multiple content pages are no longer supported. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#clearActions()()` Clear all wearable actions present on this builder. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[clearPages](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#clearPages())()` **This function is deprecated.** Multiple content pages are no longer supported. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#clone()()` |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#extend(androidx.core.app.NotificationCompat.Builder)(builder: https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder)` Apply wearable extensions to a notification that is being built. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Action!>` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getActions()()` Get the wearable actions present on this notification. |
| `https://developer.android.com/reference/android/graphics/Bitmap.html?` | `[getBackground](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getBackground())()` **This function is deprecated.** Background images are no longer supported. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getBridgeTag()()` Returns the bridge tag of the notification. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getContentAction()()` Get the index of the notification action, if any, that was specified as the primary action. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getContentIcon](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getContentIcon())()` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getContentIconGravity](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getContentIconGravity())()` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getContentIntentAvailableOffline()()` Get whether the content intent is available when the wearable device is not connected to a companion device. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getCustomContentHeight](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getCustomContentHeight())()` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getCustomSizePreset](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getCustomSizePreset())()` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getDismissalId()()` Returns the dismissal id of the notification. |
| `https://developer.android.com/reference/android/app/PendingIntent.html?` | `[getDisplayIntent](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getDisplayIntent())()` **This function is deprecated.** Display intents are no longer supported. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getGravity](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getGravity())()` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[getHintAmbientBigPicture](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintAmbientBigPicture())()` **This function is deprecated.** This feature is no longer supported. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[getHintAvoidBackgroundClipping](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintAvoidBackgroundClipping())()` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintContentIntentLaunchesActivity()()` Get a hint that this notification's content intent will launch an `https://developer.android.com/reference/android/app/Activity.html` directly, telling the platform that it can generate the appropriate transitions |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[getHintHideIcon](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintHideIcon())()` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getHintScreenTimeout](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintScreenTimeout())()` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[getHintShowBackgroundOnly](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintShowBackgroundOnly())()` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/app/Notification.html!>` | `[getPages](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getPages())()` **This function is deprecated.** Multiple content pages are no longer supported. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getStartScrollBottom()()` Get whether the scrolling position for the contents of this notification should start at the bottom of the contents instead of the top when the contents are too long to display within the screen. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setBackground](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setBackground(android.graphics.Bitmap))(background: https://developer.android.com/reference/android/graphics/Bitmap.html?)` **This function is deprecated.** Background images are no longer supported. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setBridgeTag(java.lang.String)(bridgeTag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` Sets a bridge tag for this notification. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setContentAction(int)(actionIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Set an action from this notification's actions as the primary action. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setContentIcon](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setContentIcon(int))(icon: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setContentIconGravity](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setContentIconGravity(int))(contentIconGravity: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setContentIntentAvailableOffline(boolean)( contentIntentAvailableOffline: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Set whether the content intent is available when the wearable device is not connected to a companion device. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setCustomContentHeight](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomContentHeight(int))(height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setCustomSizePreset](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int))(sizePreset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDismissalId(java.lang.String)(dismissalId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` Sets the dismissal id for this notification. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setDisplayIntent](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent))(intent: https://developer.android.com/reference/android/app/PendingIntent.html?)` **This function is deprecated.** Display intents are no longer supported. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setGravity](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setGravity(int))(gravity: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setHintAmbientBigPicture](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintAmbientBigPicture(boolean))(hintAmbientBigPicture: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** This feature is no longer supported. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setHintAvoidBackgroundClipping](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintAvoidBackgroundClipping(boolean))(hintAvoidBackgroundClipping: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintContentIntentLaunchesActivity(boolean)( hintContentIntentLaunchesActivity: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Set a hint that this notification's content intent will launch an `https://developer.android.com/reference/android/app/Activity.html` directly, telling the platform that it can generate the appropriate transitions. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setHintHideIcon](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintHideIcon(boolean))(hintHideIcon: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setHintScreenTimeout](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintScreenTimeout(int))(timeout: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** This method has no effect. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `[setHintShowBackgroundOnly](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintShowBackgroundOnly(boolean))(hintShowBackgroundOnly: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** This method has no effect starting with Wear 2.0. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setStartScrollBottom(boolean)(startScrollBottom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Set whether the scrolling position for the contents of this notification should start at the bottom of the contents instead of the top when the contents are too long to display within the screen. |

## Constants

### SCREEN_TIMEOUT_LONG

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

```
const val SCREEN_TIMEOUT_LONG = -1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> This feature is no longer supported.

Sentinel value for use with `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintScreenTimeout(int)` to keep the screen on for a longer amount of time when this notification is displayed on the screen.

### SCREEN_TIMEOUT_SHORT

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

```
const val SCREEN_TIMEOUT_SHORT = 0: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> This feature is no longer supported.

Sentinel value for use with `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintScreenTimeout(int)` to keep the screen on for a short amount of time when this notification is displayed on the screen. This is the default value.

### SIZE_DEFAULT

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

```
const val SIZE_DEFAULT = 0: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Display intents are no longer supported.

Size value for use with `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification with default sizing.

For custom display notifications created using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`, the default is `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SIZE_MEDIUM()`. All other notifications size automatically based on their content.

### SIZE_FULL_SCREEN

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

```
const val SIZE_FULL_SCREEN = 5: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Display intents are no longer supported.

Size value for use with `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification full screen.

This value is only applicable for custom display notifications created using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`.

### SIZE_LARGE

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

```
const val SIZE_LARGE = 4: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Display intents are no longer supported.

Size value for use with `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification with a large size.

This value is only applicable for custom display notifications created using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`.

### SIZE_MEDIUM

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

```
const val SIZE_MEDIUM = 3: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Display intents are no longer supported.

Size value for use with `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification with a medium size.

This value is only applicable for custom display notifications created using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`.

### SIZE_SMALL

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

```
const val SIZE_SMALL = 2: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Display intents are no longer supported.

Size value for use with `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification with a small size.

This value is only applicable for custom display notifications created using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`.

### SIZE_XSMALL

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

```
const val SIZE_XSMALL = 1: Int
```

> [!CAUTION]
> **This property is deprecated.**   
>
> Display intents are no longer supported.

Size value for use with `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification with an extra small size.

This value is only applicable for custom display notifications created using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`.

### UNSET_ACTION_INDEX

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

```
const val UNSET_ACTION_INDEX = -1: Int
```

Sentinel value for an action index that is unset.

## Public constructors

### WearableExtender

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

```
WearableExtender()
```

Create a `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` with default options.

### WearableExtender

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

```
WearableExtender(notification: Notification)
```

## Public functions

### addAction

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

```
fun addAction(action: NotificationCompat.Action): NotificationCompat.WearableExtender
```

Add a wearable action to this notification.

When wearable actions are added using this method, the set of actions that show on a wearable device splits from devices that only show actions added using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder#addAction(int,java.lang.CharSequence,android.app.PendingIntent)`. This allows for customization of which actions display on different devices.

| Parameters |
|---|---|
| `action: https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Action` | the action to add to this notification |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Action` |   |

### addActions

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

```
fun addActions(actions: (Mutable)List<NotificationCompat.Action!>): NotificationCompat.WearableExtender
```

Adds wearable actions to this notification.

When wearable actions are added using this method, the set of actions that show on a wearable device splits from devices that only show actions added using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder#addAction(int,java.lang.CharSequence,android.app.PendingIntent)`. This allows for customization of which actions display on different devices.

| Parameters |
|---|---|
| `actions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Action!>` | the actions to add to this notification |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Action` |   |

### addPage

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

```
fun [addPage](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#addPage(android.app.Notification))(page: Notification): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Multiple content pages are no longer supported.

Add an additional page of content to display with this notification. The current notification forms the first page, and pages added using this function form subsequent pages. This field can be used to separate a notification into multiple sections.

| Parameters |
|---|---|
| `page: https://developer.android.com/reference/android/app/Notification.html` | the notification to add as another page |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getPages()` |   |

### addPages

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

```
fun [addPages](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#addPages(java.util.List<android.app.Notification>))(pages: (Mutable)List<Notification!>): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Multiple content pages are no longer supported.

Add additional pages of content to display with this notification. The current notification forms the first page, and pages added using this function form subsequent pages. This field can be used to separate a notification into multiple sections.

| Parameters |
|---|---|
| `pages: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/app/Notification.html!>` | a list of notifications |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getPages()` |   |

### clearActions

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

```
fun clearActions(): NotificationCompat.WearableExtender
```

Clear all wearable actions present on this builder.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#addAction(androidx.core.app.NotificationCompat.Action)` |   |

### clearPages

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

```
fun [clearPages](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#clearPages())(): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Multiple content pages are no longer supported.

Clear all additional pages present on this builder.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#addPage(android.app.Notification)` |   |

### clone

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

```
fun clone(): NotificationCompat.WearableExtender
```

### extend

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

Apply wearable extensions to a notification that is being built. This is typically called by the `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder#extend(androidx.core.app.NotificationCompat.Extender)` method of `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder`.

### getActions

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

```
fun getActions(): (Mutable)List<NotificationCompat.Action!>
```

Get the wearable actions present on this notification.

### getBackground

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

```
fun [getBackground](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getBackground())(): Bitmap?
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Background images are no longer supported.

Get a background image to be displayed behind the notification content. Contrary to the `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.BigPictureStyle`, this background will work with any notification style.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/graphics/Bitmap.html?` | the background image |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setBackground(android.graphics.Bitmap)` |   |

### getBridgeTag

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

```
fun getBridgeTag(): String?
```

Returns the bridge tag of the notification.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | the bridge tag or null if not present. |

### getContentAction

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

```
fun getContentAction(): Int
```

Get the index of the notification action, if any, that was specified as the primary action.

If wearable specific actions were added to the main notification, this index will apply to that list, otherwise it will apply to the regular actions list.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the action index or `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#UNSET_ACTION_INDEX()` if no action was selected. |

### getContentIcon

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

```
fun [getContentIcon](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getContentIcon())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Get an icon that goes with the content of this notification.

### getContentIconGravity

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

```
fun [getContentIconGravity](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getContentIconGravity())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Get the gravity that the content icon should have within the notification display. Supported values include `https://developer.android.com/reference/android/view/Gravity.html#START` and `https://developer.android.com/reference/android/view/Gravity.html#END`. The default value is `https://developer.android.com/reference/android/view/Gravity.html#END`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getContentIcon()` |   |

### getContentIntentAvailableOffline

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

```
fun getContentIntentAvailableOffline(): Boolean
```

Get whether the content intent is available when the wearable device is not connected to a companion device. The user can still trigger this intent when the wearable device is offline, but a visual hint will indicate that the content intent may not be available. Defaults to true.

### getCustomContentHeight

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

```
fun [getCustomContentHeight](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getCustomContentHeight())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Get the custom height in pixels for the display of this notification's content.

This option is only available for custom display notifications created using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`. See also `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` and `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomContentHeight(int)`.

### getCustomSizePreset

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

```
fun [getCustomSizePreset](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getCustomSizePreset())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Get the custom size preset for the display of this notification out of the available presets found in `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender`, e.g. `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SIZE_LARGE()`.

Some custom size presets are only applicable for custom display notifications created using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`. Check the documentation for the preset in question. See also `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomContentHeight(int)` and `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)`.

### getDismissalId

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

```
fun getDismissalId(): String?
```

Returns the dismissal id of the notification.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | the dismissal id of the notification or null if it has not been set. |

### getDisplayIntent

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

```
fun [getDisplayIntent](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getDisplayIntent())(): PendingIntent?
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Display intents are no longer supported.

Get the intent to launch inside of an activity view when displaying this notification. This `PendingIntent` should be for an activity.

### getGravity

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

```
fun [getGravity](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getGravity())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Get the gravity that this notification should have within the available viewport space. Supported values include `https://developer.android.com/reference/android/view/Gravity.html#TOP`, `https://developer.android.com/reference/android/view/Gravity.html#CENTER_VERTICAL` and `https://developer.android.com/reference/android/view/Gravity.html#BOTTOM`. The default value is `https://developer.android.com/reference/android/view/Gravity.html#BOTTOM`.

### getHintAmbientBigPicture

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

```
fun [getHintAmbientBigPicture](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintAmbientBigPicture())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This feature is no longer supported.

Get a hint that this notification's `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.BigPictureStyle` (if present) should be converted to low-bit and displayed in ambient mode, especially useful for barcodes and qr codes, as well as other simple black-and-white tickets.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if it should be displayed in ambient, false otherwise otherwise. The default value is `false` if this was never set. |

### getHintAvoidBackgroundClipping

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

```
fun [getHintAvoidBackgroundClipping](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintAvoidBackgroundClipping())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Get a hint that this notification's background should not be clipped if possible, and should instead be resized to fully display on the screen, retaining the aspect ratio of the image. This can be useful for images like barcodes or qr codes.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if it's ok if the background is clipped on the screen, false otherwise. The default value is `false` if this was never set. |

### getHintContentIntentLaunchesActivity

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

```
fun getHintContentIntentLaunchesActivity(): Boolean
```

Get a hint that this notification's content intent will launch an `https://developer.android.com/reference/android/app/Activity.html` directly, telling the platform that it can generate the appropriate transitions

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if the content intent will launch an activity and transitions should be generated, false otherwise. The default value is `false` if this was never set. |

### getHintHideIcon

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

```
fun [getHintHideIcon](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintHideIcon())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Get a hint that this notification's icon should not be displayed.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if this icon should not be displayed, false otherwise. The default value is `false` if this was never set. |

### getHintScreenTimeout

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

```
fun [getHintScreenTimeout](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintScreenTimeout())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Get the duration, in milliseconds, that the screen should remain on for when this notification is displayed.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the duration in milliseconds if \>0, or either one of the sentinel values `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_SHORT()` or `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_LONG()`. |

### getHintShowBackgroundOnly

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

```
fun [getHintShowBackgroundOnly](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getHintShowBackgroundOnly())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Get a visual hint that only the background image of this notification should be displayed, and other semantic content should be hidden. This hint is only applicable to sub-pages added using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#addPage(android.app.Notification)`.

### getPages

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

```
fun [getPages](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getPages())(): (Mutable)List<Notification!>
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Multiple content pages are no longer supported.

Get the array of additional pages of content for displaying this notification. The current notification forms the first page, and elements within this array form subsequent pages. This field can be used to separate a notification into multiple sections.

| Returns |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/app/Notification.html!>` | the pages for this notification |

### getStartScrollBottom

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

```
fun getStartScrollBottom(): Boolean
```

Get whether the scrolling position for the contents of this notification should start at the bottom of the contents instead of the top when the contents are too long to display within the screen. Default is false (start scroll at the top).

### setBackground

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

```
fun [setBackground](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setBackground(android.graphics.Bitmap))(background: Bitmap?): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Background images are no longer supported.

Set a background image to be displayed behind the notification content. Contrary to the `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.BigPictureStyle`, this background will work with any notification style.

| Parameters |
|---|---|
| `background: https://developer.android.com/reference/android/graphics/Bitmap.html?` | the background bitmap |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getBackground()` |   |

### setBridgeTag

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

```
fun setBridgeTag(bridgeTag: String?): NotificationCompat.WearableExtender
```

Sets a bridge tag for this notification. A bridge tag can be set for notifications posted from a phone to provide finer-grained control on what notifications are bridged to wearables. See [Adding Wearable Features to Notifications](https://developer.android.com/training/wearables/notifications/bridger) for more information.

| Parameters |
|---|---|
| `bridgeTag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | the bridge tag of the notification. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

### setContentAction

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

```
fun setContentAction(actionIndex: Int): NotificationCompat.WearableExtender
```

Set an action from this notification's actions as the primary action. If the action has a `https://developer.android.com/reference/kotlin/androidx/core/app/RemoteInput` associated with it, shortcuts to the options for that input are shown directly on the notification.

| Parameters |
|---|---|
| `actionIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the primary action. If wearable actions were added to the main notification, this index will apply to that list, otherwise it will apply to the regular actions list. |

### setContentIcon

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

```
fun [setContentIcon](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setContentIcon(int))(icon: Int): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Set an icon that goes with the content of this notification.

### setContentIconGravity

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

```
fun [setContentIconGravity](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setContentIconGravity(int))(contentIconGravity: Int): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Set the gravity that the content icon should have within the notification display. Supported values include `https://developer.android.com/reference/android/view/Gravity.html#START` and `https://developer.android.com/reference/android/view/Gravity.html#END`. The default value is `https://developer.android.com/reference/android/view/Gravity.html#END`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setContentIcon(int)` |   |

### setContentIntentAvailableOffline

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

```
fun setContentIntentAvailableOffline(
    contentIntentAvailableOffline: Boolean
): NotificationCompat.WearableExtender
```

Set whether the content intent is available when the wearable device is not connected to a companion device. The user can still trigger this intent when the wearable device is offline, but a visual hint will indicate that the content intent may not be available. Defaults to true.

### setCustomContentHeight

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

```
fun [setCustomContentHeight](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomContentHeight(int))(height: Int): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Set the custom height in pixels for the display of this notification's content.

This option is only available for custom display notifications created using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`. See also `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` and `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getCustomContentHeight()`.

### setCustomSizePreset

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

```
fun [setCustomSizePreset](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomSizePreset(int))(sizePreset: Int): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Set the custom size preset for the display of this notification out of the available presets found in `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender`, e.g. `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SIZE_LARGE()`.

Some custom size presets are only applicable for custom display notifications created using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`. Check the documentation for the preset in question. See also `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setCustomContentHeight(int)` and `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getCustomSizePreset()`.

### setDismissalId

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

```
fun setDismissalId(dismissalId: String?): NotificationCompat.WearableExtender
```

Sets the dismissal id for this notification. If a notification is posted with a dismissal id, then when that notification is canceled, notifications on other wearables and the paired Android phone having that same dismissal id will also be canceled. See [Adding Wearable Features to Notifications](https://developer.android.com/training/wearables/notifications/bridger) for more information.

| Parameters |
|---|---|
| `dismissalId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | the dismissal id of the notification. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

### setDisplayIntent

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

```
fun [setDisplayIntent](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent))(intent: PendingIntent?): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Display intents are no longer supported.

Set an intent to launch inside of an activity view when displaying this notification. The `https://developer.android.com/reference/android/app/PendingIntent.html` provided should be for an activity.

```kotlin
Intent displayIntent = new Intent(context, MyDisplayActivity.class);
PendingIntent displayPendingIntent = PendingIntent.getActivity(context,
        0, displayIntent, PendingIntent.FLAG_UPDATE_CURRENT);
Notification notification = new NotificationCompat.Builder(context)
        .extend(new NotificationCompat.WearableExtender()
                .setDisplayIntent(displayPendingIntent)
                .setCustomSizePreset(NotificationCompat.WearableExtender.SIZE_MEDIUM))
.build();
```

The activity to launch needs to allow embedding, must be exported, and should have an empty task affinity. It is also recommended to use the device default light theme.

Example AndroidManifest.xml entry:

```kotlin
<activity android:name="com.example.MyDisplayActivity"
    android:exported="true"
    android:allowEmbedded="true"
    android:taskAffinity=""
android:theme="@android:style/Theme.DeviceDefault.Light" />
```

| Parameters |
|---|---|
| `intent: https://developer.android.com/reference/android/app/PendingIntent.html?` | the `https://developer.android.com/reference/android/app/PendingIntent.html` for an activity |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#getDisplayIntent()` |   |

### setGravity

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

```
fun [setGravity](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setGravity(int))(gravity: Int): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Set the gravity that this notification should have within the available viewport space. Supported values include `https://developer.android.com/reference/android/view/Gravity.html#TOP`, `https://developer.android.com/reference/android/view/Gravity.html#CENTER_VERTICAL` and `https://developer.android.com/reference/android/view/Gravity.html#BOTTOM`. The default value is `https://developer.android.com/reference/android/view/Gravity.html#BOTTOM`.

### setHintAmbientBigPicture

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

```
fun [setHintAmbientBigPicture](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintAmbientBigPicture(boolean))(hintAmbientBigPicture: Boolean): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This feature is no longer supported.

Set a hint that this notification's `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.BigPictureStyle` (if present) should be converted to low-bit and displayed in ambient mode, especially useful for barcodes and qr codes, as well as other simple black-and-white tickets.

| Parameters |
|---|---|
| `hintAmbientBigPicture: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` to enable converstion and ambient. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

### setHintAvoidBackgroundClipping

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

```
fun [setHintAvoidBackgroundClipping](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintAvoidBackgroundClipping(boolean))(hintAvoidBackgroundClipping: Boolean): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Set a hint that this notification's background should not be clipped if possible, and should instead be resized to fully display on the screen, retaining the aspect ratio of the image. This can be useful for images like barcodes or qr codes.

| Parameters |
|---|---|
| `hintAvoidBackgroundClipping: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` to avoid clipping if possible. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

### setHintContentIntentLaunchesActivity

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

```
fun setHintContentIntentLaunchesActivity(
    hintContentIntentLaunchesActivity: Boolean
): NotificationCompat.WearableExtender
```

Set a hint that this notification's content intent will launch an `https://developer.android.com/reference/android/app/Activity.html` directly, telling the platform that it can generate the appropriate transitions.

| Parameters |
|---|---|
| `hintContentIntentLaunchesActivity: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if the content intent will launch an activity and transitions should be generated, false otherwise. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

### setHintHideIcon

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

```
fun [setHintHideIcon](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintHideIcon(boolean))(hintHideIcon: Boolean): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Set a hint that this notification's icon should not be displayed.

| Parameters |
|---|---|
| `hintHideIcon: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` to hide the icon, `false` otherwise. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

### setHintScreenTimeout

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

```
fun [setHintScreenTimeout](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintScreenTimeout(int))(timeout: Int): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect.

Set a hint that the screen should remain on for at least this duration when this notification is displayed on the screen.

| Parameters |
|---|---|
| `timeout: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The requested screen timeout in milliseconds. Can also be either `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_SHORT()` or `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_LONG()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender` | this object for method chaining |

### setHintShowBackgroundOnly

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

```
fun [setHintShowBackgroundOnly](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#setHintShowBackgroundOnly(boolean))(hintShowBackgroundOnly: Boolean): NotificationCompat.WearableExtender
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method has no effect starting with Wear 2.0.

Set a visual hint that only the background image of this notification should be displayed, and other semantic content should be hidden. This hint is only applicable to sub-pages added using `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.WearableExtender#addPage(android.app.Notification)`.

### setStartScrollBottom

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

```
fun setStartScrollBottom(startScrollBottom: Boolean): NotificationCompat.WearableExtender
```

Set whether the scrolling position for the contents of this notification should start at the bottom of the contents instead of the top when the contents are too long to display within the screen. Default is false (start scroll at the top).