Megosztás a következőn keresztül:


Intent.ToUri(IntentUriType) Method

Definition

Convert this Intent into a String holding a URI representation of it.

[Android.Runtime.Register("toUri", "(I)Ljava/lang/String;", "GetToUri_IHandler")]
public virtual string? ToUri (Android.Content.IntentUriType flags);
[<Android.Runtime.Register("toUri", "(I)Ljava/lang/String;", "GetToUri_IHandler")>]
abstract member ToUri : Android.Content.IntentUriType -> string
override this.ToUri : Android.Content.IntentUriType -> string

Parameters

flags
IntentUriType

Additional operating flags.

Returns

Returns a URI encoding URI string describing the entire contents of the Intent.

Attributes

Remarks

Convert this Intent into a String holding a URI representation of it. The returned URI string has been properly URI encoded, so it can be used with Uri#parse Uri.parse(String). The URI contains the Intent's data as the base URI, with an additional fragment describing the action, categories, type, flags, package, component, and extras.

You can convert the returned string back to an Intent with #getIntent.

Java documentation for android.content.Intent.toUri(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