Newer Version Available
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
| Inherits from | Declared in |
|---|---|
EVGItem : NSObject | EVGItems.h |
A category organizes other items and is contained in a hierarchy.
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 isDepartmentCreates an EVGCategory with the required id only.
1+ (nonnull instancetype)categoryWithId:(nonnull NSString *)evgIdParameters
| Parameter | Description |
|---|---|
evgId | See [EVGItem evgId]. This is the only required field. |
Return Value
A category which can be further modified.
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 *)evgDescriptionParameters
| Parameter | Description |
|---|---|
evgId | See [EVGItem evgId]. This is the only required field. |
isDepartment | See isDepartment |
name | See [EVGItem name] |
evgDescription | See [EVGItem evgDescription] |
Return Value
A category which can be further modified.
Creates an EVGCategory from the provided JSON.
1+ (nullable instancetype)categoryFromJSONDictionary:(nonnull NSDictionary<NSString*,id> *)jsonParameters
| Parameter | Description |
|---|---|
json | A category in JSON form |
Return Value
A category which can be further modified, or nil if JSON is invalid
Newer Version Available