setSafeBrowsingWhitelist static method

  1. @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

@Deprecated("Use setSafeBrowsingAllowlist instead")
static Future<bool> setSafeBrowsingWhitelist({required List<String> hosts}) =>
    PlatformInAppWebViewController.static().setSafeBrowsingWhitelist(
      hosts: hosts,
    );