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.InputActionTypeThis @interface is deprecated. use the Jetpack Wear Watch Face libraries instead. | 
| Constants | |
|---|---|
| String | EXTRA_DISALLOW_EMOJIKey for a boolean extra that can be added to a  | 
| String | EXTRA_INPUT_ACTION_TYPEKey for an integer extra that can be added to a  | 
| int | INPUT_ACTION_TYPE_DONEDone action type. | 
| int | INPUT_ACTION_TYPE_GOGo action type. | 
| int | INPUT_ACTION_TYPE_SEARCHSearch action type. | 
| int | INPUT_ACTION_TYPE_SENDSend 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)
INPUT_ACTION_TYPE_SEARCH
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 ()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
