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