getSafeBrowsingPrivacyPolicyUrl method
Returns a URL pointing to the privacy policy for Safe Browsing reporting.
This method should only be called if WebViewFeature.isFeatureSupported
returns true
for WebViewFeature.SAFE_BROWSING_PRIVACY_POLICY_URL
.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewCompat.getSafeBrowsingPrivacyPolicyUrl)
Implementation
@override
Future<WebUri?> getSafeBrowsingPrivacyPolicyUrl() async {
Map<String, dynamic> args = <String, dynamic>{};
String? url = await _staticChannel.invokeMethod(
'getSafeBrowsingPrivacyPolicyUrl', args);
return url != null ? WebUri(url) : null;
}