DMSFormatMode

enum DMSFormatMode : NSInteger {}

Enumeration of modes for formatting data output from detections.

  • Option for expressing the data in the most compatible form.

    This mode produces data that that's comparable to other traditional barcode types. Data from types like Digimarc watermarks is returned in the most comparable traditional barcode format.
    
    This mode can produce output that's more compatible but contains less data than the detected symbology contains. You can get other metadata contained in the code, such as the serial number, through the ``DMSPayload/representations`` property.
    

    Declaration

    Objective-C

    DMSFormatModeCompatible = 0

    Swift

    case compatible = 0
  • Option for expressing the data in a complete format that is native to the symbology.

    This mode produces data that's less compatible with existing traditional barcode types but provides a complete output of what is contained in the detected code. Many Digimarc watermarks contain multiple types of data. In cases where the detected symbol contains multiple fields, this format mode produces a GS1 AI string that contains all data fields.
    
    This mode can produce output that's more complete but less compatible with existing 1D barcode types. Use this mode if your application is ready to work with GS1 AI strings.
    

    Declaration

    Objective-C

    DMSFormatModeNative = 2

    Swift

    case native = 2