WebView constructor
WebView({
- int? windowId,
- void onWebViewCreated(
- InAppWebViewController controller
- void onLoadStart(
- InAppWebViewController controller,
- Uri? url
- void onLoadStop(
- InAppWebViewController controller,
- Uri? url
- void onLoadError(
- InAppWebViewController controller,
- Uri? url,
- int code,
- String message,
- void onLoadHttpError(
- InAppWebViewController controller,
- Uri? url,
- int statusCode,
- String description,
- void onProgressChanged(
- InAppWebViewController controller,
- int progress
- void onConsoleMessage(
- InAppWebViewController controller,
- ConsoleMessage consoleMessage
- Future<
NavigationActionPolicy?> shouldOverrideUrlLoading(- InAppWebViewController controller,
- void onLoadResource(
- InAppWebViewController controller,
- LoadedResource resource
- void onScrollChanged(
- InAppWebViewController controller,
- int x,
- int y
- @Deprecated('Use `onDownloadStartRequest` instead') void onDownloadStart(
- InAppWebViewController controller,
- Uri url
- void onDownloadStartRequest(
- InAppWebViewController controller,
- DownloadStartRequest downloadStartRequest
- Future<
CustomSchemeResponse?> onLoadResourceCustomScheme(- InAppWebViewController controller,
- Uri url
- Future<
bool?> onCreateWindow(- InAppWebViewController controller,
- CreateWindowAction createWindowAction
- void onCloseWindow(
- InAppWebViewController controller
- Future<
JsAlertResponse?> onJsAlert(- InAppWebViewController controller,
- JsAlertRequest jsAlertRequest
- Future<
JsConfirmResponse?> onJsConfirm(- InAppWebViewController controller,
- JsConfirmRequest jsConfirmRequest
- Future<
JsPromptResponse?> onJsPrompt(- InAppWebViewController controller,
- JsPromptRequest jsPromptRequest
- Future<
HttpAuthResponse?> onReceivedHttpAuthRequest(- InAppWebViewController controller,
- HttpAuthenticationChallenge challenge
- Future<
ServerTrustAuthResponse?> onReceivedServerTrustAuthRequest(- InAppWebViewController controller,
- ServerTrustChallenge challenge
- Future<
ClientCertResponse?> onReceivedClientCertRequest(- InAppWebViewController controller,
- ClientCertChallenge challenge
- void onFindResultReceived(
- InAppWebViewController controller,
- int activeMatchOrdinal,
- int numberOfMatches,
- bool isDoneCounting,
- Future<
AjaxRequest?> shouldInterceptAjaxRequest(- InAppWebViewController controller,
- AjaxRequest ajaxRequest
- Future<
AjaxRequestAction?> onAjaxReadyStateChange(- InAppWebViewController controller,
- AjaxRequest ajaxRequest
- Future<
AjaxRequestAction?> onAjaxProgress(- InAppWebViewController controller,
- AjaxRequest ajaxRequest
- Future<
FetchRequest?> shouldInterceptFetchRequest(- InAppWebViewController controller,
- FetchRequest fetchRequest
- void onUpdateVisitedHistory(
- InAppWebViewController controller,
- Uri? url,
- bool? androidIsReload
- void onPrint(
- InAppWebViewController controller,
- Uri? url
- void onLongPressHitTestResult(
- InAppWebViewController controller,
- InAppWebViewHitTestResult hitTestResult
- void onEnterFullscreen(
- InAppWebViewController controller
- void onExitFullscreen(
- InAppWebViewController controller
- void onPageCommitVisible(
- InAppWebViewController controller,
- Uri? url
- void onTitleChanged(
- InAppWebViewController controller,
- String? title
- void onWindowFocus(
- InAppWebViewController controller
- void onWindowBlur(
- InAppWebViewController controller
- void onOverScrolled(
- InAppWebViewController controller,
- int x,
- int y,
- bool clampedX,
- bool clampedY,
- void onZoomScaleChanged(
- InAppWebViewController controller,
- double oldScale,
- double newScale
- Future<
SafeBrowsingResponse?> androidOnSafeBrowsingHit(- InAppWebViewController controller,
- Uri url,
- SafeBrowsingThreat? threatType
- Future<
PermissionRequestResponse?> androidOnPermissionRequest(- InAppWebViewController controller,
- String origin,
- List<
String> resources
- Future<
GeolocationPermissionShowPromptResponse?> androidOnGeolocationPermissionsShowPrompt(- InAppWebViewController controller,
- String origin
- void androidOnGeolocationPermissionsHidePrompt(
- InAppWebViewController controller
- Future<
WebResourceResponse?> androidShouldInterceptRequest(- InAppWebViewController controller,
- WebResourceRequest request
- void androidOnRenderProcessGone(
- InAppWebViewController controller,
- RenderProcessGoneDetail detail
- Future<
WebViewRenderProcessAction?> androidOnRenderProcessResponsive(- InAppWebViewController controller,
- Uri? url
- Future<
WebViewRenderProcessAction?> androidOnRenderProcessUnresponsive(- InAppWebViewController controller,
- Uri? url
- Future<
FormResubmissionAction?> androidOnFormResubmission(- InAppWebViewController controller,
- Uri? url
- @Deprecated('Use `onZoomScaleChanged` instead') void androidOnScaleChanged(
- InAppWebViewController controller,
- double oldScale,
- double newScale
- void androidOnReceivedIcon(
- InAppWebViewController controller,
- Uint8List icon
- void androidOnReceivedTouchIconUrl(
- InAppWebViewController controller,
- Uri url,
- bool precomposed
- Future<
JsBeforeUnloadResponse?> androidOnJsBeforeUnload(- InAppWebViewController controller,
- JsBeforeUnloadRequest jsBeforeUnloadRequest
- void androidOnReceivedLoginRequest(
- InAppWebViewController controller,
- LoginRequest loginRequest
- void iosOnWebContentProcessDidTerminate(
- InAppWebViewController controller
- Future<
IOSShouldAllowDeprecatedTLSAction?> iosShouldAllowDeprecatedTLS(- InAppWebViewController controller,
- URLAuthenticationChallenge challenge
- URLRequest? initialUrlRequest,
- String? initialFile,
- InAppWebViewInitialData? initialData,
- InAppWebViewGroupOptions? initialOptions,
- ContextMenu? contextMenu,
- UnmodifiableListView<
UserScript> ? initialUserScripts, - PullToRefreshController? pullToRefreshController,
- WebViewImplementation implementation = WebViewImplementation.NATIVE,
Implementation
WebView(
{this.windowId,
this.onWebViewCreated,
this.onLoadStart,
this.onLoadStop,
this.onLoadError,
this.onLoadHttpError,
this.onProgressChanged,
this.onConsoleMessage,
this.shouldOverrideUrlLoading,
this.onLoadResource,
this.onScrollChanged,
@Deprecated('Use `onDownloadStartRequest` instead')
this.onDownloadStart,
this.onDownloadStartRequest,
this.onLoadResourceCustomScheme,
this.onCreateWindow,
this.onCloseWindow,
this.onJsAlert,
this.onJsConfirm,
this.onJsPrompt,
this.onReceivedHttpAuthRequest,
this.onReceivedServerTrustAuthRequest,
this.onReceivedClientCertRequest,
this.onFindResultReceived,
this.shouldInterceptAjaxRequest,
this.onAjaxReadyStateChange,
this.onAjaxProgress,
this.shouldInterceptFetchRequest,
this.onUpdateVisitedHistory,
this.onPrint,
this.onLongPressHitTestResult,
this.onEnterFullscreen,
this.onExitFullscreen,
this.onPageCommitVisible,
this.onTitleChanged,
this.onWindowFocus,
this.onWindowBlur,
this.onOverScrolled,
this.onZoomScaleChanged,
this.androidOnSafeBrowsingHit,
this.androidOnPermissionRequest,
this.androidOnGeolocationPermissionsShowPrompt,
this.androidOnGeolocationPermissionsHidePrompt,
this.androidShouldInterceptRequest,
this.androidOnRenderProcessGone,
this.androidOnRenderProcessResponsive,
this.androidOnRenderProcessUnresponsive,
this.androidOnFormResubmission,
@Deprecated('Use `onZoomScaleChanged` instead')
this.androidOnScaleChanged,
this.androidOnReceivedIcon,
this.androidOnReceivedTouchIconUrl,
this.androidOnJsBeforeUnload,
this.androidOnReceivedLoginRequest,
this.iosOnWebContentProcessDidTerminate,
this.iosOnDidReceiveServerRedirectForProvisionalNavigation,
this.iosOnNavigationResponse,
this.iosShouldAllowDeprecatedTLS,
this.initialUrlRequest,
this.initialFile,
this.initialData,
this.initialOptions,
this.contextMenu,
this.initialUserScripts,
this.pullToRefreshController,
this.implementation = WebViewImplementation.NATIVE});