getSafeBrowsingPrivacyPolicyUrl method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebViewCompat.getSafeBrowsingPrivacyPolicyUrl', apiUrl: 'https://developer.android.com/reference/androidx/webkit/WebViewCompat#getSafeBrowsingPrivacyPolicyUrl()', note: 'This method should only be called if [WebViewFeature.isFeatureSupported] returns `true` for [WebViewFeature.SAFE_BROWSING_PRIVACY_POLICY_URL].')])
Returns a URL pointing to the privacy policy for Safe Browsing reporting.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.getSafeBrowsingPrivacyPolicyUrl):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.SAFE_BROWSING_PRIVACY_POLICY_URL.
- 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
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebViewCompat.getSafeBrowsingPrivacyPolicyUrl',
apiUrl:
'https://developer.android.com/reference/androidx/webkit/WebViewCompat#getSafeBrowsingPrivacyPolicyUrl()',
note:
'This method should only be called if [WebViewFeature.isFeatureSupported] returns `true` for [WebViewFeature.SAFE_BROWSING_PRIVACY_POLICY_URL].',
),
],
)
Future<WebUri?> getSafeBrowsingPrivacyPolicyUrl() {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.getSafeBrowsingPrivacyPolicyUrl.name} is not implemented on the current platform',
);
}