webview_flutter library
Classes
- CookieManager
- Manages cookies pertaining to all WebViews.
- 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.
- SurfaceAndroidWebView
- Android WebViewPlatform that uses AndroidViewSurface to build the WebView widget.
- WebView
- A web view widget for showing html content.
- WebViewController
- Controls a WebView.
- WebviewFlutterX5
Enums
- AutoMediaPlaybackPolicy
- Specifies possible restrictions on automatic media playback.
- ChooseFileMode
- JavascriptMode
- Describes the state of JavaScript support in a given web view.
- A decision on how to handle a navigation request.
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.
-
OnNeedPermissionCallback
= void Function(List<
String> permissions) - 需要的权限
- 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.
- WebViewCreatedCallback = void Function(WebViewController controller)
-
Optional callback invoked when a web view is first created.
controller
is the WebViewController for the created web view.