PlatformWebViewCreationParams<T> constructor

const PlatformWebViewCreationParams<T>({
  1. T controllerFromPlatform(
    1. PlatformInAppWebViewController controller
    )?,
  2. int? windowId,
  3. void onWebViewCreated(
    1. T controller
    )?,
  4. void onLoadStart(
    1. T controller,
    2. WebUri? url
    )?,
  5. void onLoadStop(
    1. T controller,
    2. WebUri? url
    )?,
  6. @Deprecated('Use onReceivedError instead') void onLoadError(
    1. T controller,
    2. Uri? url,
    3. int code,
    4. String message,
    )?,
  7. void onReceivedError(
    1. T controller,
    2. WebResourceRequest request,
    3. WebResourceError error
    )?,
  8. @Deprecated("Use onReceivedHttpError instead") void onLoadHttpError(
    1. T controller,
    2. Uri? url,
    3. int statusCode,
    4. String description,
    )?,
  9. void onReceivedHttpError(
    1. T controller,
    2. WebResourceRequest request,
    3. WebResourceResponse errorResponse
    )?,
  10. void onProgressChanged(
    1. T controller,
    2. int progress
    )?,
  11. void onConsoleMessage(
    1. T controller,
    2. ConsoleMessage consoleMessage
    )?,
  12. Future<NavigationActionPolicy?> shouldOverrideUrlLoading(
    1. T controller,
    2. NavigationAction navigationAction
    )?,
  13. void onLoadResource(
    1. T controller,
    2. LoadedResource resource
    )?,
  14. void onScrollChanged(
    1. T controller,
    2. int x,
    3. int y
    )?,
  15. @Deprecated('Use onDownloadStartRequest instead') void onDownloadStart(
    1. T controller,
    2. Uri url
    )?,
  16. void onDownloadStartRequest(
    1. T controller,
    2. DownloadStartRequest downloadStartRequest
    )?,
  17. @Deprecated('Use onLoadResourceWithCustomScheme instead') Future<CustomSchemeResponse?> onLoadResourceCustomScheme(
    1. T controller,
    2. Uri url
    )?,
  18. Future<CustomSchemeResponse?> onLoadResourceWithCustomScheme(
    1. T controller,
    2. WebResourceRequest request
    )?,
  19. Future<bool?> onCreateWindow(
    1. T controller,
    2. CreateWindowAction createWindowAction
    )?,
  20. void onCloseWindow(
    1. T controller
    )?,
  21. Future<JsAlertResponse?> onJsAlert(
    1. T controller,
    2. JsAlertRequest jsAlertRequest
    )?,
  22. Future<JsConfirmResponse?> onJsConfirm(
    1. T controller,
    2. JsConfirmRequest jsConfirmRequest
    )?,
  23. Future<JsPromptResponse?> onJsPrompt(
    1. T controller,
    2. JsPromptRequest jsPromptRequest
    )?,
  24. Future<HttpAuthResponse?> onReceivedHttpAuthRequest(
    1. T controller,
    2. HttpAuthenticationChallenge challenge
    )?,
  25. Future<ServerTrustAuthResponse?> onReceivedServerTrustAuthRequest(
    1. T controller,
    2. ServerTrustChallenge challenge
    )?,
  26. Future<ClientCertResponse?> onReceivedClientCertRequest(
    1. T controller,
    2. ClientCertChallenge challenge
    )?,
  27. @Deprecated('Use FindInteractionController.onFindResultReceived instead') void onFindResultReceived(
    1. T controller,
    2. int activeMatchOrdinal,
    3. int numberOfMatches,
    4. bool isDoneCounting,
    )?,
  28. Future<AjaxRequest?> shouldInterceptAjaxRequest(
    1. T controller,
    2. AjaxRequest ajaxRequest
    )?,
  29. Future<AjaxRequestAction?> onAjaxReadyStateChange(
    1. T controller,
    2. AjaxRequest ajaxRequest
    )?,
  30. Future<AjaxRequestAction?> onAjaxProgress(
    1. T controller,
    2. AjaxRequest ajaxRequest
    )?,
  31. Future<FetchRequest?> shouldInterceptFetchRequest(
    1. T controller,
    2. FetchRequest fetchRequest
    )?,
  32. void onUpdateVisitedHistory(
    1. T controller,
    2. WebUri? url,
    3. bool? isReload
    )?,
  33. @Deprecated("Use onPrintRequest instead") void onPrint(
    1. T controller,
    2. Uri? url
    )?,
  34. Future<bool?> onPrintRequest(
    1. T controller,
    2. WebUri? url,
    3. PlatformPrintJobController? printJobController
    )?,
  35. void onLongPressHitTestResult(
    1. T controller,
    2. InAppWebViewHitTestResult hitTestResult
    )?,
  36. void onEnterFullscreen(
    1. T controller
    )?,
  37. void onExitFullscreen(
    1. T controller
    )?,
  38. void onPageCommitVisible(
    1. T controller,
    2. WebUri? url
    )?,
  39. void onTitleChanged(
    1. T controller,
    2. String? title
    )?,
  40. void onWindowFocus(
    1. T controller
    )?,
  41. void onWindowBlur(
    1. T controller
    )?,
  42. void onOverScrolled(
    1. T controller,
    2. int x,
    3. int y,
    4. bool clampedX,
    5. bool clampedY,
    )?,
  43. void onZoomScaleChanged(
    1. T controller,
    2. double oldScale,
    3. double newScale
    )?,
  44. @Deprecated('Use onSafeBrowsingHit instead') Future<SafeBrowsingResponse?> androidOnSafeBrowsingHit(
    1. T controller,
    2. Uri url,
    3. SafeBrowsingThreat? threatType
    )?,
  45. Future<SafeBrowsingResponse?> onSafeBrowsingHit(
    1. T controller,
    2. WebUri url,
    3. SafeBrowsingThreat? threatType
    )?,
  46. @Deprecated('Use onPermissionRequest instead') Future<PermissionRequestResponse?> androidOnPermissionRequest(
    1. T controller,
    2. String origin,
    3. List<String> resources
    )?,
  47. Future<PermissionResponse?> onPermissionRequest(
    1. T controller,
    2. PermissionRequest permissionRequest
    )?,
  48. @Deprecated('Use onGeolocationPermissionsShowPrompt instead') Future<GeolocationPermissionShowPromptResponse?> androidOnGeolocationPermissionsShowPrompt(
    1. T controller,
    2. String origin
    )?,
  49. Future<GeolocationPermissionShowPromptResponse?> onGeolocationPermissionsShowPrompt(
    1. T controller,
    2. String origin
    )?,
  50. @Deprecated('Use onGeolocationPermissionsHidePrompt instead') void androidOnGeolocationPermissionsHidePrompt(
    1. T controller
    )?,
  51. void onGeolocationPermissionsHidePrompt(
    1. T controller
    )?,
  52. @Deprecated('Use shouldInterceptRequest instead') Future<WebResourceResponse?> androidShouldInterceptRequest(
    1. T controller,
    2. WebResourceRequest request
    )?,
  53. Future<WebResourceResponse?> shouldInterceptRequest(
    1. T controller,
    2. WebResourceRequest request
    )?,
  54. @Deprecated('Use onRenderProcessGone instead') void androidOnRenderProcessGone(
    1. T controller,
    2. RenderProcessGoneDetail detail
    )?,
  55. void onRenderProcessGone(
    1. T controller,
    2. RenderProcessGoneDetail detail
    )?,
  56. @Deprecated('Use onRenderProcessResponsive instead') Future<WebViewRenderProcessAction?> androidOnRenderProcessResponsive(
    1. T controller,
    2. Uri? url
    )?,
  57. Future<WebViewRenderProcessAction?> onRenderProcessResponsive(
    1. T controller,
    2. WebUri? url
    )?,
  58. @Deprecated('Use onRenderProcessUnresponsive instead') Future<WebViewRenderProcessAction?> androidOnRenderProcessUnresponsive(
    1. T controller,
    2. Uri? url
    )?,
  59. Future<WebViewRenderProcessAction?> onRenderProcessUnresponsive(
    1. T controller,
    2. WebUri? url
    )?,
  60. @Deprecated('Use onFormResubmission instead') Future<FormResubmissionAction?> androidOnFormResubmission(
    1. T controller,
    2. Uri? url
    )?,
  61. Future<FormResubmissionAction?> onFormResubmission(
    1. T controller,
    2. WebUri? url
    )?,
  62. @Deprecated('Use onZoomScaleChanged instead') void androidOnScaleChanged(
    1. T controller,
    2. double oldScale,
    3. double newScale
    )?,
  63. @Deprecated('Use onReceivedIcon instead') void androidOnReceivedIcon(
    1. T controller,
    2. Uint8List icon
    )?,
  64. void onReceivedIcon(
    1. T controller,
    2. Uint8List icon
    )?,
  65. @Deprecated('Use onReceivedTouchIconUrl instead') void androidOnReceivedTouchIconUrl(
    1. T controller,
    2. Uri url,
    3. bool precomposed
    )?,
  66. void onReceivedTouchIconUrl(
    1. T controller,
    2. WebUri url,
    3. bool precomposed
    )?,
  67. @Deprecated('Use onJsBeforeUnload instead') Future<JsBeforeUnloadResponse?> androidOnJsBeforeUnload(
    1. T controller,
    2. JsBeforeUnloadRequest jsBeforeUnloadRequest
    )?,
  68. Future<JsBeforeUnloadResponse?> onJsBeforeUnload(
    1. T controller,
    2. JsBeforeUnloadRequest jsBeforeUnloadRequest
    )?,
  69. @Deprecated('Use onReceivedLoginRequest instead') void androidOnReceivedLoginRequest(
    1. T controller,
    2. LoginRequest loginRequest
    )?,
  70. void onReceivedLoginRequest(
    1. T controller,
    2. LoginRequest loginRequest
    )?,
  71. void onPermissionRequestCanceled(
    1. T controller,
    2. PermissionRequest permissionRequest
    )?,
  72. void onRequestFocus(
    1. T controller
    )?,
  73. @Deprecated('Use onWebContentProcessDidTerminate instead') void iosOnWebContentProcessDidTerminate(
    1. T controller
    )?,
  74. void onWebContentProcessDidTerminate(
    1. T controller
    )?,
  75. @Deprecated('Use onDidReceiveServerRedirectForProvisionalNavigation instead') void iosOnDidReceiveServerRedirectForProvisionalNavigation(
    1. T controller
    )?,
  76. void onDidReceiveServerRedirectForProvisionalNavigation(
    1. T controller
    )?,
  77. @Deprecated('Use onNavigationResponse instead') Future<IOSNavigationResponseAction?> iosOnNavigationResponse(
    1. T controller,
    2. IOSWKNavigationResponse navigationResponse
    )?,
  78. Future<NavigationResponseAction?> onNavigationResponse(
    1. T controller,
    2. NavigationResponse navigationResponse
    )?,
  79. @Deprecated('Use shouldAllowDeprecatedTLS instead') Future<IOSShouldAllowDeprecatedTLSAction?> iosShouldAllowDeprecatedTLS(
    1. T controller,
    2. URLAuthenticationChallenge challenge
    )?,
  80. Future<ShouldAllowDeprecatedTLSAction?> shouldAllowDeprecatedTLS(
    1. T controller,
    2. URLAuthenticationChallenge challenge
    )?,
  81. Future<void> onCameraCaptureStateChanged(
    1. T controller,
    2. MediaCaptureState? oldState,
    3. MediaCaptureState? newState
    )?,
  82. Future<void> onMicrophoneCaptureStateChanged(
    1. T controller,
    2. MediaCaptureState? oldState,
    3. MediaCaptureState? newState
    )?,
  83. void onContentSizeChanged(
    1. T controller,
    2. Size oldContentSize,
    3. Size newContentSize
    )?,
  84. URLRequest? initialUrlRequest,
  85. String? initialFile,
  86. InAppWebViewInitialData? initialData,
  87. @Deprecated('Use initialSettings instead') InAppWebViewGroupOptions? initialOptions,
  88. InAppWebViewSettings? initialSettings,
  89. ContextMenu? contextMenu,
  90. UnmodifiableListView<UserScript>? initialUserScripts,
  91. PlatformPullToRefreshController? pullToRefreshController,
  92. PlatformFindInteractionController? findInteractionController,
})

