SafeBrowsingResponseCompat

abstract class SafeBrowsingResponseCompat
kotlin.Any
   ↳ androidx.webkit.SafeBrowsingResponseCompat

Compatibility version of SafeBrowsingResponse.

Summary

Public methods

abstract Unit

Act as if the user clicked the "back to safety" button.

abstract Unit
proceed(report: Boolean)

Act as if the user clicked the "visit this unsafe site" button.

abstract Unit
showInterstitial(allowReporting: Boolean)

Display the default interstitial.

Public methods

backToSafety

abstract fun backToSafety(report: Boolean): Unit

Act as if the user clicked the "back to safety" button.

This method should only be called if WebViewFeature#isFeatureSupported(String) returns true for WebViewFeature#SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY.

Parameters
report Boolean: true to enable Safe Browsing reporting.

proceed

abstract fun proceed(report: Boolean): Unit

Act as if the user clicked the "visit this unsafe site" button.

This method should only be called if WebViewFeature#isFeatureSupported(String) returns true for WebViewFeature#SAFE_BROWSING_RESPONSE_PROCEED.

Parameters
report Boolean: true to enable Safe Browsing reporting.

showInterstitial

abstract fun showInterstitial(allowReporting: Boolean): Unit

Display the default interstitial.

This method should only be called if WebViewFeature#isFeatureSupported(String) returns true for WebViewFeature#SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL.

Parameters
allowReporting Boolean: true if the interstitial should show a reporting checkbox.