Fields Summary |
---|
private static final String | TAG |
public static final String | RESULTS_CLIP_LABELLabel used to denote the clip data type used for remote input transport |
public static final String | EXTRA_RESULTS_DATAExtra added to a clip data intent object to hold the results bundle. |
private final String | mResultKey |
private final CharSequence | mLabel |
private final CharSequence[] | mChoices |
private final boolean | mAllowFreeFormInput |
private final android.os.Bundle | mExtras |
private static final Impl | IMPL |
public static final Factory | FACTORY |
Methods Summary |
---|
public static void | addResultsToIntent(android.support.v4.app.RemoteInput[] remoteInputs, android.content.Intent intent, android.os.Bundle results)Populate an intent object with the results gathered from remote input. This method
should only be called by remote input collection services when sending results to a
pending intent.
IMPL.addResultsToIntent(remoteInputs, intent, results);
|
public boolean | getAllowFreeFormInput()Get whether or not users can provide an arbitrary value for
input. If you set this to {@code false}, users must select one of the
choices in {@link #getChoices}. An {@link IllegalArgumentException} is thrown
if you set this to false and {@link #getChoices} returns {@code null} or empty.
return mAllowFreeFormInput;
|
public java.lang.CharSequence[] | getChoices()Get possible input choices. This can be {@code null} if there are no choices to present.
return mChoices;
|
public android.os.Bundle | getExtras()Get additional metadata carried around with this remote input.
return mExtras;
|
public java.lang.CharSequence | getLabel()Get the label to display to users when collecting this input.
return mLabel;
|
public java.lang.String | getResultKey()Get the key that the result of this input will be set in from the Bundle returned by
{@link #getResultsFromIntent} when the {@link android.app.PendingIntent} is sent.
return mResultKey;
|
public static android.os.Bundle | getResultsFromIntent(android.content.Intent intent)Get the remote input results bundle from an intent. The returned Bundle will
contain a key/value for every result key populated by remote input collector.
Use the {@link Bundle#getCharSequence(String)} method to retrieve a value.
return IMPL.getResultsFromIntent(intent);
|