Language

URLUtil.IsValidUrl(String) Method

Definition

Checks whether a nonempty URL has one of the prefixes recognized by this helper.

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

Parameters

url
String

The URL to test; null does not match.

Returns

true if the url is valid.

Attributes

Remarks

Java documentation for android.webkit.URLUtil.isValidUrl(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