PollingStatus

public enum PollingStatus : Sendable

Represents the status of a polling operation.

  • Polling is in progress.

    Declaration

    Swift

    case `continue`(retryCount: Int, maxRetries: Int)

    Parameters

    retryCount

    The current retry count (1-based).

    maxRetries

    The maximum number of retries configured.

  • Polling timed out because the maximum number of retries was reached.

    Declaration

    Swift

    case timedOut
  • The challenge expired. Emitted when the server returns HTTP 400, indicating the challenge has expired on the server side.

    Declaration

    Swift

    case expired
  • An error occurred during polling (network error, JSON parse failure, etc.).

    Declaration

    Swift

    case error(Error)
  • Polling completed successfully.

    Declaration

    Swift

    case complete(status: String)

    Parameters

    status

    The status string returned by the server (e.g. "approved"). In simple polling mode this will be "continue".