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: [Ctors](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#pubctors) \| [Methods](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#inhmethods) \| [\[Expand All\]](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#)

# NotificationCompat.Action.WearableExtender


`
public
static
final

class
NotificationCompat.Action.WearableExtender
`


`

extends Object


`

`


implements

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


`

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

<br />

*** ** * ** ***

Wearable extender for notification actions. To add extensions to an action,
create a new `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` object using
the `WearableExtender()` constructor and apply it to a
`https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.Builder` using
`https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.Builder#extend(android.support.v4.app.NotificationCompat.Action.Extender)`.

```
 NotificationCompat.Action action = new NotificationCompat.Action.Builder(
         R.drawable.archive_all, "Archive all", actionIntent)
         .extend(new NotificationCompat.Action.WearableExtender()
                 .setAvailableOffline(false))
         .build();
```

<br />

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#NotificationCompat.Action.WearableExtender()() ` Create a `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` with default options. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#NotificationCompat.Action.WearableExtender(android.support.v4.app.NotificationCompat.Action)(https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action action) ` Create a `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` by reading wearable options present in an existing notification action. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#clone()() ` |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.Builder` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#extend(android.support.v4.app.NotificationCompat.Action.Builder)(https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.Builder builder) ` Apply wearable extensions to a notification action that is being built. |
| ` CharSequence` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#getCancelLabel()() ` Get the label to display to cancel the action. |
| ` CharSequence` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#getConfirmLabel()() ` Get the label to display to confirm that the action should be executed. |
| ` boolean` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#getHintDisplayActionInline()() ` Get a hint that this Action should be displayed inline - i.e. |
| ` boolean` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#getHintLaunchesActivity()() ` Get a hint that this Action will launch an `https://developer.android.com/reference/android/app/Activity.html` directly, telling the platform that it can generate the appropriate transitions |
| ` CharSequence` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#getInProgressLabel()() ` Get the label to display while the wearable is preparing to automatically execute the action. |
| ` boolean` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#isAvailableOffline()() ` Get whether this action is available when the wearable device is not connected to a companion device. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#setAvailableOffline(boolean)(boolean availableOffline) ` Set whether this action is available when the wearable device is not connected to a companion device. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#setCancelLabel(java.lang.CharSequence)(CharSequence label) ` Set a label to display to cancel the action. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#setConfirmLabel(java.lang.CharSequence)(CharSequence label) ` Set a label to display to confirm that the action should be executed. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#setHintDisplayActionInline(boolean)(boolean hintDisplayInline) ` Set a hint that this Action should be displayed inline - i.e. |
| ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#setHintLaunchesActivity(boolean)(boolean hintLaunchesActivity) ` Set a hint that this Action 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.Action.WearableExtender` | ` https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender#setInProgressLabel(java.lang.CharSequence)(CharSequence label) ` Set a label to display while the wearable is preparing to automatically execute the action. |

### Inherited methods

[![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.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.Action.WearableExtender#)From interface `

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

` `
abstract


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

Apply this extender to a notification action builder.


## Public constructors

### NotificationCompat.Action.WearableExtender

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

```
NotificationCompat.Action.WearableExtender ()
```

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

<br />

### NotificationCompat.Action.WearableExtender

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

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

Create a `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` by reading
wearable options present in an existing notification action.

<br />

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

## Public methods

### clone

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

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

<br />

<br />

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

### extend

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

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

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

<br />

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

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

### getCancelLabel

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

```
CharSequence getCancelLabel ()
```

Get the label to display to cancel the action.
This is usually an imperative verb like "Cancel".

<br />

| Returns ||
|---|---|
| `CharSequence` | the label to display to cancel the action <br /> |

### getConfirmLabel

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

```
CharSequence getConfirmLabel ()
```

Get the label to display to confirm that the action should be executed.
This is usually an imperative verb like "Send".

<br />

| Returns ||
|---|---|
| `CharSequence` | the label to confirm the action should be executed <br /> |

### getHintDisplayActionInline

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

```
boolean getHintDisplayActionInline ()
```

Get a hint that this Action should be displayed inline - i.e. it should have a
visual representation directly on the notification surface in addition to the
expanded Notification

<br />

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

### getHintLaunchesActivity

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

```
boolean getHintLaunchesActivity ()
```

Get a hint that this Action 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 /> |

### getInProgressLabel

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

```
CharSequence getInProgressLabel ()
```

Get the label to display while the wearable is preparing to automatically execute
the action. This is usually a 'ing' verb ending in ellipsis like "Sending..."

<br />

| Returns ||
|---|---|
| `CharSequence` | the label to display while the action is being prepared to execute <br /> |

### isAvailableOffline

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

```
boolean isAvailableOffline ()
```

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

<br />

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

### setAvailableOffline

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

```
NotificationCompat.Action.WearableExtender setAvailableOffline (boolean availableOffline)
```

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

<br />

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

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

### setCancelLabel

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

```
NotificationCompat.Action.WearableExtender setCancelLabel (CharSequence label)
```

Set a label to display to cancel the action.
This is usually an imperative verb, like "Cancel".

<br />

| Parameters ||
|---|---|
| `label` | `CharSequence`: the label to display to cancel the action <br /> |

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

### setConfirmLabel

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

```
NotificationCompat.Action.WearableExtender setConfirmLabel (CharSequence label)
```

Set a label to display to confirm that the action should be executed.
This is usually an imperative verb like "Send".

<br />

| Parameters ||
|---|---|
| `label` | `CharSequence`: the label to confirm the action should be executed <br /> |

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

### setHintDisplayActionInline

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

```
NotificationCompat.Action.WearableExtender setHintDisplayActionInline (boolean hintDisplayInline)
```

Set a hint that this Action should be displayed inline - i.e. it will have a visual
representation directly on the notification surface in addition to the expanded
Notification

<br />

| Parameters ||
|---|---|
| `hintDisplayInline` | `boolean`: `true` if action should be displayed inline, false otherwise <br /> |

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

### setHintLaunchesActivity

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

```
NotificationCompat.Action.WearableExtender setHintLaunchesActivity (boolean hintLaunchesActivity)
```

Set a hint that this Action 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 ||
|---|---|
| `hintLaunchesActivity` | `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.Action.WearableExtender` | this object for method chaining <br /> |

### setInProgressLabel

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

```
NotificationCompat.Action.WearableExtender setInProgressLabel (CharSequence label)
```

Set a label to display while the wearable is preparing to automatically execute the
action. This is usually a 'ing' verb ending in ellipsis like "Sending..."

<br />

| Parameters ||
|---|---|
| `label` | `CharSequence`: the label to display while the action is being prepared to execute <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender` | this object for method chaining <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)