RemoteInput

public final class RemoteInput
extends Object

java.lang.Object
   ↳ androidx.core.app.RemoteInput


Helper for using the RemoteInput.

Summary

Nested classes

class RemoteInput.Builder

Builder class for RemoteInput objects. 

Constants

int EDIT_CHOICES_BEFORE_SENDING_AUTO

The platform will determine whether choices will be edited before being sent to the app.

int EDIT_CHOICES_BEFORE_SENDING_DISABLED

Tapping on a choice should send the input immediately, without letting the user edit it.

int EDIT_CHOICES_BEFORE_SENDING_ENABLED

Tapping on a choice should let the user edit the input before it is sent to the app.

String EXTRA_RESULTS_DATA

Extra added to a clip data intent object to hold the text results bundle.

String RESULTS_CLIP_LABEL

Label used to denote the clip data type used for remote input transport

int SOURCE_CHOICE

The user selected one of the choices from getChoices().

int SOURCE_FREE_FORM_INPUT

The user manually entered the data.

Public methods

static void addDataResultToIntent(RemoteInput remoteInput, Intent intent, Map<String, Uri> results)

Same as addResultsToIntent(RemoteInput[], Intent, Bundle) but for setting data results.

static void addResultsToIntent(RemoteInput[] remoteInputs, Intent intent, Bundle results)

Populate an intent object with the results gathered from remote input.

boolean getAllowFreeFormInput()

Get whether or not users can provide an arbitrary value for input.

Set<String> getAllowedDataTypes()
CharSequence[] getChoices()

Get possible input choices.

static Map<String, Uri> getDataResultsFromIntent(Intent intent, String remoteInputResultKey)