Package org.mozilla.geckoview
Class ContentBlocking.BlockEvent
Object
org.mozilla.geckoview.ContentBlocking.BlockEvent
- Enclosing class:
- ContentBlocking
Holds content block event details.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlockEvent(String uri, int atCat, int sbCat, int cbCat, boolean isBlocking) Constructor for BlockEvent. -
Method Summary
Modifier and TypeMethodDescriptionintThe anti-tracking category types of the blocked resource.intThe cookie types of the blocked resource.intThe safe browsing category types of the blocked resource.booleanGet whether this resource is being blocked.
-
Field Details
-
uri
The URI of the blocked resource.
-
-
Constructor Details
-
BlockEvent
Constructor for BlockEvent.- Parameters:
uri- The URI of the blocked resourceatCat- The anti-tracking categorysbCat- The safe browsing categorycbCat- The cookie behavior categoryisBlocking- Whether the resource is being blocked
-
-
Method Details
-
getAntiTrackingCategory
@UiThread public int getAntiTrackingCategory()The anti-tracking category types of the blocked resource.- Returns:
- One or more of the
ContentBlocking.AntiTrackingflags.
-
getSafeBrowsingCategory
@UiThread public int getSafeBrowsingCategory()The safe browsing category types of the blocked resource.- Returns:
- One or more of the
ContentBlocking.SafeBrowsingflags.
-
getCookieBehaviorCategory
@UiThread public int getCookieBehaviorCategory()The cookie types of the blocked resource.- Returns:
- One or more of the
ContentBlocking.CookieBehaviorflags.
-
isBlocking
@UiThread public boolean isBlocking()Get whether this resource is being blocked.- Returns:
- true if the resource is being blocked, false otherwise
-