hasOnlySecureContent method
- @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')])
A Boolean value indicating whether all resources on the page have been loaded over securely encrypted connections.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKWebView.hasOnlySecureContent)
- macOS WKWebView (Official API - WKWebView.hasOnlySecureContent)
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',
);
}