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.
Page 1 2
public static final int RENDERER_PRIORITY_WAIVED = 0 sourcepublic static final int RENDERER_PRIORITY_BOUND = 1 sourcepublic static final int RENDERER_PRIORITY_IMPORTANT = 2 sourcepublic WebView(Context context) sourcepublic WebView(Context context, AttributeSet attrs) sourcepublic WebView(Context context, AttributeSet attrs, int defStyleAttr) sourcepublic WebView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) sourcepublic static void setWebContentsDebuggingEnabled(boolean enabled) empty body sourcepublic static void setDataDirectorySuffix(String suffix) empty body sourcepublic static String findAddress(String addr) sourcepublic static android.content.pm.PackageInfo getCurrentWebViewPackage() sourceThe 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) sourcepublic WebSettings getSettings() sourcepublic void setWebViewClient(WebViewClient client) sourcepublic WebViewClient getWebViewClient() sourcepublic void setWebChromeClient(WebChromeClient client) sourcepublic WebChromeClient getWebChromeClient() sourcepublic void loadUrl(String url) sourcea page that loads blank: the client hears it start and finish
public void loadUrl(String url, java.util.Map<String, String> additionalHttpHeaders) sourcepublic WebBackForwardList copyBackForwardList() sourceno history is kept: an empty one
public boolean canGoBackOrForward(int steps) sourcepublic void goBackOrForward(int steps) empty body sourcepublic WebBackForwardList saveState(android.os.Bundle outState) sourcepublic WebBackForwardList restoreState(android.os.Bundle inState) sourcepublic void findAllAsync(String find) empty body sourcepublic void findNext(boolean forward) empty body sourcepublic void clearMatches() empty body sourcepublic void postWebMessage(WebMessage message, android.net.Uri targetOrigin) empty body sourcepublic WebMessagePort[] createWebMessageChannel() sourcepublic android.net.http.SslCertificate getCertificate() sourcepublic float getScale() sourcepublic static ClassLoader getWebViewClassLoader() sourcepublic Looper getWebViewLooper() sourcepublic android.print.PrintDocumentAdapter createPrintDocumentAdapter(String documentName) sourcepublic void loadData(String data, String mimeType, String encoding) sourcepublic void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) sourcepublic void postUrl(String url, byte[] postData) sourcepublic void reload() sourcepublic void stopLoading() empty body sourcepublic boolean canGoBack() sourcepublic boolean canGoForward() sourcepublic void goBack() empty body sourcePage 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.