EVGTag Class Reference

Inherits fromDeclared in
EVGItem : NSObjectEVGItems.h

Overview 

Additional tags about an item such as Brand for products or Author and Keywords for articles.

tagType 

Required. The type of a tag. See EVGTagType for values.

1@property (nonatomic) EVGTagType tagType

tagWithId:type: 

Creates an EVGTag with the required id and type only.

1+ (nonnull instancetype)tagWithId:(nonnull NSString *)evgId type:(EVGTagType)type

Parameters

ParameterDescription
evgIdRequired, see [EVGItem evgId]
typeRequired, see EVGTagType

Return Value

A tag which can be further modified.

tagWithId:type:name:evgDescription: 

Creates an EVGTag with the required id and type, and the most common optionals.

1+ (nonnull instancetype)tagWithId:(nonnull NSString *)evgId type:(EVGTagType)type name:(nullable NSString *)name evgDescription:(nullable NSString *)evgDescription

Parameters

ParameterDescription
evgIdRequired, see [EVGItem evgId]
typeRequired, see EVGTagType
nameSee [EVGItem name]
evgDescriptionSee [EVGItem evgDescription]

Return Value

A tag which can be further modified.

tagFromJSONDictionary: 

Creates a tag from the provided JSON.

1+ (nullable instancetype)tagFromJSONDictionary:(nonnull NSDictionary<NSString*,id> *)json

Parameters

ParameterDescription
jsonA tag in JSON form

Return Value

A tag which can be further modified, or nil if JSON is invalid