RemoteInputConstants

public class RemoteInputConstants
extends Object

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


This class is deprecated.
use androidx.wear.input.RemoteInputIntentHelper provided by the Jetpack Wear Input library instead.

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

This @interface is deprecated. use the Jetpack Wear Watch Face libraries instead.  

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

Constants

EXTRA_DISALLOW_EMOJI

public static final 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

public static final 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

public static final int INPUT_ACTION_TYPE_DONE

Done action type.

Constant Value: 2 (0x00000002)

INPUT_ACTION_TYPE_GO

public static final int INPUT_ACTION_TYPE_GO

Go action type.

Constant Value: 3 (0x00000003)

public static final int INPUT_ACTION_TYPE_SEARCH

Search action type.

Constant Value: 1 (0x00000001)

INPUT_ACTION_TYPE_SEND

public static final int INPUT_ACTION_TYPE_SEND

Send action type.

Constant Value: 0 (0x00000000)

Public constructors

RemoteInputConstants

public RemoteInputConstants ()