WebView

Class of android.webkit · WebView.java · Android's reference

public class WebView extends FrameLayout

WebView ← FrameLayout ← ViewGroup ← View

A web page's view (Off in docs/platforms/android-apps/interfaces.md: no web engine). It keeps its settings and clients, and a page it loads starts and finishes empty, as a blank page, so an app's flow goes on: onPageStarted and onPageFinished come, a script's result is "null", and nothing draws.

Nested types

Page 1 2

Fields

public static final int RENDERER_PRIORITY_WAIVED = 0 source
public static final int RENDERER_PRIORITY_BOUND = 1 source
public static final int RENDERER_PRIORITY_IMPORTANT = 2 source

Constructors

public WebView(Context context) source
public WebView(Context context, AttributeSet attrs) source
public WebView(Context context, AttributeSet attrs, int defStyleAttr) source
public WebView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) source

Methods

public static void setWebContentsDebuggingEnabled(boolean enabled) empty body source
public static void setDataDirectorySuffix(String suffix) empty body source
public static String findAddress(String addr) source
public static android.content.pm.PackageInfo getCurrentWebViewPackage() source

The WebView provider's package: AOSP's, whose support library glue (org.chromium.support_lib_glue) is inert as this WebView is. Its version is a recent one's, as AndroidX WebKit asks of the provider (105 or later) before it uses some of its features

public static void clearClientCertPreferences(Runnable onCleared) source
public WebSettings getSettings() source
public void setWebViewClient(WebViewClient client) source
public WebViewClient getWebViewClient() source
public void setWebChromeClient(WebChromeClient client) source
public WebChromeClient getWebChromeClient() source
public void loadUrl(String url) source

a page that loads blank: the client hears it start and finish

public void loadUrl(String url, java.util.Map<String, String> additionalHttpHeaders) source
public WebBackForwardList copyBackForwardList() source

no history is kept: an empty one

public boolean canGoBackOrForward(int steps) source
public void goBackOrForward(int steps) empty body source
public WebBackForwardList saveState(android.os.Bundle outState) source
public WebBackForwardList restoreState(android.os.Bundle inState) source
public void findAllAsync(String find) empty body source
public void findNext(boolean forward) empty body source
public void clearMatches() empty body source
public void postWebMessage(WebMessage message, android.net.Uri targetOrigin) empty body source
public WebMessagePort[] createWebMessageChannel() source
public android.net.http.SslCertificate getCertificate() source
public float getScale() source
public static ClassLoader getWebViewClassLoader() source
public Looper getWebViewLooper() source
public android.print.PrintDocumentAdapter createPrintDocumentAdapter(String documentName) source
public void loadData(String data, String mimeType, String encoding) source
public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) source
public void postUrl(String url, byte[] postData) source
public void reload() source
public void stopLoading() empty body source
public boolean canGoBack() source
public boolean canGoForward() source
public void goBack() empty body source

Page 1 2


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.