Språk

URLUtil.StripAnchor(String) Method

Definition

Strips the url of the anchor.

[Android.Runtime.Register("stripAnchor", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? StripAnchor(string? url);
[<Android.Runtime.Register("stripAnchor", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
static member StripAnchor : string -> string

Parameters

url
String

The URL from which to remove the fragment delimiter and following text.

Returns

The portion before the first # character, or the original URL if it has no # character.

Attributes

Remarks

Strips the url of the anchor.

Java documentation for android.webkit.URLUtil.stripAnchor(java.lang.String).

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