Udostępnij za pośrednictwem


Intent.ParseUri(String, IntentUriType) Method

Definition

Create an intent from a URI.

[Android.Runtime.Register("parseUri", "(Ljava/lang/String;I)Landroid/content/Intent;", "")]
public static Android.Content.Intent? ParseUri (string? uri, Android.Content.IntentUriType flags);
[<Android.Runtime.Register("parseUri", "(Ljava/lang/String;I)Landroid/content/Intent;", "")>]
static member ParseUri : string * Android.Content.IntentUriType -> Android.Content.Intent

Parameters

uri
String

The URI to turn into an Intent.

flags
IntentUriType

Additional processing flags.

Returns

Intent The newly created Intent object.

Attributes

Exceptions

Throws URISyntaxError if the basic URI syntax it bad (as parsed by the Uri class) or the Intent data within the URI is invalid.

Remarks

Create an intent from a URI. This URI may encode the action, category, and other intent fields, if it was returned by #toUri. If the Intent was not generate by toUri(), its data will be the entire URI and its action will be ACTION_VIEW.

The URI given here must not be relative -- that is, it must include the scheme and full path.

Java documentation for android.content.Intent.parseUri(java.lang.String, int).

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

See also