Error

public enum Error : Swift.Error

This enum indicates possible errors that can occur during capturing a QR code.

  • This error occurs if the NIB/XIB of the application has not loaded or the application is otherwise not correctly initialized.

    Declaration

    Swift

    case noKeyWindow
  • This error occurs if the user has denied access to the camera or if camera access on the device is restricted in general. There is no need to ask the user to enable the permissions, as this is taken care of in startScanning. The purpose is to gracefully handle cases where the user does not want to grant the permission.

    Declaration

    Swift

    case permissionsNotGranted
  • This error occurs if there is no available camera device.

    Declaration

    Swift

    case noCaptureDevice