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


Intent.SetDataAndNormalize(Uri) Method

Definition

Normalize and set the data this intent is operating on.

[Android.Runtime.Register("setDataAndNormalize", "(Landroid/net/Uri;)Landroid/content/Intent;", "GetSetDataAndNormalize_Landroid_net_Uri_Handler")]
public virtual Android.Content.Intent SetDataAndNormalize (Android.Net.Uri data);
[<Android.Runtime.Register("setDataAndNormalize", "(Landroid/net/Uri;)Landroid/content/Intent;", "GetSetDataAndNormalize_Landroid_net_Uri_Handler")>]
abstract member SetDataAndNormalize : Android.Net.Uri -> Android.Content.Intent
override this.SetDataAndNormalize : Android.Net.Uri -> Android.Content.Intent

Parameters

data
Uri

The Uri of the data this intent is now targeting.

Returns

Returns the same Intent object, for chaining multiple calls into a single statement.

Attributes

Remarks

Normalize and set the data this intent is operating on.

This method automatically clears any type that was previously set (for example, by #setType).

The data Uri is normalized using android.net.Uri#normalizeScheme before it is set, so really this is just a convenience method for

setData(data.normalize())

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

See also