added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)   
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1 Summary: [Constants](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#constants) \| [Ctors](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#pubctors) \| [Methods](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#inhmethods) \| [\[Expand All\]](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#)

# NotificationCompat.WearableExtender


`
public
static
final

class
NotificationCompat.WearableExtender
`


`

extends Object


`

`


implements

https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Extender


`

|---|---|
| java.lang.Object ||
| ↳ | android.support.v4.app.NotificationCompat.WearableExtender |

<br />

*** ** * ** ***

Helper class to add wearable extensions to notifications.

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


To create a notification with wearable extensions:

1. Create a `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder`, setting any desired properties.
2. Create a `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender`.
3. Set wearable-specific properties using the `add` and `set` methods of `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender`.
4. Call `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder#extend(android.support.v4.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.

```
 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.

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

<br />

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_LONG` Sentinel value for use with `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setHintScreenTimeout(int)` to keep the screen on for a longer amount of time when this notification is displayed on the screen. |
| `int` | `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_SHORT` Sentinel value for use with `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setHintScreenTimeout(int)` to keep the screen on for a short amount of time when this notification is displayed on the screen. |
| `int` | `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SIZE_DEFAULT` Size value for use with `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification with default sizing. |
| `int` | `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SIZE_FULL_SCREEN` Size value for use with `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification full screen. |
| `int` | `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SIZE_LARGE` Size value for use with `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification with a large size. |
| `int` | `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SIZE_MEDIUM` Size value for use with `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification with a medium size. |
| `int` | `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SIZE_SMALL` Size value for use with `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification with a small size. |
| `int` | `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SIZE_XSMALL` Size value for use with `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` to show this notification with an extra small size. |
| `int` | `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#UNSET_ACTION_INDEX` Sentinel value for an action index that is unset. |

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

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#addAction(android.support.v4.app.NotificationCompat.Action)(https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action action) ` Add a wearable action to this notification. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#addActions(java.util.List<android.support.v4.app.NotificationCompat.Action>)(List<https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action> actions) ` Adds wearable actions to this notification. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#addPage(android.app.Notification)(https://developer.android.com/reference/android/app/Notification.html page) ` Add an additional page of content to display with this notification. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#addPages(java.util.List<android.app.Notification>)(List<https://developer.android.com/reference/android/app/Notification.html> pages) ` Add additional pages of content to display with this notification. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#clearActions()() ` Clear all wearable actions present on this builder. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#clearPages()() ` Clear all additional pages present on this builder. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#clone()() ` |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#extend(android.support.v4.app.NotificationCompat.Builder)(https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder builder) ` Apply wearable extensions to a notification that is being built. |
| ` List<https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action>` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getActions()() ` Get the wearable actions present on this notification. |
| ` https://developer.android.com/reference/android/graphics/Bitmap.html` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getBackground()() ` Get a background image to be displayed behind the notification content. |
| ` String` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getBridgeTag()() ` Returns the bridge tag of the notification. |
| ` int` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getContentAction()() ` Get the index of the notification action, if any, that was specified as being clickable with the content of this notification. |
| ` int` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getContentIcon()() ` Get an icon that goes with the content of this notification. |
| ` int` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getContentIconGravity()() ` Get the gravity that the content icon should have within the notification display. |
| ` boolean` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getContentIntentAvailableOffline()() ` Get whether the content intent is available when the wearable device is not connected to a companion device. |
| ` int` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getCustomContentHeight()() ` Get the custom height in pixels for the display of this notification's content. |
| ` int` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getCustomSizePreset()() ` Get the custom size preset for the display of this notification out of the available presets found in `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender`, e.g. |
| ` String` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getDismissalId()() ` Returns the dismissal id of the notification. |
| ` https://developer.android.com/reference/android/app/PendingIntent.html` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getDisplayIntent()() ` Get the intent to launch inside of an activity view when displaying this notification. |
| ` int` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getGravity()() ` Get the gravity that this notification should have within the available viewport space. |
| ` boolean` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getHintAmbientBigPicture()() ` Get a hint that this notification's `https://developer.android.com/reference/android/support/v4/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. |
| ` boolean` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getHintAvoidBackgroundClipping()() ` 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. |
| ` boolean` | ` https://developer.android.com/reference/android/support/v4/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 |
| ` boolean` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getHintHideIcon()() ` Get a hint that this notification's icon should not be displayed. |
| ` int` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getHintScreenTimeout()() ` Get the duration, in milliseconds, that the screen should remain on for when this notification is displayed. |
| ` boolean` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getHintShowBackgroundOnly()() ` Get a visual hint that only the background image of this notification should be displayed, and other semantic content should be hidden. |
| ` List<https://developer.android.com/reference/android/app/Notification.html>` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getPages()() ` Get the array of additional pages of content for displaying this notification. |
| ` boolean` | ` https://developer.android.com/reference/android/support/v4/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/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setBackground(android.graphics.Bitmap)(https://developer.android.com/reference/android/graphics/Bitmap.html background) ` Set a background image to be displayed behind the notification content. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setBridgeTag(java.lang.String)(String bridgeTag) ` Sets a bridge tag for this notification. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setContentAction(int)(int actionIndex) ` Set an action from this notification's actions to be clickable with the content of this notification. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setContentIcon(int)(int icon) ` Set an icon that goes with the content of this notification. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setContentIconGravity(int)(int contentIconGravity) ` Set the gravity that the content icon should have within the notification display. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setContentIntentAvailableOffline(boolean)(boolean contentIntentAvailableOffline) ` Set whether the content intent is available when the wearable device is not connected to a companion device. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomContentHeight(int)(int height) ` Set the custom height in pixels for the display of this notification's content. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)(int sizePreset) ` Set the custom size preset for the display of this notification out of the available presets found in `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender`, e.g. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setDismissalId(java.lang.String)(String dismissalId) ` Sets the dismissal id for this notification. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)(https://developer.android.com/reference/android/app/PendingIntent.html intent) ` Set an intent to launch inside of an activity view when displaying this notification. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setGravity(int)(int gravity) ` Set the gravity that this notification should have within the available viewport space. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setHintAmbientBigPicture(boolean)(boolean hintAmbientBigPicture) ` Set a hint that this notification's `https://developer.android.com/reference/android/support/v4/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. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setHintAvoidBackgroundClipping(boolean)(boolean hintAvoidBackgroundClipping) ` 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. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setHintContentIntentLaunchesActivity(boolean)(boolean hintContentIntentLaunchesActivity) ` 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/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setHintHideIcon(boolean)(boolean hintHideIcon) ` Set a hint that this notification's icon should not be displayed. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setHintScreenTimeout(int)(int timeout) ` Set a hint that the screen should remain on for at least this duration when this notification is displayed on the screen. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setHintShowBackgroundOnly(boolean)(boolean hintShowBackgroundOnly) ` Set a visual hint that only the background image of this notification should be displayed, and other semantic content should be hidden. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setStartScrollBottom(boolean)(boolean startScrollBottom) ` 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. |

### Inherited methods

[![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#)From class `

java.lang.Object

` `


Object` `
clone()
` `


boolean` `
equals(Object arg0)
` `


void` `
finalize()
` `


final

Class<?>` `
getClass()
` `


int` `
hashCode()
` `


final

void` `
notify()
` `


final

void` `
notifyAll()
` `


String` `
toString()
` `


final

void` `
wait(long arg0, int arg1)
` `


final

void` `
wait(long arg0)
` `


final

void` `
wait()
` [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#)From interface `

https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Extender

` `
abstract


https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder` `
https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Extender#extend(android.support.v4.app.NotificationCompat.Builder)(https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder builder)
`

Apply this extender to a notification builder.


## Constants

### SCREEN_TIMEOUT_LONG

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int SCREEN_TIMEOUT_LONG
```

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

<br />

Constant Value:

-1
(0xffffffff)


### SCREEN_TIMEOUT_SHORT

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int SCREEN_TIMEOUT_SHORT
```

Sentinel value for use with `https://developer.android.com/reference/android/support/v4/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.

<br />

Constant Value:

0
(0x00000000)


### SIZE_DEFAULT

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int SIZE_DEFAULT
```

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

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

<br />

Constant Value:

0
(0x00000000)


### SIZE_FULL_SCREEN

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int SIZE_FULL_SCREEN
```

Size value for use with `https://developer.android.com/reference/android/support/v4/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/android/support/v4/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`.

<br />

Constant Value:

5
(0x00000005)


### SIZE_LARGE

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int SIZE_LARGE
```

Size value for use with `https://developer.android.com/reference/android/support/v4/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/android/support/v4/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`.

<br />

Constant Value:

4
(0x00000004)


### SIZE_MEDIUM

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int SIZE_MEDIUM
```

Size value for use with `https://developer.android.com/reference/android/support/v4/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/android/support/v4/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`.

<br />

Constant Value:

3
(0x00000003)


### SIZE_SMALL

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int SIZE_SMALL
```

Size value for use with `https://developer.android.com/reference/android/support/v4/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/android/support/v4/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`.

<br />

Constant Value:

2
(0x00000002)


### SIZE_XSMALL

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int SIZE_XSMALL
```

Size value for use with `https://developer.android.com/reference/android/support/v4/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/android/support/v4/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`.

<br />

Constant Value:

1
(0x00000001)


### UNSET_ACTION_INDEX

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int UNSET_ACTION_INDEX
```

Sentinel value for an action index that is unset.

<br />

Constant Value:

-1
(0xffffffff)


## Public constructors

### NotificationCompat.WearableExtender

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender ()
```

Create a `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` with default
options.

<br />

### NotificationCompat.WearableExtender

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender (Notification notification)
```

<br />

<br />

| Parameters ||
|---|---|
| `notification` | `Notification` <br /> |

## Public methods

### addAction

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

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

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/android/support/v4/app/NotificationCompat.Builder#addAction(android.support.v4.app.NotificationCompat.Action)`. This allows for customization
of which actions display on different devices.

<br />

| Parameters ||
|---|---|
| `action` | `NotificationCompat.Action`: the action to add to this notification <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action`

### addActions

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender addActions (List<NotificationCompat.Action> actions)
```

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/android/support/v4/app/NotificationCompat.Builder#addAction(android.support.v4.app.NotificationCompat.Action)`. This allows for customization
of which actions display on different devices.

<br />

| Parameters ||
|---|---|
| `actions` | `List`: the actions to add to this notification <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action`

### addPage

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender addPage (Notification page)
```

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.

<br />

| Parameters ||
|---|---|
| `page` | `Notification`: the notification to add as another page <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getPages()`

### addPages

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender addPages (List<Notification> pages)
```

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.

<br />

| Parameters ||
|---|---|
| `pages` | `List`: a list of notifications <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getPages()`

### clearActions

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender clearActions ()
```

Clear all wearable actions present on this builder.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining. <br /> |

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#addAction(android.support.v4.app.NotificationCompat.Action)`

### clearPages

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender clearPages ()
```

Clear all additional pages present on this builder.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining. <br /> |

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#addPage(android.app.Notification)`

### clone

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender clone ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | <br /> |

### extend

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

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

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

<br />

| Parameters ||
|---|---|
| `builder` | `NotificationCompat.Builder`: the builder to be modified. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder` | the build object for chaining. <br /> |

### getActions

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
List<NotificationCompat.Action> getActions ()
```

Get the wearable actions present on this notification.

<br />

| Returns ||
|---|---|
| `List<https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action>` | <br /> |

### getBackground

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
Bitmap getBackground ()
```

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

<br />

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

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setBackground(android.graphics.Bitmap)`

### getBridgeTag

added in [version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
String getBridgeTag ()
```

Returns the bridge tag of the notification.

<br />

| Returns ||
|---|---|
| `String` | the bridge tag or null if not present. <br /> |

### getContentAction

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int getContentAction ()
```

Get the index of the notification action, if any, that was specified as being clickable
with the content of this notification. This action will no longer display separately
from the notification's content.

For notifications with multiple pages, child pages can also have content actions
set, although the list of available actions comes from the main notification and not
from the child page's notification.

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.

<br />

| Returns ||
|---|---|
| `int` | the action index or `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#UNSET_ACTION_INDEX` if no action was selected. <br /> |

### getContentIcon

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int getContentIcon ()
```

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

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getContentIconGravity

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int getContentIconGravity ()
```

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`.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getContentIcon()`

### getContentIntentAvailableOffline

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
boolean getContentIntentAvailableOffline ()
```

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.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### getCustomContentHeight

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int getCustomContentHeight ()
```

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/android/support/v4/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`. See also `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` and
`https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomContentHeight(int)`.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getCustomSizePreset

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int getCustomSizePreset ()
```

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

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

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getDismissalId

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
String getDismissalId ()
```

Returns the dismissal id of the notification.

<br />

| Returns ||
|---|---|
| `String` | the dismissal id of the notification or null if it has not been set. <br /> |

### getDisplayIntent

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
PendingIntent getDisplayIntent ()
```

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

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/app/PendingIntent.html` | <br /> |

### getGravity

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int getGravity ()
```

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`.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getHintAmbientBigPicture

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
boolean getHintAmbientBigPicture ()
```

Get a hint that this notification's `https://developer.android.com/reference/android/support/v4/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.

<br />

| Returns ||
|---|---|
| `boolean` | `true` if it should be displayed in ambient, false otherwise otherwise. The default value is `false` if this was never set. <br /> |

### getHintAvoidBackgroundClipping

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
boolean getHintAvoidBackgroundClipping ()
```

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.

<br />

| Returns ||
|---|---|
| `boolean` | `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. <br /> |

### getHintContentIntentLaunchesActivity

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
boolean 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

<br />

| Returns ||
|---|---|
| `boolean` | `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. <br /> |

### getHintHideIcon

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
boolean getHintHideIcon ()
```

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

<br />

| Returns ||
|---|---|
| `boolean` | `true` if this icon should not be displayed, false otherwise. The default value is `false` if this was never set. <br /> |

### getHintScreenTimeout

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
int getHintScreenTimeout ()
```

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

<br />

| Returns ||
|---|---|
| `int` | the duration in milliseconds if \> 0, or either one of the sentinel values `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_SHORT` or `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_LONG`. <br /> |

### getHintShowBackgroundOnly

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
boolean getHintShowBackgroundOnly ()
```

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/android/support/v4/app/NotificationCompat.WearableExtender#addPage(android.app.Notification)`.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### getPages

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
List<Notification> getPages ()
```

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.

<br />

| Returns ||
|---|---|
| `List<https://developer.android.com/reference/android/app/Notification.html>` | the pages for this notification <br /> |

### getStartScrollBottom

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
boolean 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. Default is false (start scroll at the top).

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### setBackground

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setBackground (Bitmap background)
```

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

<br />

| Parameters ||
|---|---|
| `background` | `Bitmap`: the background bitmap <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getBackground()`

### setBridgeTag

added in [version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setBridgeTag (String bridgeTag)
```

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/wear/notifications) for more information.

<br />

| Parameters ||
|---|---|
| `bridgeTag` | `String`: the bridge tag of the notification. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

### setContentAction

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setContentAction (int actionIndex)
```

Set an action from this notification's actions to be clickable with the content of
this notification. This action will no longer display separately from the
notification's content.

For notifications with multiple pages, child pages can also have content actions
set, although the list of available actions comes from the main notification and not
from the child page's notification.

<br />

| Parameters ||
|---|---|
| `actionIndex` | `int`: The index of the action to hoist onto the current notification page. 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. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | <br /> |

### setContentIcon

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setContentIcon (int icon)
```

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

<br />

| Parameters ||
|---|---|
| `icon` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | <br /> |

### setContentIconGravity

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setContentIconGravity (int contentIconGravity)
```

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`.

<br />

| Parameters ||
|---|---|
| `contentIconGravity` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setContentIcon(int)`

### setContentIntentAvailableOffline

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setContentIntentAvailableOffline (boolean contentIntentAvailableOffline)
```

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.

<br />

| Parameters ||
|---|---|
| `contentIntentAvailableOffline` | `boolean` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | <br /> |

### setCustomContentHeight

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setCustomContentHeight (int height)
```

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/android/support/v4/app/NotificationCompat.WearableExtender#setDisplayIntent(android.app.PendingIntent)`. See also
`https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#setCustomSizePreset(int)` and
`https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getCustomContentHeight()`.

<br />

| Parameters ||
|---|---|
| `height` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | <br /> |

### setCustomSizePreset

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setCustomSizePreset (int sizePreset)
```

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

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

<br />

| Parameters ||
|---|---|
| `sizePreset` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | <br /> |

### setDismissalId

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setDismissalId (String dismissalId)
```

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/wear/notifications) for more information.

<br />

| Parameters ||
|---|---|
| `dismissalId` | `String`: the dismissal id of the notification. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

### setDisplayIntent

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setDisplayIntent (PendingIntent intent)
```

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.

```
 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:

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

<br />

<br />

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

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

**See also:**

- `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#getDisplayIntent()`

### setGravity

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setGravity (int gravity)
```

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`.

<br />

| Parameters ||
|---|---|
| `gravity` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | <br /> |

### setHintAmbientBigPicture

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setHintAmbientBigPicture (boolean hintAmbientBigPicture)
```

Set a hint that this notification's `https://developer.android.com/reference/android/support/v4/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.

<br />

| Parameters ||
|---|---|
| `hintAmbientBigPicture` | `boolean`: `true` to enable converstion and ambient. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

### setHintAvoidBackgroundClipping

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setHintAvoidBackgroundClipping (boolean hintAvoidBackgroundClipping)
```

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.

<br />

| Parameters ||
|---|---|
| `hintAvoidBackgroundClipping` | `boolean`: `true` to avoid clipping if possible. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

### setHintContentIntentLaunchesActivity

added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setHintContentIntentLaunchesActivity (boolean hintContentIntentLaunchesActivity)
```

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.

<br />

| Parameters ||
|---|---|
| `hintContentIntentLaunchesActivity` | `boolean`: `true` if the content intent will launch an activity and transitions should be generated, false otherwise. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

### setHintHideIcon

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setHintHideIcon (boolean hintHideIcon)
```

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

<br />

| Parameters ||
|---|---|
| `hintHideIcon` | `boolean`: `true` to hide the icon, `false` otherwise. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

### setHintScreenTimeout

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setHintScreenTimeout (int timeout)
```

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

<br />

| Parameters ||
|---|---|
| `timeout` | `int`: The requested screen timeout in milliseconds. Can also be either `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_SHORT` or `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender#SCREEN_TIMEOUT_LONG`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | this object for method chaining <br /> |

### setHintShowBackgroundOnly

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setHintShowBackgroundOnly (boolean hintShowBackgroundOnly)
```

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/android/support/v4/app/NotificationCompat.WearableExtender#addPage(android.app.Notification)`.

<br />

| Parameters ||
|---|---|
| `hintShowBackgroundOnly` | `boolean` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | <br /> |

### setStartScrollBottom

added in [version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

```
NotificationCompat.WearableExtender setStartScrollBottom (boolean startScrollBottom)
```

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

<br />

| Parameters ||
|---|---|
| `startScrollBottom` | `boolean` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender` | <br /> |

-

  ## Annotations

  - [NotificationCompat.Action.SemanticAction](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.SemanticAction)
-

  ## Interfaces

  - [ActionBarDrawerToggle.Delegate](https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.Delegate)
  - [ActionBarDrawerToggle.DelegateProvider](https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.DelegateProvider)
  - [ActivityCompat.OnRequestPermissionsResultCallback](https://developer.android.com/reference/android/support/v4/app/ActivityCompat.OnRequestPermissionsResultCallback)
  - [ActivityCompat.PermissionCompatDelegate](https://developer.android.com/reference/android/support/v4/app/ActivityCompat.PermissionCompatDelegate)
  - [FragmentManager.BackStackEntry](https://developer.android.com/reference/android/support/v4/app/FragmentManager.BackStackEntry)
  - [FragmentManager.OnBackStackChangedListener](https://developer.android.com/reference/android/support/v4/app/FragmentManager.OnBackStackChangedListener)
  - [LoaderManager.LoaderCallbacks](https://developer.android.com/reference/android/support/v4/app/LoaderManager.LoaderCallbacks)
  - [NotificationCompat.Action.Extender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.Extender)
  - [NotificationCompat.Extender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Extender)
  - [SharedElementCallback.OnSharedElementsReadyListener](https://developer.android.com/reference/android/support/v4/app/SharedElementCallback.OnSharedElementsReadyListener)
  - [TaskStackBuilder.SupportParentable](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder.SupportParentable)
-

  ## Classes

  - [ActionBarDrawerToggle](https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle)
  - [ActivityCompat](https://developer.android.com/reference/android/support/v4/app/ActivityCompat)
  - [ActivityManagerCompat](https://developer.android.com/reference/android/support/v4/app/ActivityManagerCompat)
  - [ActivityOptionsCompat](https://developer.android.com/reference/android/support/v4/app/ActivityOptionsCompat)
  - [AlarmManagerCompat](https://developer.android.com/reference/android/support/v4/app/AlarmManagerCompat)
  - [AppLaunchChecker](https://developer.android.com/reference/android/support/v4/app/AppLaunchChecker)
  - [AppOpsManagerCompat](https://developer.android.com/reference/android/support/v4/app/AppOpsManagerCompat)
  - [BundleCompat](https://developer.android.com/reference/android/support/v4/app/BundleCompat)
  - [DialogFragment](https://developer.android.com/reference/android/support/v4/app/DialogFragment)
  - [Fragment](https://developer.android.com/reference/android/support/v4/app/Fragment)
  - [Fragment.SavedState](https://developer.android.com/reference/android/support/v4/app/Fragment.SavedState)
  - [FragmentActivity](https://developer.android.com/reference/android/support/v4/app/FragmentActivity)
  - [FragmentContainer](https://developer.android.com/reference/android/support/v4/app/FragmentContainer)
  - [FragmentController](https://developer.android.com/reference/android/support/v4/app/FragmentController)
  - [FragmentHostCallback](https://developer.android.com/reference/android/support/v4/app/FragmentHostCallback)
  - [FragmentManager](https://developer.android.com/reference/android/support/v4/app/FragmentManager)
  - [FragmentManager.FragmentLifecycleCallbacks](https://developer.android.com/reference/android/support/v4/app/FragmentManager.FragmentLifecycleCallbacks)
  - [FragmentManagerNonConfig](https://developer.android.com/reference/android/support/v4/app/FragmentManagerNonConfig)
  - [FragmentPagerAdapter](https://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter)
  - [FragmentStatePagerAdapter](https://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter)
  - [FragmentTabHost](https://developer.android.com/reference/android/support/v4/app/FragmentTabHost)
  - [FragmentTransaction](https://developer.android.com/reference/android/support/v4/app/FragmentTransaction)
  - [FrameMetricsAggregator](https://developer.android.com/reference/android/support/v4/app/FrameMetricsAggregator)
  - [JobIntentService](https://developer.android.com/reference/android/support/v4/app/JobIntentService)
  - [ListFragment](https://developer.android.com/reference/android/support/v4/app/ListFragment)
  - [LoaderManager](https://developer.android.com/reference/android/support/v4/app/LoaderManager)
  - [NavUtils](https://developer.android.com/reference/android/support/v4/app/NavUtils)
  - [NotificationCompat](https://developer.android.com/reference/android/support/v4/app/NotificationCompat)
  - [NotificationCompat.Action](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action)
  - [NotificationCompat.Action.Builder](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.Builder)
  - [NotificationCompat.Action.WearableExtender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender)
  - [NotificationCompat.BigPictureStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.BigPictureStyle)
  - [NotificationCompat.BigTextStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.BigTextStyle)
  - [NotificationCompat.Builder](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder)
  - [NotificationCompat.CarExtender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.CarExtender)
  - [NotificationCompat.CarExtender.UnreadConversation](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.CarExtender.UnreadConversation)
  - [NotificationCompat.CarExtender.UnreadConversation.Builder](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.CarExtender.UnreadConversation.Builder)
  - [NotificationCompat.DecoratedCustomViewStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.DecoratedCustomViewStyle)
  - [NotificationCompat.InboxStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.InboxStyle)
  - [NotificationCompat.MessagingStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.MessagingStyle)
  - [NotificationCompat.MessagingStyle.Message](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.MessagingStyle.Message)
  - [NotificationCompat.Style](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Style)
  - [NotificationCompat.WearableExtender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender)
  - [NotificationCompatExtras](https://developer.android.com/reference/android/support/v4/app/NotificationCompatExtras)
  - [NotificationCompatSideChannelService](https://developer.android.com/reference/android/support/v4/app/NotificationCompatSideChannelService)
  - [NotificationManagerCompat](https://developer.android.com/reference/android/support/v4/app/NotificationManagerCompat)
  - [RemoteInput](https://developer.android.com/reference/android/support/v4/app/RemoteInput)
  - [RemoteInput.Builder](https://developer.android.com/reference/android/support/v4/app/RemoteInput.Builder)
  - [ServiceCompat](https://developer.android.com/reference/android/support/v4/app/ServiceCompat)
  - [ShareCompat](https://developer.android.com/reference/android/support/v4/app/ShareCompat)
  - [ShareCompat.IntentBuilder](https://developer.android.com/reference/android/support/v4/app/ShareCompat.IntentBuilder)
  - [ShareCompat.IntentReader](https://developer.android.com/reference/android/support/v4/app/ShareCompat.IntentReader)
  - [SharedElementCallback](https://developer.android.com/reference/android/support/v4/app/SharedElementCallback)
  - [TaskStackBuilder](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder)
-

  ## Exceptions

  - [Fragment.InstantiationException](https://developer.android.com/reference/android/support/v4/app/Fragment.InstantiationException)