EVGTag Class Reference
| Inherits from | Declared in |
|---|
EVGItem : NSObject | EVGItems.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
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
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
| Parameter | Description |
|---|
json | A tag in JSON form |
Return Value
A tag which can be further modified, or nil if JSON is invalid