Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

RemoteInputConstants

public class RemoteInputConstants
extends Object

java.lang.Object
   ↳ android.support.wearable.input.RemoteInputConstants


Constants for customizing a RemoteInput instance.

These constants define extras that can be added to a RemoteInput to change the input options that will be presented.

For example, to create a RemoteInput that will allow free form input (e.g. voice input on Wear), but not show the Draw Emoji option:

Bundle extras = new Bundle();
 extras.putBoolean(RemoteInputConstants.EXTRA_DISALLOW_EMOJI, true);
 RemoteInput remoteInput = new RemoteInput.Builder(resultKey)
         .setAllowFreeFormInput(true)
         .addExtras(extras)
         .build();

Summary

Nested classes

@interface RemoteInputConstants.InputActionType

The action type operation for a given RemoteInput session. 

Constants

String EXTRA_DISALLOW_EMOJI

Key for a boolean extra that can be added to a RemoteInput to cause emoji-only options (e.g.

String EXTRA_INPUT_ACTION_TYPE

Key for an integer extra that can be added to a RemoteInput to modify the action type of the RemoteInput session (e.g.

int INPUT_ACTION_TYPE_DONE

Done action type.

int INPUT_ACTION_TYPE_GO

Go action type.

int INPUT_ACTION_TYPE_SEARCH

Search action type.

int INPUT_ACTION_TYPE_SEND

Send action type.

Public constructors

RemoteInputConstants()

Inherited methods

From class java.lang.Object

Constants

EXTRA_DISALLOW_EMOJI

String EXTRA_DISALLOW_EMOJI

Key for a boolean extra that can be added to a RemoteInput to cause emoji-only options (e.g. the Draw Emoji option) to not be shown.

If this extra has value true, the Draw Emoji option will not be shown. If this extra is not present or has any other value, the Draw Emoji option will be shown as long as the RemoteInput allows free form input.

Constant Value: "android.support.wearable.input.extra.DISALLOW_EMOJI"

EXTRA_INPUT_ACTION_TYPE

String EXTRA_INPUT_ACTION_TYPE

Key for an integer extra that can be added to a RemoteInput to modify the action type of the RemoteInput session (e.g. "send" or "search"). The default action type is "send."

Constant Value: "android.support.wearable.input.extra.INPUT_ACTION_TYPE"

INPUT_ACTION_TYPE_DONE

int INPUT_ACTION_TYPE_DONE

Done action type.

Constant Value: 2 (0x00000002)

INPUT_ACTION_TYPE_GO

int INPUT_ACTION_TYPE_GO

Go action type.

Constant Value: 3 (0x00000003)

INPUT_ACTION_TYPE_SEARCH

int INPUT_ACTION_TYPE_SEARCH

Search action type.

Constant Value: 1 (0x00000001)

INPUT_ACTION_TYPE_SEND

int INPUT_ACTION_TYPE_SEND

Send action type.

Constant Value: 0 (0x00000000)

Public constructors

RemoteInputConstants

RemoteInputConstants ()