Webview class abstract
- Implementers
Constructors
- Webview()
Properties
Methods
-
addOnUrlRequestCallback(
OnUrlRequestCallback callback) → void -
addOnWebMessageReceivedCallback(
OnWebMessageReceivedCallback callback) → void -
addScriptToExecuteOnDocumentCreated(
String javaScript) → void -
back(
) → Future< void> - Navigate to the previous page in the history.
-
close(
) → void - Close the web view window.
-
evaluateJavaScript(
String javaScript) → Future< String?> - evaluate JavaScript in the web view.
-
forward(
) → Future< void> - Navigate to the next page in the history.
-
launch(
String url) → void - Navigates to the given URL.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openDevToolsWindow(
) → Future< void> - Opens the Browser DevTools in a separate window
-
postWebMessageAsJson(
String webMessage) → Future< void> - post a web message as JSON to the top level document in this WebView
-
postWebMessageAsString(
String webMessage) → Future< void> - post a web message as String to the top level document in this WebView
-
registerJavaScriptMessageHandler(
String name, JavaScriptMessageHandler handler) → void - Install a message handler that you can call from your Javascript code.
-
reload(
) → Future< void> - Reload the current page.
-
removeOnUrlRequestCallback(
OnUrlRequestCallback callback) → void -
removeOnWebMessageReceivedCallback(
OnWebMessageReceivedCallback callback) → void -
setApplicationNameForUserAgent(
String applicationName) → Future< void> - Append a string to the webview's user-agent.
-
setBrightness(
Brightness? brightness) → void - change webview theme.
-
setOnHistoryChangedCallback(
OnHistoryChangedCallback? callback) → void - Register a callback that will be invoked when the webview history changes.
-
setPromptHandler(
PromptHandler? handler) → void - available: macOS
-
stop(
) → Future< void> - Stop all navigations and pending resource fetches.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregisterJavaScriptMessageHandler(
String name) → void - available: macOS
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited