Udostępnij za pośrednictwem


ContentProvider.Uncanonicalize(Uri) Method

Definition

Remove canonicalization from canonical URIs previously returned by #canonicalize.

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

Parameters

url
Uri

The Uri to remove any canonicalization from.

Returns

Uri

Return the non-canonical representation of <var>url</var>, return the <var>url</var> as-is if there is nothing to do, or return null if the data identified by the canonical representation can not be found in the current environment.

Attributes

Remarks

Remove canonicalization from canonical URIs previously returned by #canonicalize. For example, if your implementation is to add a query param to canonicalize a URI, this method can simply trip any query params on the URI. The default implementation always returns the same <var>url</var> that was passed in.

Java documentation for android.content.ContentProvider.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