RecordScanResult

public enum RecordScanResult

The result of scanning to record generic (not Usher specific) codes (various scannab;e code types)

  • The scan was successful

    Declaration

    Swift

    case success
  • The scan failed

    Declaration

    Swift

    case failure(UsherErrorProtocol)
  • Returns true if the result is a success, false otherwise.

    Declaration

    Swift

    public var isSuccess: Bool { get }
  • Returns true if the result is a failure, false otherwise.

    Declaration

    Swift

    public var isFailure: Bool { get }
  • Returns the underlying error if the result if failure, nil otherwise.

    Declaration

    Swift

    public var error: UsherErrorProtocol? { get }