BarabaError
public enum BarabaError : Error
The type for errors thrown by Baraba methods.
-
An error code that indicates the app doesn’t have user permission to use the camera.
When this error occurs, you may prompt the user to give your app permission to use the camera in Settings.
Declaration
Swift
case cameraUnauthorized
-
An error code that indicates the configuration you chose to create Baraba object is not supported on the device.
Call
Baraba.isConfigurationSupported(_:)
to ensure it’s supported before attempting to create and run it on the Baraba object withresume()
.Declaration
Swift
case unsupportedConfiguration
-
An error code that indicates the camera sensor has failed.
Underlying error object is provided by either AVFoundation or ARKit.
Declaration
Swift
case cameraFailed(Error)
-
An error code that indicates an unknown error has occured.
Declaration
Swift
case unknown