Merge "Clean up documentation for WebView.loadUrl()"
This commit is contained in:
@@ -2003,15 +2003,18 @@ public class WebView extends AbsoluteLayout
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the given url with the extra headers.
|
* Load the given URL with the specified additional HTTP headers.
|
||||||
* @param url The url of the resource to load.
|
* @param url The URL of the resource to load.
|
||||||
* @param extraHeaders The extra headers sent with this url. This should not
|
* @param additionalHttpHeaders The additional headers to be used in the
|
||||||
* include the common headers like "user-agent". If it does, it
|
* HTTP request for this URL, specified as a map from name to
|
||||||
* will be replaced by the intrinsic value of the WebView.
|
* value. Note that if this map contains any of the headers
|
||||||
|
* that are set by default by the WebView, such as those
|
||||||
|
* controlling caching, accept types or the User-Agent, their
|
||||||
|
* values may be overriden by the WebView's defaults.
|
||||||
*/
|
*/
|
||||||
public void loadUrl(String url, Map<String, String> extraHeaders) {
|
public void loadUrl(String url, Map<String, String> additionalHttpHeaders) {
|
||||||
checkThread();
|
checkThread();
|
||||||
loadUrlImpl(url, extraHeaders);
|
loadUrlImpl(url, additionalHttpHeaders);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadUrlImpl(String url, Map<String, String> extraHeaders) {
|
private void loadUrlImpl(String url, Map<String, String> extraHeaders) {
|
||||||
@@ -2024,8 +2027,8 @@ public class WebView extends AbsoluteLayout
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the given url.
|
* Load the given URL.
|
||||||
* @param url The url of the resource to load.
|
* @param url The URL of the resource to load.
|
||||||
*/
|
*/
|
||||||
public void loadUrl(String url) {
|
public void loadUrl(String url) {
|
||||||
checkThread();
|
checkThread();
|
||||||
|
|||||||
Reference in New Issue
Block a user