buildRules

fun buildRules(config: ScannerConfig, screenDensity: Float): List<A11yRule>

Builds the list of rules enabled by config, wiring density-dependent rules with screenDensity.

Return

Rule instances that should run for the provided configuration.

Parameters

config

Scanner configuration containing enabled rule ids and thresholds.

screenDensity

Display density used by pixel/dp conversion rules. Must not be zero.