PlatformHeadlessInAppWebViewCreationParams constructor

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

Used by the platform implementation to create a new PlatformHeadlessInAppWebView.

Implementation

const PlatformHeadlessInAppWebViewCreationParams(
    {this.initialSize = const Size(-1, -1),
    this.webViewEnvironment,
    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});