SCSKnowledgeHomeViewController
@interface SCSKnowledgeHomeViewController : UIViewController
View controller that implements the built-in “Support Home” experience. This class is not meant to be used when using SCServiceInterface.
-
The parent category this view controller is showing.
Declaration
Objective-C
@property (nonatomic, strong, readonly) SCSCategory *_Nonnull parentCategory;
Swift
var parentCategory: SCSCategory { get }
-
The currently expanded section index set. Changes from the user will cause KVO events on this property to fire.
The expanded index values represent the childCategory objects within the
parentCategory
object.Declaration
Objective-C
@property (nonatomic, copy, null_resettable) NSIndexSet *expandedIndexes;
Swift
var expandedIndexes: IndexSet! { get set }
-
Delegate property to use to interact with the knowledge home view controller.
Declaration
Objective-C
@property (nonatomic, weak, nullable) NSObject<SCSKnowledgeHomeViewControllerDelegate> *delegate;
Swift
weak var delegate: SCSKnowledgeHomeViewControllerDelegate? { get set }
-
Indicates whether or not searching is allowed within this controller.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isSearchEnabled) BOOL searchEnabled;
Swift
var isSearchEnabled: Bool { get set }
-
Template to use when composing a search to show per-article. This template object is used for each category within the knowledge home view controller as the basis to find the top articles.
Note
Thecategories
property is overwritten with the appropriate category being displayed. Furthermore, it is advisable to avoid setting thearticleId
orsearchTerm
properties, as these may produce unexpected results.Declaration
Objective-C
@property (nonatomic, copy, null_resettable) SCSArticleQuery *articleQueryTemplate;
Swift
@NSCopying var articleQueryTemplate: SCSArticleQuery! { get set }
-
Position alignment of the data category header view chevrons. The default position is
SCSChevronAlignmentTrailing
.Declaration
Objective-C
@property (nonatomic) SCSChevronAlignment chevronAlignment;
Swift
var chevronAlignment: SCSChevronAlignment { get set }
-
Designated initializer
Declaration
Objective-C
- (nonnull instancetype)initWithParentCategory: (nonnull SCSCategory *)parentCategory;
Swift
init(parentCategory: SCSCategory)
Parameters
parentCategory
Parent category to use when displaying the interface.
Return Value
View controller