startSafeBrowsing method
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:
- Android WebView (Official API - WebView.startSafeBrowsing):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.START_SAFE_BROWSING.
- This method should only be called if WebViewFeature.isFeatureSupported returns
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<bool> startSafeBrowsing() => platform.startSafeBrowsing();