次の方法で共有


ContentResolver.Uncanonicalize(Uri) Method

Definition

Given a canonical Uri previously generated by #canonicalize, convert it to its local non-canonical form.

[Android.Runtime.Register("uncanonicalize", "(Landroid/net/Uri;)Landroid/net/Uri;", "")]
public Android.Net.Uri? Uncanonicalize (Android.Net.Uri url);
[<Android.Runtime.Register("uncanonicalize", "(Landroid/net/Uri;)Landroid/net/Uri;", "")>]
member this.Uncanonicalize : Android.Net.Uri -> Android.Net.Uri

Parameters

url
Uri

The canonical Uri that is to be convered back to its non-canonical form.

Returns

Uri

Returns the non-canonical representation of <var>url</var>. This will return null if data identified by the canonical Uri can not be found in the current environment; callers must always check for null and deal with that by appropriately falling back to an alternative.

Attributes

Remarks

Given a canonical Uri previously generated by #canonicalize, convert it to its local non-canonical form. This can be useful in some cases where you know that you will only be using the Uri in the current environment and want to avoid any possible overhead when using it with the content provider or want to verify that the referenced data exists at all in the new environment.

Java documentation for android.content.ContentResolver.uncanonicalize(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