Class that represents a WebView. Used by InAppWebView, HeadlessInAppWebView and the WebView of PlatformInAppBrowser.

Implementation

const PlatformWebViewCreationParams(
    {this.controllerFromPlatform,
    this.windowId,
    this.onWebViewCreated,
    this.onLoadStart,
    this.onLoadStop,
    @Deprecated('Use onReceivedError instead') this.onLoadError,
    this.onReceivedError,
    @Deprecated("Use onReceivedHttpError instead") this.onLoadHttpError,
    this.onReceivedHttpError,
    this.onProgressChanged,
    this.onConsoleMessage,
    this.shouldOverrideUrlLoading,
    this.onLoadResource,
    this.onScrollChanged,
    @Deprecated('Use onDownloadStartRequest instead') this.onDownloadStart,
    this.onDownloadStartRequest,
    @Deprecated('Use onLoadResourceWithCustomScheme instead')
    this.onLoadResourceCustomScheme,
    this.onLoadResourceWithCustomScheme,
    this.onCreateWindow,
    this.onCloseWindow,
    this.onJsAlert,
    this.onJsConfirm,
    this.onJsPrompt,
    this.onReceivedHttpAuthRequest,
    this.onReceivedServerTrustAuthRequest,
    this.onReceivedClientCertRequest,
    @Deprecated('Use FindInteractionController.onFindResultReceived instead')
    this.onFindResultReceived,
    this.shouldInterceptAjaxRequest,
    this.onAjaxReadyStateChange,
    this.onAjaxProgress,
    this.shouldInterceptFetchRequest,
    this.onUpdateVisitedHistory,
    @Deprecated("Use onPrintRequest instead") this.onPrint,
    this.onPrintRequest,
    this.onLongPressHitTestResult,
    this.onEnterFullscreen,
    this.onExitFullscreen,
    this.onPageCommitVisible,
    this.onTitleChanged,
    this.onWindowFocus,
    this.onWindowBlur,
    this.onOverScrolled,
    this.onZoomScaleChanged,
    @Deprecated('Use onSafeBrowsingHit instead')
    this.androidOnSafeBrowsingHit,
    this.onSafeBrowsingHit,
    @Deprecated('Use onPermissionRequest instead')
    this.androidOnPermissionRequest,
    this.onPermissionRequest,
    @Deprecated('Use onGeolocationPermissionsShowPrompt instead')
    this.androidOnGeolocationPermissionsShowPrompt,
    this.onGeolocationPermissionsShowPrompt,
    @Deprecated('Use onGeolocationPermissionsHidePrompt instead')
    this.androidOnGeolocationPermissionsHidePrompt,
    this.onGeolocationPermissionsHidePrompt,
    @Deprecated('Use shouldInterceptRequest instead')
    this.androidShouldInterceptRequest,
    this.shouldInterceptRequest,
    @Deprecated('Use onRenderProcessGone instead')
    this.androidOnRenderProcessGone,
    this.onRenderProcessGone,
    @Deprecated('Use onRenderProcessResponsive instead')
    this.androidOnRenderProcessResponsive,
    this.onRenderProcessResponsive,
    @Deprecated('Use onRenderProcessUnresponsive instead')
    this.androidOnRenderProcessUnresponsive,
    this.onRenderProcessUnresponsive,
    @Deprecated('Use onFormResubmission instead')
    this.androidOnFormResubmission,
    this.onFormResubmission,
    @Deprecated('Use onZoomScaleChanged instead') this.androidOnScaleChanged,
    @Deprecated('Use onReceivedIcon instead') this.androidOnReceivedIcon,
    this.onReceivedIcon,
    @Deprecated('Use onReceivedTouchIconUrl instead')
    this.androidOnReceivedTouchIconUrl,
    this.onReceivedTouchIconUrl,
    @Deprecated('Use onJsBeforeUnload instead') this.androidOnJsBeforeUnload,
    this.onJsBeforeUnload,
    @Deprecated('Use onReceivedLoginRequest instead')
    this.androidOnReceivedLoginRequest,
    this.onReceivedLoginRequest,
    this.onPermissionRequestCanceled,
    this.onRequestFocus,
    @Deprecated('Use onWebContentProcessDidTerminate instead')
    this.iosOnWebContentProcessDidTerminate,
    this.onWebContentProcessDidTerminate,
    @Deprecated(
        'Use onDidReceiveServerRedirectForProvisionalNavigation instead')
    this.iosOnDidReceiveServerRedirectForProvisionalNavigation,
    this.onDidReceiveServerRedirectForProvisionalNavigation,
    @Deprecated('Use onNavigationResponse instead')
    this.iosOnNavigationResponse,
    this.onNavigationResponse,
    @Deprecated('Use shouldAllowDeprecatedTLS instead')
    this.iosShouldAllowDeprecatedTLS,
    this.shouldAllowDeprecatedTLS,
    this.onCameraCaptureStateChanged,
    this.onMicrophoneCaptureStateChanged,
    this.onContentSizeChanged,
    this.initialUrlRequest,
    this.initialFile,
    this.initialData,
    @Deprecated('Use initialSettings instead') this.initialOptions,
    this.initialSettings,
    this.contextMenu,
    this.initialUserScripts,
    this.pullToRefreshController,
    this.findInteractionController});