WebView.OriginalUrl Property

Definition

Gets the original URL for the current page.

public virtual string? OriginalUrl { [Android.Runtime.Register("getOriginalUrl", "()Ljava/lang/String;", "GetGetOriginalUrlHandler")] get; }
[<get: Android.Runtime.Register("getOriginalUrl", "()Ljava/lang/String;", "GetGetOriginalUrlHandler")>]
member this.OriginalUrl : string

Property Value

the URL that was originally requested for the current page or null if no page has been loaded

Attributes

Remarks

Gets the original URL for the current page. This is not always the same as the URL passed to WebViewClient.onPageStarted because although the load for that URL has begun, the current page may not have changed. Also, there may have been redirects resulting in a different URL to that originally requested.

Java documentation for android.webkit.WebView.getOriginalUrl().

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