BlockingProvider

Provide ad and tracker detection and blocking.

Functions

Link copied to clipboard
abstract suspend fun checkIsUrlBlocked(url: String, sourceUrl: String?, resourceType: String?): Boolean

Checks a URL to determine if it is blocked according to current configuration.

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract suspend fun setRules(blockingRules: List<String>, exceptionRules: String? = null)

Set the rules the blocking service should use to determine if a URL should be blocked.