Package org.adblockplus.libadblockplus.android.webview
-
Interface Summary Interface Description AdblockWebView.EventsListener Listener for ad blocking related events.SiteKeyExtractor Extracts a Site Key from anAdblockWebView's internals and verifies the Site Key What is expected from this class: Extract the Site Key from all available resources fromAdblockWebViewUseSiteKeyVerifierto verify it An instance ofSiteKeyVerifieris set to `siteKeysConfiguration` propertyAdblockWebViewaccepts the extractor by callingAdblockWebView.setSiteKeyExtractor(SiteKeyExtractor)For example, custom HTTP request can be made and resulting HTTP headers can be used to extract the Site Key from the header Or Site Key might be extracted from html root tag by injecting javascript intoAdblockWebViewand using JS handler to get the key back to WebViewWebViewCounters.EventsListener Listener for changing events. -
Class Summary Class Description AdblockWebView WebView with ad blockingAdblockWebView.EventsListener.AllowlistedResourceInfo Immutable data-class containing an auxiliary information about allowlisted resource.AdblockWebView.EventsListener.BlockedResourceInfo Immutable data-class containing an auxiliary information about blocked resource.AdblockWebView.EventsListener.ResourceInfo Immutable data-class containing an auxiliary information about resource event.AdblockWebView.WebResponseResult BaseSiteKeyExtractor CombinedSiteKeyExtractor Decides what extractor has to be used by analyzing the data thatAdblockWebViewhas.HttpHeaderSiteKeyExtractor Makes a custom HTTP request and then does the Site Key verification by callingSiteKeyVerifier.verifyInHeaders(String, Map, Map)HttpHeaderSiteKeyExtractor.ResourceInfo HttpHeaderSiteKeyExtractor.ServerResponseProcessor WebViewCounters A class for ad blocking counters, such as a counter of blocked resources, of a particular instance of WebView. -
Enum Summary Enum Description AdblockWebView.EventsListener.AllowlistReason Allowlisting reason:AdblockWebView.OptionalBoolean Optional boolean value.