SafeBrowsingResponseCompat
abstract class SafeBrowsingResponseCompat
Compatibility version of SafeBrowsingResponse.
Summary
Public functions |
|
|---|---|
abstract Unit |
@RequiresFeature(name = WebViewFeature.SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")Act as if the user clicked the "back to safety" button. |
abstract Unit |
@RequiresFeature(name = WebViewFeature.SAFE_BROWSING_RESPONSE_PROCEED, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")Act as if the user clicked the "visit this unsafe site" button. |
abstract Unit |
@RequiresFeature(name = WebViewFeature.SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")Display the default interstitial. |
Public functions
backToSafety
@RequiresFeature(name = WebViewFeature.SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
abstract fun backToSafety(report: Boolean): Unit
Act as if the user clicked the "back to safety" button.
This method should only be called if isFeatureSupported returns true for SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY.
| Parameters | |
|---|---|
report: Boolean |
|
proceed
@RequiresFeature(name = WebViewFeature.SAFE_BROWSING_RESPONSE_PROCEED, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
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 isFeatureSupported returns true for SAFE_BROWSING_RESPONSE_PROCEED.
| Parameters | |
|---|---|
report: Boolean |
|
showInterstitial
@RequiresFeature(name = WebViewFeature.SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
abstract fun showInterstitial(allowReporting: Boolean): Unit
Display the default interstitial.
This method should only be called if isFeatureSupported returns true for SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL.
| Parameters | |
|---|---|
allowReporting: Boolean |
|