Summary: [Constants](https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent#constants) \| [Ctors](https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent#pubctors) \| [Inherited Methods](https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent#inhmethods)

# RemoteInputIntent


`
public


class
RemoteInputIntent
`


`

extends http://developer.android.com/reference/java/lang/Object.html


`

`


`

|---|---|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | android.support.wearable.input.RemoteInputIntent |

<br />

*** ** * ** ***


**This class is deprecated.**   

use `androidx.wear.input.RemoteInputIntentHelper` provided by the [Jetpack Wear Input](https://developer.android.com/jetpack/androidx/releases/wear) library instead.

Constants for supporting remote inputs through starting an `http://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.

```scdoc
 public static final String KEY_QUICK_REPLY_TEXT = "quick_reply";
 RemoteInput[] remoteInputs = new RemoteInput[] {
     new RemoteInput.Builder(KEY_QUICK_REPLY_TEXT).setLabel("Quick reply").build()
 };
 Intent intent = new Intent(ACTION_REMOTE_INPUT);
 intent.putExtra(EXTRA_REMOTE_INPUTS, remoteInputs);
 startActivity(intent);
 
```

The intent returned via `http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int,%20int,%20android.content.Intent)` will contain the input results if
collected. To access these results, use the `http://developer.android.com/reference/android/app/RemoteInput.html#getResultsFromIntent(android.content.Intent)` function.
The result values will present under the result key passed to the `http://developer.android.com/reference/android/app/RemoteInput.Builder.html`
constructor.

```scdoc
 public static final String KEY_QUICK_REPLY_TEXT = "quick_reply";
 Bundle results = RemoteInput.getResultsFromIntent(intent);
 if (results != null) {
     CharSequence quickReplyResult = results.getCharSequence(KEY_QUICK_REPLY_TEXT);
 }
```

<br />

## Summary

| ### Constants ||
|---|---|
| `http://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#ACTION_REMOTE_INPUT` Starts an activity that will prompt the user for inputs based on the `http://developer.android.com/reference/android/app/RemoteInput.html`. |
| `http://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#EXTRA_CANCEL_LABEL` Optional string to display to cancel the action. |
| `http://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#EXTRA_CONFIRM_LABEL` Optional string to display to confirm that the action should be executed. |
| `http://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#EXTRA_IN_PROGRESS_LABEL` Optional string to display while the wearable is preparing to automatically execute the action. |
| `http://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#EXTRA_REMOTE_INPUTS` Array of `http://developer.android.com/reference/android/app/RemoteInput.html`, to be used with `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#ACTION_REMOTE_INPUT`, to specify inputs to be collected from a user. |
| `http://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#EXTRA_SKIP_CONFIRMATION_UI` *This constant is deprecated. This extra has no effect in Wear 2.0 and beyond as the input method is showing its own confirmation. You should remove this extra from your code, no need to replace it with anything else.* |
| `http://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#EXTRA_SMART_REPLY_CONTEXT` Optional CharSequence\[\] to be used to provide context for creating Smart Reply choices within a RemoteInput session. |
| `http://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#EXTRA_TITLE` String to display on top of the confirmation screen to describe the action like "SMS" or "Email". |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#RemoteInputIntent()() ` |

| ### Inherited methods |
|---|---|
| From class ` http://developer.android.com/reference/java/lang/Object.html ` |---|---| | ` http://developer.android.com/reference/java/lang/Object.html` | ` clone() ` | | ` boolean` | ` equals(http://developer.android.com/reference/java/lang/Object.html arg0) ` | | ` void` | ` finalize() ` | | ` final http://developer.android.com/reference/java/lang/Class.html<?>` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` http://developer.android.com/reference/java/lang/String.html` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||

## Constants

### ACTION_REMOTE_INPUT

```
public static final String ACTION_REMOTE_INPUT
```

Starts an activity that will prompt the user for inputs based on the `http://developer.android.com/reference/android/app/RemoteInput.html`. The
results will be returned via activity results (in `http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int,%20int,%20android.content.Intent)`. To
retrieve the user's inputs, `http://developer.android.com/reference/android/app/RemoteInput.html#getResultsFromIntent(android.content.Intent)` should be called to get a
bundle containing a key/value for every result key populated by remote input collector.

When using this action, the extra `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#EXTRA_REMOTE_INPUTS` should be populated with an
array of `http://developer.android.com/reference/android/app/RemoteInput.html`.

<br />

Constant Value:

"android.support.wearable.input.action.REMOTE_INPUT"


### EXTRA_CANCEL_LABEL

```
public static final String EXTRA_CANCEL_LABEL
```

Optional string to display to cancel the action. This is usually an imperative verb, like
"Cancel". Defaults to Cancel.

<br />

Constant Value:

"android.support.wearable.input.extra.CANCEL_LABEL"


### EXTRA_CONFIRM_LABEL

```
public static final String EXTRA_CONFIRM_LABEL
```

Optional string to display to confirm that the action should be executed. This is usually an
imperative verb like "Send". Defaults to "Send".

<br />

Constant Value:

"android.support.wearable.input.extra.CONFIRM_LABEL"


### EXTRA_IN_PROGRESS_LABEL

```
public static final String EXTRA_IN_PROGRESS_LABEL
```

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

<br />

Constant Value:

"android.support.wearable.input.extra.IN_PROGRESS_LABEL"


### EXTRA_REMOTE_INPUTS

```
public static final String EXTRA_REMOTE_INPUTS
```

Array of `http://developer.android.com/reference/android/app/RemoteInput.html`, to be used with `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#ACTION_REMOTE_INPUT`, to specify inputs
to be collected from a user.

<br />

Constant Value:

"android.support.wearable.input.extra.REMOTE_INPUTS"


### EXTRA_SKIP_CONFIRMATION_UI

```
public static final String EXTRA_SKIP_CONFIRMATION_UI
```


**This constant is deprecated.**   

This extra has no effect in Wear 2.0 and beyond as the input method is showing its
own confirmation. You should remove this extra from your code, no need to replace it with
anything else.

Optional boolean, to be used with `https://developer.android.com/reference/android/support/wearable/input/RemoteInputIntent.html#ACTION_REMOTE_INPUT`, to determine if a confirmation
screen should be shown to a user after entering input. This field defaults to true, meaning
that the confirmation screen will be skipped and not shown to a user before results are
returned via activity results. If a full screen confirmation is required, this extra must be
provided and should be false.

Note that the default behavior of this extra has changed in Android Wear 2.0. Each input
method (voice, keyboard, emoji, handwriting, etc) is responsible for showing its own
confirmation step. Because of this, the default value for this extra has been changed from
false to true.

<br />

Constant Value:

"android.support.wearable.input.extra.SKIP_CONFIRMATION_UI"


### EXTRA_SMART_REPLY_CONTEXT

```
public static final String EXTRA_SMART_REPLY_CONTEXT
```

Optional CharSequence\[\] to be used to provide 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 extra does not guarantee that Smart Reply
choices will be shown to a user.

<br />

Constant Value:

"android.support.wearable.input.extra.SMART_REPLY_CONTEXT"


### EXTRA_TITLE

```
public static final String EXTRA_TITLE
```

String to display on top of the confirmation screen to describe the action like "SMS" or
"Email".

<br />

Constant Value:

"android.support.wearable.input.extra.TITLE"


## Public constructors

### RemoteInputIntent

```
public RemoteInputIntent ()
```

<br />

<br />