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.
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.

Enums

AutoMediaPlaybackPolicy
Specifies possible restrictions on automatic media playback.
JavascriptMode
Describes the state of JavaScript support in a given web view.
A decision on how to handle a navigation request.
WebResourceErrorType
Possible error type categorizations used by WebResourceError.

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, [Map<String, String>? additionalHeaders]) 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.

Typedefs

JavascriptMessageHandler = void Function(JavascriptMessage message)
Callback type for handling messages sent from Javascript running in a web view.
Decides how to handle a specific navigation request.
PageFinishedCallback = void Function(String url)
Signature for when a WebView has finished loading a page.
PageLoadingCallback = void Function(int progress)
Signature for when a WebView is loading a page.
PageStartedCallback = void Function(String url)
Signature for when a WebView has started loading a page.
WebResourceErrorCallback = void Function(WebResourceError error)
Signature for when a WebView has failed to load a resource.