DMSError

enum DMSError : NSInteger {}

Error codes that could be returned from DMSDK readers.

  • The error returned when a sample buffer has been passed to a reader in a format that it does not understand.

    Declaration

    Objective-C

    DMSUnableToHandleMediaFormat

    Swift

    case unableToHandleMediaFormat = 0
  • The error returned when a license key is not supplied, is invalid, or is expired. A valid license key must be provided to use some classes including the reader and the resolver classes. A key can be set through an application’s Info.plist, the License Manager class, or directly through the DSReaderOptionKey. See the license manager documentation for more information.

    Declaration

    Objective-C

    DMSInvalidLicense

    Swift

    case invalidLicense = 1
  • The supplied Metal device is incompatible with this detector. The device may not have the minimum required set of capabilities. Try a different device, pass a nil value to use a CPU based detection, or don’t pass this option to let DMSDK find the best Metal device.

    Declaration

    Objective-C

    DMSReaderMetalDeviceIncompatible = 1
  • The reader options supplied to the initializer are not valid.

    Declaration

    Objective-C

    DMSInvalidOptions = 2

    Swift

    case invalidOptions = 2
  • This payload type was not recognized, or is not supported by the resolver.

    Declaration

    Objective-C

    DMSResolverCannotHandlePayloadType = 401

    Swift

    case resolverCannotHandlePayloadType = 401
  • The resolver was able to return a result, but it could not be parsed for an unknown reason. This could imply the data is being altered in transit.

    Declaration

    Objective-C

    DMSResolverCouldNotParseResult = 1000

    Swift

    case resolverCouldNotParseResult = 1000