onSafeBrowsingHit property

(Future<SafeBrowsingResponse?> Function(InAppWebViewController controller, WebUri url, SafeBrowsingThreat? threatType)?) onSafeBrowsingHit
final

Event fired when the webview notifies that a loading URL has been flagged by Safe Browsing. The default behavior is to show an interstitial to the user, with the reporting checkbox visible.

url represents the url of the request.

threatType represents the reason the resource was caught by Safe Browsing, corresponding to a SafeBrowsingThreat.

NOTE: available only on Android 27+.

Supported Platforms/Implementations:

Implementation

final Future<SafeBrowsingResponse?> Function(
    InAppWebViewController controller,
    WebUri url,
    SafeBrowsingThreat? threatType)? onSafeBrowsingHit;