Blocking Ads and Trackers
Block advertising and user tracking URLs to create a safe browsing experience.
Blocking Ads and Trackers on Android and JavaScript
Filtering Status
import { Status } from '@sudoplatform/sudo-ad-tracker-blocker'
/*
* Status values:
*
* Status.Preparing:
* Calls to checkUrl() will be resolved when status
* becomes `Ready`.
*
* Status.Ready:
* Filter engine is ready and calls to checkUrl()
* will be answered immediately.
*
* Status.Error:
* An error occured while (re) initializing the
* filter engine.
*/
const status: Status = client.status// val client: SudoAdTrackerBlockerClient
enum class FilterEngineStatus {
/** The filter engine is (re)initializing */
PREPARING,
/** The filter engine is ready to be used */
READY,
/** The filter engine failed to update or initialize correctly */
ERROR,
UNKNOWN
}
/** The status of the filter engine. */
val status = client.statusCheck URL Against Active Rulesets
Blocking Ads and Trackers on iOS
Fetching Content Blocker Data
Using Ruleset Data with a WKWebView
Last updated