WebView.LoadUrl Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LoadUrl(String) |
Loads the given URL. |
LoadUrl(String, IDictionary<String,String>) |
Loads the given URL with additional HTTP headers, specified as a map from name to value. |
LoadUrl(String)
Loads the given URL.
[Android.Runtime.Register("loadUrl", "(Ljava/lang/String;)V", "GetLoadUrl_Ljava_lang_String_Handler")]
public virtual void LoadUrl (string url);
[<Android.Runtime.Register("loadUrl", "(Ljava/lang/String;)V", "GetLoadUrl_Ljava_lang_String_Handler")>]
abstract member LoadUrl : string -> unit
override this.LoadUrl : string -> unit
Parameters
- url
- String
the URL of the resource to load
- Attributes
Remarks
Loads the given URL.
Also see compatibility note on #evaluateJavascript
.
Java documentation for android.webkit.WebView.loadUrl(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
LoadUrl(String, IDictionary<String,String>)
Loads the given URL with additional HTTP headers, specified as a map from name to value.
[Android.Runtime.Register("loadUrl", "(Ljava/lang/String;Ljava/util/Map;)V", "GetLoadUrl_Ljava_lang_String_Ljava_util_Map_Handler")]
public virtual void LoadUrl (string url, System.Collections.Generic.IDictionary<string,string> additionalHttpHeaders);
[<Android.Runtime.Register("loadUrl", "(Ljava/lang/String;Ljava/util/Map;)V", "GetLoadUrl_Ljava_lang_String_Ljava_util_Map_Handler")>]
abstract member LoadUrl : string * System.Collections.Generic.IDictionary<string, string> -> unit
override this.LoadUrl : string * System.Collections.Generic.IDictionary<string, string> -> unit
Parameters
- url
- String
the URL of the resource to load
- additionalHttpHeaders
- IDictionary<String,String>
map with additional headers
- Attributes
Remarks
Loads the given URL with additional HTTP headers, specified as a map from name to value. Note that if this map contains any of the headers that are set by default by this WebView, such as those controlling caching, accept types or the User-Agent, their values may be overridden by this WebView's defaults.
Some older WebView implementations require additionalHttpHeaders
to be mutable.
Also see compatibility note on #evaluateJavascript
.
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.