startSafeBrowsing method

Future<bool> startSafeBrowsing()

Starts Safe Browsing initialization.

URL loads are not guaranteed to be protected by Safe Browsing until after the this method returns true. Safe Browsing is not fully supported on all devices. For those devices this method will returns false.

This should not be called if Safe Browsing has been disabled by manifest tag or AndroidInAppWebViewOptions.safeBrowsingEnabled. This prepares resources used for Safe Browsing.

Officially Supported Platforms/Implementations:

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

Implementation

Future<bool> startSafeBrowsing() => platform.startSafeBrowsing();