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

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()

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"

Public constructors

RemoteInputConstants

RemoteInputConstants ()