SafeBrowsingResponseCompat
public abstract class SafeBrowsingResponseCompat
Compatibility version of SafeBrowsingResponse.
Summary
Public methods |
|
|---|---|
abstract void |
@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 void |
@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 void |
@RequiresFeature(name = WebViewFeature.SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")Display the default interstitial. |
Public methods
backToSafety
@RequiresFeature(name = WebViewFeature.SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
public abstract void backToSafety(boolean report)
Act as if the user clicked the "back to safety" button.
| Parameters | |
|---|---|
boolean report |
|
| Throws | |
|---|---|
java.lang.UnsupportedOperationException |
if the |
proceed
@RequiresFeature(name = WebViewFeature.SAFE_BROWSING_RESPONSE_PROCEED, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
public abstract void proceed(boolean report)
Act as if the user clicked the "visit this unsafe site" button.
| Parameters | |
|---|---|
boolean report |
|
| Throws | |
|---|---|
java.lang.UnsupportedOperationException |
if the |
showInterstitial
@RequiresFeature(name = WebViewFeature.SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
public abstract void showInterstitial(boolean allowReporting)
Display the default interstitial.
| Parameters | |
|---|---|
boolean allowReporting |
|
| Throws | |
|---|---|
java.lang.UnsupportedOperationException |
if the |