EVGCategory Class Reference

Inherits fromDeclared in
EVGItem : NSObjectEVGItems.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

ParameterDescription
evgIdSee [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

ParameterDescription
evgIdSee [EVGItem evgId]. This is the only required field.
isDepartmentSee isDepartment
nameSee [EVGItem name]
evgDescriptionSee [EVGItem evgDescription]

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

ParameterDescription
jsonA category in JSON form

Return Value

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