SCSKnowledgeHomeViewControllerDelegate
@protocol SCSKnowledgeHomeViewControllerDelegate <NSObject>
Delegate protocol for events related to the SCSKnowledgeHomeViewController.
-
Informs the delegate when the set of expanded indexes will change.
Declaration
Objective-C
- (void)knowledgeHome:(nonnull SCSKnowledgeHomeViewController *)controller willExpandIndexes:(nonnull NSIndexSet *)newIndexes;
Swift
optional func knowledgeHome(_ controller: SCSKnowledgeHomeViewController, willExpand newIndexes: IndexSet)
Parameters
controller
The SCSKnowledgeHomeViewController instance.
newIndexes
The new expanded indexes being set.
-
Informs the delegate when the set of expanded indexes has changed.
Declaration
Objective-C
- (void)knowledgeHome:(nonnull SCSKnowledgeHomeViewController *)controller didExpandIndexes:(nonnull NSIndexSet *)newIndexes;
Swift
optional func knowledgeHome(_ controller: SCSKnowledgeHomeViewController, didExpand newIndexes: IndexSet)
Parameters
controller
The SCSKnowledgeHomeViewController instance.
newIndexes
The new expanded indexes being set.
-
Informs the delegate when an article is selected.
Declaration
Objective-C
- (BOOL)knowledgeHome:(nonnull SCSKnowledgeHomeViewController *)controller articleSelected:(nonnull SCSArticle *)article;
Swift
optional func knowledgeHome(_ controller: SCSKnowledgeHomeViewController, articleSelected article: SCSArticle) -> Bool
Parameters
controller
The SCSKnowledgeHomeViewController instance.
article
The article that was selected.
Return Value
YES
if the built-in default action should be performed, otherwiseNO
if no action should be performed. -
Informs the delegate when the “Show More Articles” row is tapped for a particular category.
Declaration
Objective-C
- (BOOL)knowledgeHome:(nonnull SCSKnowledgeHomeViewController *)controller showMoreArticlesSelectedForCategory:(nonnull SCSCategory *)category;
Swift
optional func knowledgeHome(_ controller: SCSKnowledgeHomeViewController, showMoreArticlesSelectedFor category: SCSCategory) -> Bool
Parameters
controller
The SCSKnowledgeHomeViewController instance.
category
The category in which the Show More button was selected.
Return Value
YES
if the built-in default action should be performed, otherwiseNO
if no action should be performed.