getSafeBrowsingPrivacyPolicyUrl method

  1. @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].')])
Future<WebUri?> getSafeBrowsingPrivacyPolicyUrl()

Returns a URL pointing to the privacy policy for Safe Browsing reporting.

Officially Supported Platforms/Implementations:

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',
  );
}