Class ContentBlocking.BlockEvent

Object
org.mozilla.geckoview.ContentBlocking.BlockEvent
Enclosing class:
ContentBlocking

public static class ContentBlocking.BlockEvent extends Object
Holds content block event details.
  • Field Details

    • uri

      @NonNull public final String uri
      The URI of the blocked resource.
  • Constructor Details

    • BlockEvent

      public BlockEvent(@NonNull String uri, int atCat, int sbCat, int cbCat, boolean isBlocking)
  • Method Details

    • getAntiTrackingCategory

      @UiThread public int getAntiTrackingCategory()
      The anti-tracking category types of the blocked resource.
      Returns:
      One or more of the ContentBlocking.AntiTracking flags.
    • getSafeBrowsingCategory

      @UiThread public int getSafeBrowsingCategory()
      The safe browsing category types of the blocked resource.
      Returns:
      One or more of the ContentBlocking.SafeBrowsing flags.
    • getCookieBehaviorCategory

      @UiThread public int getCookieBehaviorCategory()
      The cookie types of the blocked resource.
      Returns:
      One or more of the ContentBlocking.CookieBehavior flags.
    • isBlocking

      @UiThread public boolean isBlocking()