SCKnowledgeInterfaceDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SCKnowledgeInterfaceDelegate.h |
– knowledgeInterface:imageForArticle:compatibleWithTraitCollection:
Asks the delegate for an article image. Use this method to customize the image for an article header and cell.
- (nullable UIImage *)knowledgeInterface:(SCKnowledgeInterface *)interface imageForArticle:(NSString *)articleId compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection
Parameters
interface |
The Knowledge interface instance. |
---|---|
articleId |
The unique article number. |
traitCollection |
Traits that describe the desired image to retrieve. |
Return Value
An image to use for the given article, or nil
if no image should be used.
Declared In
SCKnowledgeInterfaceDelegate.h
– knowledgeInterface:imageForDataCategory:compatibleWithTraitCollection:
Asks the delegate for a data category image. Use this method to customize the image for a data category header and cell.
- (nullable UIImage *)knowledgeInterface:(SCKnowledgeInterface *)interface imageForDataCategory:(NSString *)categoryName compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection
Parameters
interface |
The Knowledge interface instance. |
---|---|
categoryName |
The unique developerName of that category. |
traitCollection |
Traits that describe the desired image to retrieve. |
Return Value
An image to use for the given category, or nil
if no image should be used.
Declared In
SCKnowledgeInterfaceDelegate.h