DMSResolvedContent


@interface DMSResolvedContent : NSObject

Represents the resolved content metadata returned from a resolve.

  • An array of resolved content items that were returned by the resolver. Sorted in order of relevance, so the first item will be the most relevant.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSArray<DMSResolvedContentItem *> *resolvedContentItems;

    Swift

    var items: [ResolvedContentItem] { get }
  • A complete dictionary object of the raw JSON.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSDictionary *rawResolvedContent;

    Swift

    var rawResolvedContent: [AnyHashable : Any]? { get }
  • A complete dictionary object of the product details data.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSDictionary *productDetails;

    Swift

    var productDetails: [AnyHashable : Any]? { get }
  • A string representation of the logical Digimarc Barcode internal identifier associated with this resolved content in the Digimarc Barcode Manager database. In some cases, the Digimarc Barcode Manager may return the same resolved content for more than one payload. For example, a registered GTIN product code resolved content may have both the Digimarc Image v7 watermark and the equivalent UPC-A/UPC-E/EAN8/EAN13 representations. In this case, the resolver will return the same resolved content for several payload query requests. The application may use the correlation key to detect this scenario and optionally retain only one of the payload/resolved content pairs in their reading history. This field is not always provided by Digimarc Barcode Manager nor by some forms of synthesized resolved content.

    Declaration

    Objective-C

    @property (nonatomic, retain, readonly, nonnull) NSString *correlationKey;

    Swift

    var correlationKey: String { get }
  • Filters content items by a given category. Useful for filtering resolved content items down to only the types an application is interested in.

    Declaration

    Objective-C

    - (nonnull NSArray<DMSResolvedContentItem *> *)contentItemsForCategory:
        (DMSResolvedContentItemCategory)category;

    Swift

    func items(category: ResolvedContentItemCategory) -> [ResolvedContentItem]

    Parameters

    category

    The category with which to filter content items.

    Return Value

    An array of content items matching category. Empty array if no items match the category.