Package dev.turboism.sdk.ui.dialog
Enum Class HostDialogOutcome
- All Implemented Interfaces:
Serializable,Comparable<HostDialogOutcome>,Constable
Result of
HostDialogAutomationService.act(dev.turboism.sdk.ui.dialog.HostDialogMatcher, dev.turboism.sdk.ui.dialog.HostDialogAction, java.time.Duration).
All flow failures are reported through this enum; act throws only
for illegal arguments. Ambiguity and unrecognizable dialogs always fail
closed (AMBIGUOUS / UNSUPPORTED) without clicking.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDialog found, unique button matched, action triggered, dialog confirmed closed.Multiple buttons matched the same semantic action → nothing was triggered.No matching dialog appeared within the timeout (caller may treat as "no dialog, continue").Dialog appeared but did not close within the deadline after the action.No recognizable/operable button or not a target dialog type. -
Method Summary
Modifier and TypeMethodDescriptionstatic HostDialogOutcomeReturns the enum constant of this class with the specified name.static HostDialogOutcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTED
Dialog found, unique button matched, action triggered, dialog confirmed closed. -
NOT_FOUND
No matching dialog appeared within the timeout (caller may treat as "no dialog, continue"). -
TIMEOUT
Dialog appeared but did not close within the deadline after the action. -
AMBIGUOUS
Multiple buttons matched the same semantic action → nothing was triggered. -
UNSUPPORTED
No recognizable/operable button or not a target dialog type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-