Enum Class HostDialogOutcome

java.lang.Object
java.lang.Enum<HostDialogOutcome>
dev.turboism.sdk.ui.dialog.HostDialogOutcome
All Implemented Interfaces:
Serializable, Comparable<HostDialogOutcome>, Constable

public enum HostDialogOutcome extends Enum<HostDialogOutcome>
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.

  • Enum Constant Details

    • ACTED

      public static final HostDialogOutcome ACTED
      Dialog found, unique button matched, action triggered, dialog confirmed closed.
    • NOT_FOUND

      public static final HostDialogOutcome NOT_FOUND
      No matching dialog appeared within the timeout (caller may treat as "no dialog, continue").
    • TIMEOUT

      public static final HostDialogOutcome TIMEOUT
      Dialog appeared but did not close within the deadline after the action.
    • AMBIGUOUS

      public static final HostDialogOutcome AMBIGUOUS
      Multiple buttons matched the same semantic action → nothing was triggered.
    • UNSUPPORTED

      public static final HostDialogOutcome UNSUPPORTED
      No recognizable/operable button or not a target dialog type.
  • Method Details

    • values

      public static HostDialogOutcome[] 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

      public static HostDialogOutcome valueOf(String name)
      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 name
      NullPointerException - if the argument is null