PlatformInAppWebViewWidgetCreationParams constructor

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

Used by the platform implementation to create a new PlatformInAppWebViewWidget.

Implementation

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