Android Guides | Samples

Android.Webkit.WebView: Method Members

The methods of Android.Webkit.WebView are listed below. For a list of all members, see the WebView list.

See Also: AbsoluteLayout

Public Methods

AddJavascriptInterface(Object, String)
Injects the supplied Java object into this WebView.
CanGoBack() : Boolean
Gets whether this WebView has a back history item.
CanGoBackOrForward(Int32) : Boolean
Gets whether the page can go back or forward the given number of steps.
CanGoForward() : Boolean
Gets whether this WebView has a forward history item.
CanZoomIn() : Boolean
Gets whether this WebView can be zoomed in.
CanZoomOut() : Boolean
Gets whether this WebView can be zoomed out.
CapturePicture() : Picture
Gets a new picture that captures the current contents of this WebView.
ClearCache(Boolean)
Clears the resource cache.
static
ClearClientCertPreferences(IRunnable)
Clears the client certificate preferences stored in response to proceeding/cancelling client cert requests.
ClearFormData()
Removes the autocomplete popup from the currently focused form field, if present.
ClearHistory()
Tells this WebView to clear its internal back/forward list.
ClearMatches()
Clears the highlighting surrounding text matches created by WebView.FindAllAsync(String).
ClearSslPreferences()
Clears the SSL preferences table stored in response to proceeding with SSL certificate errors.
ClearView()
Clears this WebView so that onDraw() will draw nothing but white background, and onMeasure() will return 0 if MeasureSpec is not MeasureSpec.
CopyBackForwardList() : WebBackForwardList
Gets the WebBackForwardList for this WebView.
CreatePrintDocumentAdapter() : PrintDocumentAdapter
CreatePrintDocumentAdapter(String) : PrintDocumentAdapter
Creates a PrintDocumentAdapter that provides the content of this Webview for printing.
DebugDump()
Destroy()
Destroys the internal state of this WebView.
static
DisablePlatformNotifications()
DocumentHasImages(Message)
Queries the document to see if it contains any image references.
EmulateShiftHeld()
static
EnablePlatformNotifications()
static
EnableSlowWholeDocumentDraw()
For apps targeting the L release, WebView has a new default behavior that reduces memory footprint and increases performance by intelligently choosing the portion of the HTML document that needs to be drawn.
EvaluateJavascript(String, IValueCallback)
static
FindAddress(String) : String
Gets the first substring consisting of the address of a physical location.
FindAll(String) : Int32
Finds all instances of find on the page and highlights them.
FindAllAsync(String)
Finds all instances of find on the page and highlights them, asynchronously.
FindNext(Boolean)
Highlights and scrolls to the next match found by WebView.FindAllAsync(String), wrapping around page boundaries as necessary.
FlingScroll(Int32, Int32)
FreeMemory()
Informs this WebView that memory is low so that it can free any available memory.
GetHitTestResult() : WebView+HitTestResult
Gets a HitTestResult based on the current cursor node.
GetHttpAuthUsernamePassword(String, String) : String[]
Retrieves HTTP authentication credentials for a given host and realm.
GoBack()
Goes back in the history of this WebView.
GoBackOrForward(Int32)
Goes to the history item that is the number of steps away from the current item.
GoForward()
Goes forward in the history of this WebView.
InvokeZoomPicker()
Invokes the graphical zoom picker widget for this WebView.
LoadData(String, String, String)
Loads the given data into this WebView using a 'data' scheme URL.
LoadDataWithBaseURL(String, String, String, String, String)
Loads the given data into this WebView, using baseUrl as the base URL for the content.
LoadUrl(String)
Loads the given URL.
LoadUrl(String, IDictionary<string, string>)
OnChildViewAdded(View, View)
Called when a new child is added to a parent view.
OnChildViewRemoved(View, View)
Called when a child is removed from a parent view.
OnGlobalFocusChanged(View, View)
Callback method to be invoked when the focus changes in the view tree.
OnPause()
Pauses any extra processing associated with this WebView and its associated DOM, plugins, JavaScript etc.
OnResume()
Resumes a WebView after a previous call to onPause().
OverlayHorizontalScrollbar() : Boolean
Gets whether horizontal scrollbar has overlay style.
OverlayVerticalScrollbar() : Boolean
Gets whether vertical scrollbar has overlay style.
PageDown(Boolean) : Boolean
Scrolls the contents of this WebView down by half the page size.
PageUp(Boolean) : Boolean
Scrolls the contents of this WebView up by half the view size.
PauseTimers()
Pauses all layout, parsing, and JavaScript timers for all WebViews.
PostUrl(String, Byte[])
Loads the URL with postData using "POST" method into this WebView.
RefreshPlugins(Boolean)
Reload()
Reloads the current URL.
RemoveJavascriptInterface(String)
Removes a previously injected Java object from this WebView.
RequestFocusNodeHref(Message)
Requests the anchor or image element URL at the last tapped point.
RequestImageRef(Message)
Requests the URL of the image last touched by the user. msg will be sent to its target with a String representing the URL as its object.
RestorePicture(Bundle, File) : Boolean
RestoreState(Bundle) : WebBackForwardList
Restores the state of this WebView from the given Bundle.
ResumeTimers()
Resumes all layout, parsing, and JavaScript timers for all WebViews.
SavePassword(String, String, String)
Sets a username and password pair for the specified host.
SavePicture(Bundle, File) : Boolean
SaveState(Bundle) : WebBackForwardList
Saves the state of this WebView used in Activity.OnSaveInstanceState(Bundle).
SaveWebArchive(String)
Saves the current view as a web archive.
SaveWebArchive(String, Boolean, IValueCallback)
SetDownloadListener(IDownloadListener)
Registers the interface to be used when content can not be handled by the rendering engine, and should be downloaded instead.
SetFindListener(WebView+IFindListener)
Registers the listener to be notified as find-on-page operations progress.
SetHorizontalScrollbarOverlay(Boolean)
Specifies whether the horizontal scrollbar has overlay style.
SetHttpAuthUsernamePassword(String, String, String, String)
Stores HTTP authentication credentials for a given host and realm.
SetInitialScale(Int32)
Sets the initial scale for this WebView. 0 means default.
SetMapTrackballToArrowKeys(Boolean)
SetNetworkAvailable(Boolean)
Informs WebView of the network state.
SetPictureListener(WebView+IPictureListener)
Sets the Picture listener.
SetVerticalScrollbarOverlay(Boolean)
Specifies whether the vertical scrollbar has overlay style.
SetWebChromeClient(WebChromeClient)
Sets the chrome handler.
static
SetWebContentsDebuggingEnabled(Boolean)
Enables debugging of web contents (HTML / CSS / JavaScript) loaded into any WebViews of this application.
SetWebViewClient(WebViewClient)
Sets the WebViewClient that will receive various notifications and requests.
ShowFindDialog(String, Boolean) : Boolean
Starts an ActionMode for finding text in this WebView.
StopLoading()
Stops the current load.
ZoomBy(Single)
Performs a zoom operation in this WebView.
ZoomIn() : Boolean
Performs zoom in in this WebView.
ZoomOut() : Boolean
Performs zoom out in this WebView.