ScanProcessorResult

public enum ScanProcessorResult

The result of scan procssing. This is returned in the completion of process(_ code:, type:, completion:).

  • The scanned code was an Usher QR code for a badge.

    Declaration

    Swift

    case validateBadgeByQRCode(validatedBadge: Badge?, error: UsherErrorProtocol?)
    Parameters
    validatedBadge

    The badge to associated with that Usher QR code. Nil if validation failed.

    error

    The error if validation failed.

  • The scanned code was an Usher deeplink.

    Declaration

    Swift

    case processDeeplinkQRCode(result: DeeplinkProcessingResult)
    Parameters
    result

    The result of deeplink processing.

  • The scanned code was for an Usher resource QR code, such as Web SSO, key etc.

    Seealso

    VerifyQRResult
    Declaration

    Swift

    case accessResourceByQRCode(result: VerifyQRResult?, error: UsherErrorProtocol?)
    Parameters
    result

    The result of the access Usher resource workflow

    error

    The error if the workflow failed.

  • The scanned code was not an Usher recognized QR code. However the scan was logged to server. What badges the scan gets logged to is controlled by recordGenericCodeScan property on badge object.

    Seealso

    ScanLogEntry

    Seealso

    Badge
    Declaration

    Swift

    case logGenericCode(logEntry: ScanLogEntry?, error: UsherErrorProtocol?)
    Parameters
    logEntry

    Logged scan

  • The scanned code is of unknown format and not recognized by iOS.

    Declaration

    Swift

    case unknownCode
  • The scanned code cannot be processed. Refer to the error for more details. e.g. SDK has not been initialized or no server has been configured yet and the scanned code does not contain embedded server configuration configuration either.

    Declaration

    Swift

    case error(error: UsherErrorProtocol?)