AbraRulesBuilder

Builder to instantiate Abra rules

Functions

Link copied to clipboard
fun add(rule: AbraRules)

Add Abra rule to collection

Link copied to clipboard
open override fun all(): AbraRulesBuilder

Adds all Abra rules to the collection using default configurations.

Link copied to clipboard
fun build(): List<Rule>

Build the rules collection.

Link copied to clipboard

Checks if focusable elements have a correct name, if they have one.

Link copied to clipboard

Checks if focusable elements have a name.

Link copied to clipboard

Checks if focusable elements have a correct role, if they have one.

Link copied to clipboard

Checks if focusable elements have a role.

Link copied to clipboard

Checks if focusable elements have a correct state, if they have one.

Link copied to clipboard

Checks if focusable elements have a state, if they require one.

Link copied to clipboard

Checks if focusable elements have a correct value, if they have one.

Link copied to clipboard

Checks if focusable elements have a value, if they require one.

Link copied to clipboard

Checks if landscape orientation is supported.

Link copied to clipboard

Checks if portrait orientation is supported.

Link copied to clipboard
fun reset()

Removes all rules from the collection.

Link copied to clipboard

Checks if targets are sized according to enhanced requirements.

Link copied to clipboard

Checks if targets are sized or spaced according to minimum requirements.

Link copied to clipboard

Checks if text scaling is supported.