PlatformHeadlessInAppWebViewCreationParams constructor
const
PlatformHeadlessInAppWebViewCreationParams({
- Size initialSize = const Size(-1, -1),
- PlatformWebViewEnvironment? webViewEnvironment,
- dynamic controllerFromPlatform(
- PlatformInAppWebViewController controller
- int? windowId,
- void onWebViewCreated(
- dynamic controller
- void onLoadStart(
- dynamic controller,
- WebUri? url
- void onLoadStop(
- dynamic controller,
- WebUri? url
- @Deprecated('Use onReceivedError instead') void onLoadError()?,
- void onReceivedError(
- dynamic controller,
- WebResourceRequest request,
- WebResourceError error
- @Deprecated("Use onReceivedHttpError instead") void onLoadHttpError()?,
- void onReceivedHttpError(
- dynamic controller,
- WebResourceRequest request,
- WebResourceResponse errorResponse
- void onProgressChanged(
- dynamic controller,
- int progress
- void onConsoleMessage(
- dynamic controller,
- ConsoleMessage consoleMessage
- Future<
NavigationActionPolicy?> shouldOverrideUrlLoading(- dynamic controller,
- void onLoadResource(
- dynamic controller,
- LoadedResource resource
- void onScrollChanged()?,
- @Deprecated('Use onDownloadStartRequest instead') void onDownloadStart(
- dynamic controller,
- Uri url
- void onDownloadStartRequest(
- dynamic controller,
- DownloadStartRequest downloadStartRequest
- @Deprecated('Use onLoadResourceWithCustomScheme instead') Future<
CustomSchemeResponse?> onLoadResourceCustomScheme(- dynamic controller,
- Uri url
- Future<
CustomSchemeResponse?> onLoadResourceWithCustomScheme(- dynamic controller,
- WebResourceRequest request
- Future<
bool?> onCreateWindow(- dynamic controller,
- CreateWindowAction createWindowAction
- void onCloseWindow(
- dynamic controller
- Future<
JsAlertResponse?> onJsAlert(- dynamic controller,
- JsAlertRequest jsAlertRequest
- Future<
JsConfirmResponse?> onJsConfirm(- dynamic controller,
- JsConfirmRequest jsConfirmRequest
- Future<
JsPromptResponse?> onJsPrompt(- dynamic controller,
- JsPromptRequest jsPromptRequest
- Future<
HttpAuthResponse?> onReceivedHttpAuthRequest(- dynamic controller,
- HttpAuthenticationChallenge challenge
- Future<
ServerTrustAuthResponse?> onReceivedServerTrustAuthRequest(- dynamic controller,
- ServerTrustChallenge challenge
- Future<
ClientCertResponse?> onReceivedClientCertRequest(- dynamic controller,
- ClientCertChallenge challenge
- @Deprecated('Use FindInteractionController.onFindResultReceived instead') void onFindResultReceived()?,
- Future<
AjaxRequest?> shouldInterceptAjaxRequest(- dynamic controller,
- AjaxRequest ajaxRequest
- Future<
AjaxRequestAction?> onAjaxReadyStateChange(- dynamic controller,
- AjaxRequest ajaxRequest
- Future<
AjaxRequestAction?> onAjaxProgress(- dynamic controller,
- AjaxRequest ajaxRequest
- Future<
FetchRequest?> shouldInterceptFetchRequest(- dynamic controller,
- FetchRequest fetchRequest
- void onUpdateVisitedHistory()?,
- @Deprecated("Use onPrintRequest instead") void onPrint(
- dynamic controller,
- Uri? url
- Future<
bool?> onPrintRequest(- dynamic controller,
- WebUri? url,
- PlatformPrintJobController? printJobController
- void onLongPressHitTestResult(
- dynamic controller,
- InAppWebViewHitTestResult hitTestResult
- void onEnterFullscreen(
- dynamic controller
- void onExitFullscreen(
- dynamic controller
- void onPageCommitVisible(
- dynamic controller,
- WebUri? url
- void onTitleChanged(
- dynamic controller,
- String? title
- void onWindowFocus(
- dynamic controller
- void onWindowBlur(
- dynamic controller
- void onOverScrolled()?,
- void onZoomScaleChanged()?,
- @Deprecated('Use onSafeBrowsingHit instead') Future<
SafeBrowsingResponse?> androidOnSafeBrowsingHit(- dynamic controller,
- Uri url,
- SafeBrowsingThreat? threatType
- Future<
SafeBrowsingResponse?> onSafeBrowsingHit(- dynamic controller,
- WebUri url,
- SafeBrowsingThreat? threatType
- @Deprecated('Use onPermissionRequest instead') Future<
PermissionRequestResponse?> androidOnPermissionRequest()?, - Future<
PermissionResponse?> onPermissionRequest(- dynamic controller,
- PermissionRequest permissionRequest
- @Deprecated('Use onGeolocationPermissionsShowPrompt instead') Future<
GeolocationPermissionShowPromptResponse?> androidOnGeolocationPermissionsShowPrompt(- dynamic controller,
- String origin
- Future<
GeolocationPermissionShowPromptResponse?> onGeolocationPermissionsShowPrompt(- dynamic controller,
- String origin
- @Deprecated('Use onGeolocationPermissionsHidePrompt instead') void androidOnGeolocationPermissionsHidePrompt(
- dynamic controller
- void onGeolocationPermissionsHidePrompt(
- dynamic controller
- @Deprecated('Use shouldInterceptRequest instead') Future<
WebResourceResponse?> androidShouldInterceptRequest(- dynamic controller,
- WebResourceRequest request
- Future<
WebResourceResponse?> shouldInterceptRequest(- dynamic controller,
- WebResourceRequest request
- @Deprecated('Use onRenderProcessGone instead') void androidOnRenderProcessGone(
- dynamic controller,
- RenderProcessGoneDetail detail
- void onRenderProcessGone(
- dynamic controller,
- RenderProcessGoneDetail detail
- @Deprecated('Use onRenderProcessResponsive instead') Future<
WebViewRenderProcessAction?> androidOnRenderProcessResponsive(- dynamic controller,
- Uri? url
- Future<
WebViewRenderProcessAction?> onRenderProcessResponsive(- dynamic controller,
- WebUri? url
- @Deprecated('Use onRenderProcessUnresponsive instead') Future<
WebViewRenderProcessAction?> androidOnRenderProcessUnresponsive(- dynamic controller,
- Uri? url
- Future<
WebViewRenderProcessAction?> onRenderProcessUnresponsive(- dynamic controller,
- WebUri? url
- @Deprecated('Use onFormResubmission instead') Future<
FormResubmissionAction?> androidOnFormResubmission(- dynamic controller,
- Uri? url
- Future<
FormResubmissionAction?> onFormResubmission(- dynamic controller,
- WebUri? url
- @Deprecated('Use onZoomScaleChanged instead') void androidOnScaleChanged()?,
- @Deprecated('Use onReceivedIcon instead') void androidOnReceivedIcon(
- dynamic controller,
- Uint8List icon
- void onReceivedIcon(
- dynamic controller,
- Uint8List icon
- @Deprecated('Use onReceivedTouchIconUrl instead') void androidOnReceivedTouchIconUrl()?,
- void onReceivedTouchIconUrl()?,
- @Deprecated('Use onJsBeforeUnload instead') Future<
JsBeforeUnloadResponse?> androidOnJsBeforeUnload(- dynamic controller,
- JsBeforeUnloadRequest jsBeforeUnloadRequest
- Future<
JsBeforeUnloadResponse?> onJsBeforeUnload(- dynamic controller,
- JsBeforeUnloadRequest jsBeforeUnloadRequest
- @Deprecated('Use onReceivedLoginRequest instead') void androidOnReceivedLoginRequest(
- dynamic controller,
- LoginRequest loginRequest
- void onReceivedLoginRequest(
- dynamic controller,
- LoginRequest loginRequest
- void onPermissionRequestCanceled(
- dynamic controller,
- PermissionRequest permissionRequest
- void onRequestFocus(
- dynamic controller
- @Deprecated('Use onWebContentProcessDidTerminate instead') void iosOnWebContentProcessDidTerminate(
- dynamic controller
- void onWebContentProcessDidTerminate(
- dynamic controller
- @Deprecated('Use shouldAllowDeprecatedTLS instead') Future<
IOSShouldAllowDeprecatedTLSAction?> iosShouldAllowDeprecatedTLS(- dynamic controller,
- URLAuthenticationChallenge challenge
- Future<
ShouldAllowDeprecatedTLSAction?> shouldAllowDeprecatedTLS(- dynamic controller,
- URLAuthenticationChallenge challenge
- Future<
void> onCameraCaptureStateChanged(- dynamic controller,
- MediaCaptureState? oldState,
- MediaCaptureState? newState
- Future<
void> onMicrophoneCaptureStateChanged(- dynamic controller,
- MediaCaptureState? oldState,
- MediaCaptureState? newState
- void onContentSizeChanged()?,
- URLRequest? initialUrlRequest,
- String? initialFile,
- InAppWebViewInitialData? initialData,
- @Deprecated('Use initialSettings instead') InAppWebViewGroupOptions? initialOptions,
- InAppWebViewSettings? initialSettings,
- ContextMenu? contextMenu,
- UnmodifiableListView<
UserScript> ? initialUserScripts, - PlatformPullToRefreshController? pullToRefreshController,
- 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});