setSafeBrowsingWhitelist method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform()])
  2. @Deprecated("Use setSafeBrowsingAllowlist instead")
Future<bool> setSafeBrowsingWhitelist({
  1. required List<String> hosts,
})

Use setSafeBrowsingAllowlist instead.

Officially Supported Platforms/Implementations:

  • Android WebView

Parameters - Officially Supported Platforms/Implementations:

  • hosts: all platforms

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

Implementation

@SupportedPlatforms(platforms: [AndroidPlatform()])
@Deprecated("Use setSafeBrowsingAllowlist instead")
Future<bool> setSafeBrowsingWhitelist({required List<String> hosts}) {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.setSafeBrowsingWhitelist.name} is not implemented on the current platform',
  );
}