public interface WebViewProvider
WebView
, unless otherwise noted.Modifier and Type | Interface and Description |
---|---|
static interface |
WebViewProvider.ScrollDelegate |
static interface |
WebViewProvider.ViewDelegate
Provides mechanism for the name-sake methods declared in View and ViewGroup to be delegated
into the WebViewProvider instance.
|
void init(Map<String,Object> javaScriptInterfaces, boolean privateBrowsing)
javaScriptInterfaces
- is a Map of interface names, as keys, and
object implementing those interfaces, as values.privateBrowsing
- If true the web view will be initialized in private / incognito mode.void setHorizontalScrollbarOverlay(boolean overlay)
void setVerticalScrollbarOverlay(boolean overlay)
boolean overlayHorizontalScrollbar()
boolean overlayVerticalScrollbar()
int getVisibleTitleHeight()
SslCertificate getCertificate()
void setCertificate(SslCertificate certificate)
void setHttpAuthUsernamePassword(String host, String realm, String username, String password)
void destroy()
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.void setNetworkAvailable(boolean networkUp)
WebBackForwardList saveState(Bundle outState)
WebBackForwardList restoreState(Bundle inState)
void loadUrl(String url)
void postUrl(String url, byte[] postData)
void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl)
void evaluateJavaScript(String script, ValueCallback<String> resultCallback)
void saveWebArchive(String filename)
void saveWebArchive(String basename, boolean autoname, ValueCallback<String> callback)
void stopLoading()
void reload()
boolean canGoBack()
void goBack()
boolean canGoForward()
void goForward()
boolean canGoBackOrForward(int steps)
void goBackOrForward(int steps)
boolean isPrivateBrowsingEnabled()
boolean pageUp(boolean top)
boolean pageDown(boolean bottom)
void insertVisualStateCallback(long requestId, WebView.VisualStateCallback callback)
void clearView()
Picture capturePicture()
PrintDocumentAdapter createPrintDocumentAdapter(String documentName)
float getScale()
void setInitialScale(int scaleInPercent)
void invokeZoomPicker()
WebView.HitTestResult getHitTestResult()
void requestFocusNodeHref(Message hrefMsg)
void requestImageRef(Message msg)
String getUrl()
String getOriginalUrl()
String getTitle()
Bitmap getFavicon()
String getTouchIconUrl()
int getProgress()
int getContentHeight()
int getContentWidth()
void pauseTimers()
void resumeTimers()
void onPause()
void onResume()
boolean isPaused()
void freeMemory()
void clearCache(boolean includeDiskFiles)
void clearFormData()
void clearHistory()
void clearSslPreferences()
WebBackForwardList copyBackForwardList()
void setFindListener(WebView.FindListener listener)
void findNext(boolean forward)
int findAll(String find)
void findAllAsync(String find)
boolean showFindDialog(String text, boolean showIme)
void clearMatches()
void documentHasImages(Message response)
void setWebViewClient(WebViewClient client)
void setDownloadListener(DownloadListener listener)
void setWebChromeClient(WebChromeClient client)
void setPictureListener(WebView.PictureListener listener)
void removeJavascriptInterface(String interfaceName)
WebMessagePort[] createWebMessageChannel()
void postMessageToMainFrame(WebMessage message, Uri targetOrigin)
WebSettings getSettings()
void setMapTrackballToArrowKeys(boolean setMap)
void flingScroll(int vx, int vy)
View getZoomControls()
boolean canZoomIn()
boolean canZoomOut()
boolean zoomBy(float zoomFactor)
boolean zoomIn()
boolean zoomOut()
void dumpViewHierarchyWithProperties(BufferedWriter out, int level)
WebViewProvider.ViewDelegate getViewDelegate()
WebViewProvider.ScrollDelegate getScrollDelegate()
void notifyFindDialogDismissed()