EVGCategory Class Reference
| Inherits from | Declared in |
|---|
EVGItem : NSObject | EVGItems.h |
Overview
A category organizes other items and is contained in a hierarchy.
isDepartment
If YES, this category is a department. Dynamic promoted content can be configured to only choose categories that are also departments.
1@property (nonatomic) BOOL isDepartment
categoryWithId:
Creates an EVGCategory with the required id only.
1+ (nonnull instancetype)categoryWithId:(nonnull NSString *)evgId
Parameters
| Parameter | Description |
|---|
evgId | See [EVGItem evgId]. This is the only required field. |
Return Value
A category which can be further modified.
categoryWithId:isDepartment:name:evgDescription:
Creates an EVGCategory with the required id and most common optionals.
1+ (nonnull instancetype)categoryWithId:(nonnull NSString *)evgId isDepartment:(BOOL)isDepartment name:(nullable NSString *)name evgDescription:(nullable NSString *)evgDescription
Parameters
Return Value
A category which can be further modified.
categoryFromJSONDictionary:
Creates an EVGCategory from the provided JSON.
1+ (nullable instancetype)categoryFromJSONDictionary:(nonnull NSDictionary<NSString*,id> *)json
Parameters
| Parameter | Description |
|---|
json | A category in JSON form |
Return Value
A category which can be further modified, or nil if JSON is invalid