FileDocCategorySizeDatePackage
WebViewProvider.javaAPI DocAndroid 5.1 API12957Thu Mar 12 22:22:10 GMT 2015android.webkit

WebViewProvider

public interface WebViewProvider
WebView backend provider interface: this interface is the abstract backend to a WebView instance; each WebView object is bound to exactly one WebViewProvider object which implements the runtime behavior of that WebView. All methods must behave as per their namesake in {@link WebView}, unless otherwise noted.
hide
Not part of the public API; only required by system implementors.

Fields Summary
Constructors Summary
Methods Summary
public voidaddJavascriptInterface(java.lang.Object obj, java.lang.String interfaceName)

public booleancanGoBack()

public booleancanGoBackOrForward(int steps)

public booleancanGoForward()

public booleancanZoomIn()

public booleancanZoomOut()

public android.graphics.PicturecapturePicture()

public voidclearCache(boolean includeDiskFiles)

public voidclearFormData()

public voidclearHistory()

public voidclearMatches()

public voidclearSslPreferences()

public voidclearView()

public WebBackForwardListcopyBackForwardList()

public android.print.PrintDocumentAdaptercreatePrintDocumentAdapter(java.lang.String documentName)

public voiddestroy()
See {@link WebView#destroy()}. As well as releasing the internal state and resources held by the implementation, the provider should null all references it holds on the WebView proxy class, and ensure no further method calls are made to it.

public voiddocumentHasImages(android.os.Message response)

public voiddumpViewHierarchyWithProperties(java.io.BufferedWriter out, int level)

public voidevaluateJavaScript(java.lang.String script, ValueCallback resultCallback)

public intfindAll(java.lang.String find)

public voidfindAllAsync(java.lang.String find)

public android.view.ViewfindHierarchyView(java.lang.String className, int hashCode)

public voidfindNext(boolean forward)

public voidflingScroll(int vx, int vy)

public voidfreeMemory()

public android.net.http.SslCertificategetCertificate()

public intgetContentHeight()

public intgetContentWidth()

public android.graphics.BitmapgetFavicon()

public android.webkit.WebView.HitTestResultgetHitTestResult()

public java.lang.String[]getHttpAuthUsernamePassword(java.lang.String host, java.lang.String realm)

public java.lang.StringgetOriginalUrl()

public intgetProgress()

public floatgetScale()

public android.webkit.WebViewProvider$ScrollDelegategetScrollDelegate()

return
a ScrollDelegate implementation. Normally this would be same object as is returned by getViewDelegate().

public WebSettingsgetSettings()

public java.lang.StringgetTitle()

public java.lang.StringgetTouchIconUrl()

public java.lang.StringgetUrl()

public android.webkit.WebViewProvider$ViewDelegategetViewDelegate()

return
the ViewDelegate implementation. This provides the functionality to back all of the name-sake functions from the View and ViewGroup base classes of WebView.

public intgetVisibleTitleHeight()

public android.view.ViewgetZoomControls()

public voidgoBack()

public voidgoBackOrForward(int steps)

public voidgoForward()

public voidinit(java.util.Map javaScriptInterfaces, boolean privateBrowsing)
Initialize this WebViewProvider instance. Called after the WebView has fully constructed.

param
javaScriptInterfaces is a Map of interface names, as keys, and object implementing those interfaces, as values.
param
privateBrowsing If true the web view will be initialized in private / incognito mode.

public voidinvokeZoomPicker()

public booleanisPaused()

public booleanisPrivateBrowsingEnabled()

public voidloadData(java.lang.String data, java.lang.String mimeType, java.lang.String encoding)

public voidloadDataWithBaseURL(java.lang.String baseUrl, java.lang.String data, java.lang.String mimeType, java.lang.String encoding, java.lang.String historyUrl)

public voidloadUrl(java.lang.String url, java.util.Map additionalHttpHeaders)

public voidloadUrl(java.lang.String url)

public voidnotifyFindDialogDismissed()
Only used by FindActionModeCallback to inform providers that the find dialog has been dismissed.

public voidonPause()

public voidonResume()

public booleanoverlayHorizontalScrollbar()

public booleanoverlayVerticalScrollbar()

public booleanpageDown(boolean bottom)

public booleanpageUp(boolean top)

public voidpauseTimers()

public voidpostUrl(java.lang.String url, byte[] postData)

public voidreload()

public voidremoveJavascriptInterface(java.lang.String interfaceName)

public voidrequestFocusNodeHref(android.os.Message hrefMsg)

public voidrequestImageRef(android.os.Message msg)

public booleanrestorePicture(android.os.Bundle b, java.io.File src)

public WebBackForwardListrestoreState(android.os.Bundle inState)

public voidresumeTimers()

public voidsavePassword(java.lang.String host, java.lang.String username, java.lang.String password)

public booleansavePicture(android.os.Bundle b, java.io.File dest)

public WebBackForwardListsaveState(android.os.Bundle outState)

public voidsaveWebArchive(java.lang.String filename)

public voidsaveWebArchive(java.lang.String basename, boolean autoname, ValueCallback callback)

public voidsetCertificate(android.net.http.SslCertificate certificate)

public voidsetDownloadListener(DownloadListener listener)

public voidsetFindListener(WebView.FindListener listener)

public voidsetHorizontalScrollbarOverlay(boolean overlay)

public voidsetHttpAuthUsernamePassword(java.lang.String host, java.lang.String realm, java.lang.String username, java.lang.String password)

public voidsetInitialScale(int scaleInPercent)

public voidsetMapTrackballToArrowKeys(boolean setMap)

public voidsetNetworkAvailable(boolean networkUp)

public voidsetPictureListener(android.webkit.WebView.PictureListener listener)

public voidsetVerticalScrollbarOverlay(boolean overlay)

public voidsetWebChromeClient(WebChromeClient client)

public voidsetWebViewClient(WebViewClient client)

public booleanshowFindDialog(java.lang.String text, boolean showIme)

public voidstopLoading()

public booleanzoomBy(float zoomFactor)

public booleanzoomIn()

public booleanzoomOut()