Code

@objc
public enum Code : Int

The domain specific error code.

  • The Abound API key was not provided.

    To provide the API Key, either call Abound.provideAPIKey(apiKey: String) with your API key, or add the AboundAPIKey key to your app’s Info.plist file.

    To create an API key, visit https://metascan.ai/developer.

    Declaration

    Swift

    case missingApiKey = 101
  • The API key does not match any known.

    To create an API key, visit https://metascan.ai/developer.

    Declaration

    Swift

    case unknownApiKey = 102
  • Your API key has expired.

    To create a new API key, visit https://metascan.ai/developer.

    Declaration

    Swift

    case expiredApiKey = 103
  • The API key your provided was invalid.

    Declaration

    Swift

    case invalidApiKey = 104
  • The API failed to authorize.

    Declaration

    Swift

    case apiAuthorizationError = 105
  • The object you provided couldn’t be serialized to JSON using JSONSerialization.

    Declaration

    Swift

    case invalidJSON = 201
  • There was a network error communicating with the Abound API server.

    Declaration

    Swift

    case networkError = 301
  • The device is unsupported.

    Declaration

    Swift

    case unsupportedDevice = 302
  • The app’s Info.plist is missing a usage description key.

    Declaration

    Swift

    case usageDescriptionMissing = 304
  • The user has denied your app permission to use location services.

    Declaration

    Swift

    case locationUnauthorized = 305
  • The user has denied your app permission to use the device camera.

    Declaration

    Swift

    case cameraUnauthorized = 310
  • The camera session failed.

    Declaration

    Swift

    case sessionFailed = 311
  • There was file input/output error.

    Declaration

    Swift

    case fileIOFailed = 320
  • There was inadequate free volume capacity.

    Declaration

    Swift

    case notEnoughFreeSpace = 321
  • The export timed out.

    Declaration

    Swift

    case exportTimeout = 401
  • Unspecified internal error with SDK.

    Declaration

    Swift

    case internalError = 999