RemoteInput.GetDataResultsFromIntent(Intent, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Similar as #getResultsFromIntent
but retrieves data results for a
specific RemoteInput result.
[Android.Runtime.Register("getDataResultsFromIntent", "(Landroid/content/Intent;Ljava/lang/String;)Ljava/util/Map;", "", ApiSince=26)]
public static System.Collections.Generic.IDictionary<string,Android.Net.Uri>? GetDataResultsFromIntent (Android.Content.Intent? intent, string? remoteInputResultKey);
[<Android.Runtime.Register("getDataResultsFromIntent", "(Landroid/content/Intent;Ljava/lang/String;)Ljava/util/Map;", "", ApiSince=26)>]
static member GetDataResultsFromIntent : Android.Content.Intent * string -> System.Collections.Generic.IDictionary<string, Android.Net.Uri>
Parameters
- intent
- Intent
The intent object that fired in response to an action or content intent which also had one or more remote input requested.
- remoteInputResultKey
- String
The result key for the RemoteInput you want results for.
Returns
- Attributes
Remarks
Similar as #getResultsFromIntent
but retrieves data results for a specific RemoteInput result. To retrieve a value use:
{@code
Map<String, Uri> results =
RemoteInput.getDataResultsFromIntent(intent, REMOTE_INPUT_KEY);
if (results != null) {
Uri data = results.get(MIME_TYPE_OF_INTEREST);
}
}
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.