clearSslPreferences method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebView.clearSslPreferences', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#clearSslPreferences()'), WindowsPlatform(apiName: 'ICoreWebView2_3.ClearServerCertificateErrorActions', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_14?view=webview2-1.0.2792.45#clearservercertificateerroractions')])
Future<void> clearSslPreferences()

Clears the SSL preferences table stored in response to proceeding with SSL certificate errors.

Officially Supported Platforms/Implementations:

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'WebView.clearSslPreferences',
      apiUrl:
          'https://developer.android.com/reference/android/webkit/WebView#clearSslPreferences()',
    ),
    WindowsPlatform(
      apiName: 'ICoreWebView2_3.ClearServerCertificateErrorActions',
      apiUrl:
          'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_14?view=webview2-1.0.2792.45#clearservercertificateerroractions',
    ),
  ],
)
Future<void> clearSslPreferences() {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.clearSslPreferences.name} is not implemented on the current platform',
  );
}