WebChromeClient.FileChooserParams.ParseResult(Int32, Intent) 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.
Parse the result returned by the file picker activity.
[Android.Runtime.Register("parseResult", "(ILandroid/content/Intent;)[Landroid/net/Uri;", "")]
public static Android.Net.Uri[]? ParseResult (int resultCode, Android.Content.Intent data);
[<Android.Runtime.Register("parseResult", "(ILandroid/content/Intent;)[Landroid/net/Uri;", "")>]
static member ParseResult : int * Android.Content.Intent -> Android.Net.Uri[]
Parameters
- resultCode
- Int32
the integer result code returned by the file picker activity.
- data
- Intent
the intent returned by the file picker activity.
Returns
the Uris of selected file(s) or null
if the resultCode indicates
activity canceled or any other error.
- Attributes
Remarks
Parse the result returned by the file picker activity. This method should be used with #createIntent
. Refer to #createIntent
for how to use it.
<b>Note:</b> The intent returned by the file picker activity should be treated as untrusted. A third-party app handling the implicit intent created by #createIntent
might return Uris that the third-party app itself does not have access to, such as your own app's sensitive data files. WebView does not enforce any restrictions on the returned Uris. It is the app's responsibility to ensure that the untrusted source (such as a third-party app) has access the Uris it has returned and that the Uris are not pointing to any sensitive data files.
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.