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
controllerThe SCSKnowledgeHomeViewController instance.
newIndexesThe 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
controllerThe SCSKnowledgeHomeViewController instance.
newIndexesThe 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) -> BoolParameters
controllerThe SCSKnowledgeHomeViewController instance.
articleThe article that was selected.
Return Value
YESif the built-in default action should be performed, otherwiseNOif 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) -> BoolParameters
controllerThe SCSKnowledgeHomeViewController instance.
categoryThe category in which the Show More button was selected.
Return Value
YESif the built-in default action should be performed, otherwiseNOif no action should be performed.
Install in Dash
SCSKnowledgeHomeViewControllerDelegate Protocol Reference