Share via


RemoteInput.AddResultsToIntent(RemoteInput[], Intent, Bundle) Method

Definition

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

[Android.Runtime.Register("addResultsToIntent", "([Landroid/app/RemoteInput;Landroid/content/Intent;Landroid/os/Bundle;)V", "")]
public static void AddResultsToIntent (Android.App.RemoteInput[]? remoteInputs, Android.Content.Intent? intent, Android.OS.Bundle? results);
[<Android.Runtime.Register("addResultsToIntent", "([Landroid/app/RemoteInput;Landroid/content/Intent;Landroid/os/Bundle;)V", "")>]
static member AddResultsToIntent : Android.App.RemoteInput[] * Android.Content.Intent * Android.OS.Bundle -> unit

Parameters

remoteInputs
RemoteInput[]

The remote inputs for which results are being provided

intent
Intent

The intent to add remote inputs to. The ClipData field of the intent will be modified to contain the results.

results
Bundle

A bundle holding the remote input results. This bundle should be populated with keys matching the result keys specified in remoteInputs with values being the CharSequence results per key.

Attributes

Remarks

Populate an intent object with the text results gathered from remote input. This method should only be called by remote input collection services when sending results to a pending intent.

Java documentation for android.app.RemoteInput.addResultsToIntent(android.app.RemoteInput[], android.content.Intent, android.os.Bundle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to