Udostępnij za pośrednictwem


RemoteInput.AddDataResultToIntent Method

Definition

Same as #addResultsToIntent but for setting data results.

[Android.Runtime.Register("addDataResultToIntent", "(Landroid/app/RemoteInput;Landroid/content/Intent;Ljava/util/Map;)V", "", ApiSince=26)]
public static void AddDataResultToIntent (Android.App.RemoteInput? remoteInput, Android.Content.Intent? intent, System.Collections.Generic.IDictionary<string,Android.Net.Uri>? results);
[<Android.Runtime.Register("addDataResultToIntent", "(Landroid/app/RemoteInput;Landroid/content/Intent;Ljava/util/Map;)V", "", ApiSince=26)>]
static member AddDataResultToIntent : Android.App.RemoteInput * Android.Content.Intent * System.Collections.Generic.IDictionary<string, Android.Net.Uri> -> unit

Parameters

remoteInput
RemoteInput

The remote input for which results are being provided

intent
Intent

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

results
IDictionary<String,Uri>

A map of mime type to the Uri result for that mime type.

Attributes

Remarks

Same as #addResultsToIntent but for setting data results. This is used for inputs that accept non-textual results (see Builder#setAllowDataType). Only one result can be provided for every mime type accepted by the RemoteInput. If multiple inputs of the same mime type are expected then multiple RemoteInputs should be used.

Java documentation for android.app.RemoteInput.addDataResultToIntent(android.app.RemoteInput, android.content.Intent, java.util.Map<java.lang.String, android.net.Uri>).

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