public class

RemoteInputConstants

extends Object

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

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

Class Overview

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

Constants
String EXTRA_DISALLOW_EMOJI Key for a boolean extra that can be added to a RemoteInput to cause emoji-only options (e.g.
Public Constructors
RemoteInputConstants()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

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"

Public Constructors

public RemoteInputConstants ()