Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.webkit:webkit:1.0.0-rc01

SafeBrowsingResponseCompat

public abstract class SafeBrowsingResponseCompat
extends Object

java.lang.Object
   ↳ androidx.webkit.SafeBrowsingResponseCompat


Compatibility version of SafeBrowsingResponse.

Summary

Public methods

abstract void backToSafety(boolean report)

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

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

abstract void proceed(boolean report)

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

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

abstract void showInterstitial(boolean allowReporting)

Display the default interstitial.

Inherited methods

Public methods

backToSafety

added in version 1.0.0
public abstract void backToSafety (boolean report)

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

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

added in version 1.0.0
public abstract void proceed (boolean report)

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

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

added in version 1.0.0
public abstract void showInterstitial (boolean allowReporting)

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.