selectOption

static boolean selectOption(Array<String> options)

Attempts to select an available option that contains any of the specified options. This selects options by finding if an available option equals any specified option first, then checks if any option contains any of the specified options. Options are prioritized based on the order specified.

Return

true if an option was selected, false otherwise

Parameters

options

the options to search for and select

static boolean selectOption(Predicate<String> filter)

Attempts to select an available option that matches the specified predicate

Return

true if an option was selected, false otherwise

Parameters

filter

the predicate to search for an available option with