hasOnlySecureContent method

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'WKWebView.hasOnlySecureContent', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebview/1415002-hasonlysecurecontent'), MacOSPlatform(apiName: 'WKWebView.hasOnlySecureContent', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebview/1415002-hasonlysecurecontent')])
Future<bool> hasOnlySecureContent()

A Boolean value indicating whether all resources on the page have been loaded over securely encrypted connections.

Officially Supported Platforms/Implementations:

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

Implementation

@SupportedPlatforms(
  platforms: [
    IOSPlatform(
      apiName: 'WKWebView.hasOnlySecureContent',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebview/1415002-hasonlysecurecontent',
    ),
    MacOSPlatform(
      apiName: 'WKWebView.hasOnlySecureContent',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebview/1415002-hasonlysecurecontent',
    ),
  ],
)
Future<bool> hasOnlySecureContent() {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.hasOnlySecureContent.name} is not implemented on the current platform',
  );
}