webview_without_view
library
Classes
-
JavascriptChannel
-
A named channel for receiving messaged from JavaScript code running inside a web view.
-
JavascriptMessage
-
A message that was sent by JavaScript code running in a
WebView
.
-
NavigationRequest
-
Information about a navigation action that is about to be executed.
-
WebResourceError
-
Error returned in
WebView.onWebResourceError
when a web resource loading error has occurred.
Properties
-
settings
→ _Settings
-
no setter
Functions
-
clearCache()
→ Future<void>
-
Clears the resource cache and all storage currently being
used by the JavaScript storage APIs. This includes the
Application Cache, Web SQL Database and the HTML5 Web Storage APIs.
-
clearCookies()
→ Future<void>
-
Removes all cookies.
-
dispose()
→ Future<void>
-
Calling dispose cuts the connection to the
platform code and therefore removes the functionality
of any functions in this library.
-
evaluateJavascript(String script)
→ Future<String?>
-
Asynchronously evaluates JavaScript in the context of
the currently loaded page.
-
getOriginalUrl()
→ Future<String?>
-
Gets the original URL for the current page. This is not
always the same as the URL passed to
onPageStarted
because although the load for that URL has begun, the
current page may not have changed. Also, there may have
been redirects resulting in a different URL to that
originally requested.
-
getUrl()
→ Future<String?>
-
Gets the URL for the current page. This is not always
the same as the URL passed to
onPageStarted
because
although the load for that URL has begun, the current
page may not have changed.
-
initialize([String? initialUrl])
→ Future<bool>
-
Before using any functions, this plugin has to be
initialized.
-
loadUrl(String url, [])
→ Future<void>
-
Loads the given URL with additional HTTP headers, specified
as a map from name to value.
-
reload()
→ Future<void>
-
Reloads the current URL.