native_webview library
Classes
- AndroidWebViewInfo
- ContentBlocker
- ContentBlocker class represents a set of rules to use block content in the browser window.
- ContentBlockerAction
- Action associated to the trigger. The action tells to the WebView what to do when the trigger is matched. When a trigger matches a resource, the browser queues the associated action for execution. The WebView evaluates all the triggers, it executes the actions in order. When a domain matches a trigger, all rules after the triggered rule that specify the same action are skipped. Group the rules with similar actions together to improve performance.
- ContentBlockerActionType
- ContentBlockerActionType class represents the kind of action that can be used with a ContentBlockerTrigger.
- ContentBlockerTrigger
-
Trigger of the content blocker. The trigger tells to the WebView when to perform the corresponding action.
A trigger dictionary must include an
ContentBlockerTrigger.urlFilter
, which specifies a pattern to match the URL against. The remaining properties are optional and modify the behavior of the trigger. For example, you can limit the trigger to specific domains or have it not apply when a match is found on a specific domain. - ContentBlockerTriggerLoadType
- ContentBlockerTriggerLoadType class represents the possible load type for a ContentBlockerTrigger.
- ContentBlockerTriggerResourceType
- ContentBlockerTriggerResourceType class represents the possible resource type defined for a ContentBlockerTrigger.
- Cookie
- CookieManager
- CreationParams
- HttpAuthChallenge
- JsAlertResponse
-
JsAlertResponse class represents the response used by the
onJsAlert
event to control a JavaScript confirm dialog. - JsConfirmResponse
-
JsConfirmResponse class represents the response used by the
onJsConfirm
event to control a JavaScript confirm dialog. - JsPromptResponse
-
JsPromptResponse class represents the response used by the
onJsPrompt
event to control a JavaScript prompt dialog. - ReceivedHttpAuthResponse
- ShouldOverrideUrlLoadingRequest
- WebResourceError
-
Error returned in
WebView.onWebResourceError
when a web resource loading error has occurred. - WebView
- WebViewController
- WebViewData
- Initial data as a content for an WebViewData instance, using baseUrl as the base URL for it.
- WebViewManager
Enums
- JsConfirmResponseAction
- JsConfirmResponseAction class used by JsConfirmResponse class.
- JsPromptResponseAction
- ReceivedHttpAuthResponseAction
- ShouldOverrideUrlLoadingAction
- WebResourceErrorType
- Possible error type categorizations used by WebResourceError.
Typedefs
-
JavascriptHandlerCallback
= Future<
void> Function(dynamic arguments) -
JsAlertCallback
= FutureOr<
JsAlertResponse> Function(WebViewController, String?) -
JsConfirmCallback
= FutureOr<
JsConfirmResponse> Function(WebViewController, String?) -
JsPromptCallback
= FutureOr<
JsPromptResponse> Function(WebViewController, String?, String?)