shouldAllowDeprecatedTLS property

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'WKNavigationDelegate.webView', apiUrl: 'https://developer.apple.com/documentation/webkit/wknavigationdelegate/3601237-webview', available: '14.0'), MacOSPlatform(apiName: 'WKNavigationDelegate.webView', apiUrl: 'https://developer.apple.com/documentation/webkit/wknavigationdelegate/3601237-webview', available: '11.0')])
FutureOr<ShouldAllowDeprecatedTLSAction?> Function(T controller, URLAuthenticationChallenge challenge)? shouldAllowDeprecatedTLS
final

Called when a web view asks whether to continue with a connection that uses a deprecated version of TLS (v1.0 and v1.1).

challenge represents the authentication challenge.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • challenge: all platforms

Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    IOSPlatform(
      apiName: 'WKNavigationDelegate.webView',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wknavigationdelegate/3601237-webview',
      available: '14.0',
    ),
    MacOSPlatform(
      apiName: 'WKNavigationDelegate.webView',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wknavigationdelegate/3601237-webview',
      available: '11.0',
    ),
  ],
)
final FutureOr<ShouldAllowDeprecatedTLSAction?> Function(
  T controller,
  URLAuthenticationChallenge challenge,
)?
shouldAllowDeprecatedTLS;