setActiveRulesets

abstract suspend fun setActiveRulesets(activeRuleset: Ruleset.Type, vararg moreActiveRulesets: Ruleset.Type = emptyArray())

Sets which Rulesets are active. This method does not return until the new rules have been compiled and the filtering engine is ready. updateRulesets must be called to update the local copy of the Rulesets before this method is called for the very first time.

Parameters

activeRuleset

The Ruleset that should become active.

moreActiveRulesets

The other Rulesets that should become active.

Samples

com.sudoplatform.sudoadtrackerblocker.samples.Samples.setActiveRulesets
abstract suspend fun setActiveRulesets(activeRulesets: Array<Ruleset.Type> = noRulesets())

Sets which Rulesets are active. This method does not return until the new rules have been compiled and the filtering engine is ready. updateRulesets must be called to update the local copy of the Rulesets before this method is called for the very first time.

Parameters

activeRulesets

The Rulesets that should become active. All Rulesets will be deactivated if this argument is not supplied.

Samples

com.sudoplatform.sudoadtrackerblocker.samples.Samples.setActiveRulesets