Package com.cefrium

Interface CefriumBrowser.RequestInterceptor

Enclosing class:
CefriumBrowser

public static interface CefriumBrowser.RequestInterceptor
Decides whether to block outgoing requests. Invoked on a background (network) thread for every request — must be fast and thread-safe, and must not touch the UI. Complements the built-in EasyList ad blocker.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    shouldBlockRequest(String url, String method, boolean isMainFrame)
    Return true to block (cancel) this request.
  • Method Details

    • shouldBlockRequest

      boolean shouldBlockRequest(String url, String method, boolean isMainFrame)
      Return true to block (cancel) this request.