AbraRulesBuilder

Builder to instantiate Abra rules

Functions

Link copied to clipboard
open override fun add(rule: AbraRules): AbraRulesBuilder

Add Abra rule to collection

fun add(vararg rules: AbraRules): RulesBuilder<AbraRules>

Add one or more rules to the collection.

Add multiple rules to the collection.

Link copied to clipboard
open override fun all(statuses: List<RuleStatus>): AbraRulesBuilder

Adds all Abra rules matching the provided statuses to the collection.

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 a language is present at the application level.

Link copied to clipboard

Checks if landscape orientation is supported.

Link copied to clipboard

Checks if portrait orientation is supported.

Link copied to clipboard

Remove a rule from the collection.

fun remove(vararg rules: AbraRules): RulesBuilder<AbraRules>

Remove one or more rules from the collection.

Remove multiple rules from the collection.

Link copied to clipboard

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.