# RemoteInputIntentHelper

Artifact: [androidx.wear:wear-input](https://developer.android.com/jetpack/androidx/releases/wear) [View Source](https://cs.android.com/search?q=file:androidx/wear/input/RemoteInputIntentHelper.kt+class:androidx.wear.input.RemoteInputIntentHelper) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

*** ** * ** ***

<br />

```
public final class RemoteInputIntentHelper
```

<br />

*** ** * ** ***

Helper functions for supporting remote inputs through starting an `https://developer.android.com/reference/android/content/Intent.html`.

The following example prompts the user to provide input for one `RemoteInput` by starting an input activity.

```
public const val KEY_QUICK_REPLY_TEXT: String = "quick_reply";
val remoteInputs: List<RemoteInput> = listOf(
    new RemoteInput.Builder(KEY_QUICK_REPLY_TEXT).setLabel("Quick reply").build()
);
val intent: Intent = createActionRemoteInputIntent();
putRemoteInputsExtra(intent, remoteInputs)
startActivityForResult(intent);
```

The intent returned via `https://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent)` will contain the input results if collected, for example:

```
override fun onActivityResult(requestCode: Int, resultCode: Int, intentResults: Intent?) {
    val results: Bundle = RemoteInput.getResultsFromIntent(intentResults)
    val quickReplyResult: CharSequence? = results.getCharSequence(KEY_QUICK_REPLY_TEXT)
}
```

More information about accessing these results can be found in `https://developer.android.com/reference/android/app/RemoteInput.html`.

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#createActionRemoteInputIntent()()` Create an intent with action for remote input. |
| `static final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#getCancelLabelExtra(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent)` Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed to cancel the action. |
| `static final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#getConfirmLabelExtra(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent)` Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed to confirm that the action should be executed. |
| `static final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#getInProgressLabelExtra(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent)` Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed while the wearable is preparing to automatically execute the action. |
| `static final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/RemoteInput.html>` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#getRemoteInputsExtra(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent)` Returns the array of `https://developer.android.com/reference/android/app/RemoteInput.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that specifies inputs to be collected from a user. |
| `static final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html>` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#getSmartReplyContextExtra(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent)` Returns the array of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that provides context for creating Smart Reply choices within a RemoteInput session. |
| `static final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#getTitleExtra(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent)` Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed on top of the confirmation screen to describe the action. |
| `static final boolean` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#hasRemoteInputsExtra(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent)` Checks whether the given `https://developer.android.com/reference/android/content/Intent.html` has extra for the array of `https://developer.android.com/reference/android/app/RemoteInput.html`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#isActionRemoteInput(android.content.Intent)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent)` Checks whether the action of the given intent is for remote input. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putCancelLabelExtra(android.content.Intent,kotlin.CharSequence)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html label)` Adds the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed to cancel the action. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putConfirmLabelExtra(android.content.Intent,kotlin.CharSequence)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html label)` Adds the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed to confirm that the action should be executed. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putInProgressLabelExtra(android.content.Intent,kotlin.CharSequence)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html label )` Adds the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed while the wearable is preparing to automatically execute the action. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putRemoteInputsExtra(android.content.Intent,kotlin.collections.List)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/RemoteInput.html> remoteInputs )` Adds the array of `https://developer.android.com/reference/android/app/RemoteInput.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that specifies inputs collected from a user. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putSmartReplyContextExtra(android.content.Intent,kotlin.collections.List)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html> smartReplyContext )` Adds the array of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that provides context for creating Smart Reply choices within a RemoteInput session. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putTitleExtra(android.content.Intent,kotlin.CharSequence)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html title)` Adds the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed on top of the confirmation screen to describe the action like "SMS" or "Email". |

## Public methods

### createActionRemoteInputIntent

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

```
public static final @NonNull Intent createActionRemoteInputIntent()
```

Create an intent with action for remote input. This intent can be used to start an activity that will prompt the user for input. With the other helpers in this class to specify the intent extras, we can configure the behaviour of the input activity, such as specifying input be collected from a user by populating with an array of `https://developer.android.com/reference/android/app/RemoteInput.html` with `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putRemoteInputsExtra(android.content.Intent,kotlin.collections.List)`.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | The created intent with action for remote input. |

### getCancelLabelExtra

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

```
public static final @Nullable CharSequence getCancelLabelExtra(@NonNull Intent intent)
```

Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed to cancel the action.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | The CharSequence previously added with `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putCancelLabelExtra(android.content.Intent,kotlin.CharSequence)` or null if no value is found. |

### getConfirmLabelExtra

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

```
public static final @Nullable CharSequence getConfirmLabelExtra(@NonNull Intent intent)
```

Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed to confirm that the action should be executed.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | The CharSequence previously added with `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putConfirmLabelExtra(android.content.Intent,kotlin.CharSequence)` or null if no value is found. |

### getInProgressLabelExtra

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

```
public static final @Nullable CharSequence getInProgressLabelExtra(@NonNull Intent intent)
```

Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed while the wearable is preparing to automatically execute the action.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | The CharSequence previously added with `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putInProgressLabelExtra(android.content.Intent,kotlin.CharSequence)` or null if no value is found. |

### getRemoteInputsExtra

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

```
public static final @Nullable List<@NonNull RemoteInput> getRemoteInputsExtra(@NonNull Intent intent)
```

Returns the array of `https://developer.android.com/reference/android/app/RemoteInput.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that specifies inputs to be collected from a user. Should be used with `https://developer.android.com/reference/android/content/Intent.html` created with .createActionRemoteInputIntent.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/RemoteInput.html>` | The array of `https://developer.android.com/reference/android/app/RemoteInput.html` previously added with `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putRemoteInputsExtra(android.content.Intent,kotlin.collections.List)` or null which means no user input required. |

### getSmartReplyContextExtra

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

```
public static final @Nullable List<@NonNull CharSequence> getSmartReplyContextExtra(@NonNull Intent intent)
```

Returns the array of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that provides context for creating Smart Reply choices within a RemoteInput session.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html>` | The array of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` previously added with `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putSmartReplyContextExtra(android.content.Intent,kotlin.collections.List)` or `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putSmartReplyContextExtra(android.content.Intent,kotlin.collections.List)` or null if no value is found. |

### getTitleExtra

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

```
public static final @Nullable CharSequence getTitleExtra(@NonNull Intent intent)
```

Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` from the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed on top of the confirmation screen to describe the action.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | The CharSequence previously added with `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#putTitleExtra(android.content.Intent,kotlin.CharSequence)` or null if no value is found. |

### hasRemoteInputsExtra

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

```
public static final boolean hasRemoteInputsExtra(@NonNull Intent intent)
```

Checks whether the given `https://developer.android.com/reference/android/content/Intent.html` has extra for the array of `https://developer.android.com/reference/android/app/RemoteInput.html`.

### isActionRemoteInput

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

```
public static final boolean isActionRemoteInput(@NonNull Intent intent)
```

Checks whether the action of the given intent is for remote input.

### putCancelLabelExtra

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

```
public static final @NonNull Intent putCancelLabelExtra(@NonNull Intent intent, @NonNull CharSequence label)
```

Adds the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed to cancel the action. This is usually an imperative verb, like "Cancel". Defaults to Cancel.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html label` | The CharSequence to be added. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | The given intent. |

### putConfirmLabelExtra

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

```
public static final @NonNull Intent putConfirmLabelExtra(@NonNull Intent intent, @NonNull CharSequence label)
```

Adds the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed to confirm that the action should be executed. This is usually an imperative verb like "Send". Defaults to "Send".

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html label` | The CharSequence to be added. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | The given intent. |

### putInProgressLabelExtra

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

```
public static final @NonNull Intent putInProgressLabelExtra(
    @NonNull Intent intent,
    @NonNull CharSequence label
)
```

Adds the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed while the wearable is preparing to automatically execute the action. This is usually a 'ing' verb ending in ellipsis like "Sending...". Defaults to "Sending...".

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html label` | The CharSequence to be added. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | The given intent. |

### putRemoteInputsExtra

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

```
public static final @NonNull Intent putRemoteInputsExtra(
    @NonNull Intent intent,
    @NonNull List<@NonNull RemoteInput> remoteInputs
)
```

Adds the array of `https://developer.android.com/reference/android/app/RemoteInput.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that specifies inputs collected from a user. Should be used with `https://developer.android.com/reference/android/content/Intent.html` created with `https://developer.android.com/reference/androidx/wear/input/RemoteInputIntentHelper#createActionRemoteInputIntent()`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/RemoteInput.html> remoteInputs` | The array of `https://developer.android.com/reference/android/app/RemoteInput.html` to be added. |

### putSmartReplyContextExtra

```
public static final @NonNull Intent putSmartReplyContextExtra(
    @NonNull Intent intent,
    @NonNull List<@NonNull CharSequence> smartReplyContext
)
```

Adds the array of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that provides context for creating Smart Reply choices within a RemoteInput session. The context should be incoming chat messages that a user will reply to using RemoteInput. Only incoming messages (messages from other users) should be passed via this extra.

The messages should be in the order that they were received with the newest messages at the highest index of the CharSequence\[\]. For example, a possible value for this extra would be: "hey", "where are you?". In this case, "where are you?" was the most recently received message.

Passing a chat context into RemoteInput using this method does not guarantee that Smart Reply choices will be shown to a user.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html> smartReplyContext` | The string to be added. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | The given intent. |

### putTitleExtra

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

```
public static final @NonNull Intent putTitleExtra(@NonNull Intent intent, @NonNull CharSequence title)
```

Adds the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` to the given `https://developer.android.com/reference/android/content/Intent.html` that specifies what is displayed on top of the confirmation screen to describe the action like "SMS" or "Email".

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html intent` | The intent with given data. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html title` | The CharSequence to be added. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/content/Intent.html` | The given intent. |