SnapscreenSnapResultsViewControllerDelegate
@protocol SnapscreenSnapResultsViewControllerDelegate
Provides callback from the SnapscreenSnapResultsViewController during the result selection process.
-
Provides the ability to set a custom color for the result table view
Declaration
Objective-C
- (id)snapscreenSnapResultsViewControllerBackgroundColorForResultTableView: (SnapscreenSnapResultsViewController *_Nonnull)snapResultsViewController;
Swift
optional func snapscreenSnapResultsViewControllerBackgroundColor(forResultTableView snapResultsViewController: SnapscreenSnapResultsViewController) -> Any!
-
Provides the ability to register custom cell and header classes for UI customization. Do not implement if no customization should be used.
Declaration
Objective-C
- (void)snapscreenSnapResultsViewController: (SnapscreenSnapResultsViewController *_Nonnull) snapResultsViewController registerCustomContentClassesForTableView:(id)tableView;
Swift
optional func snapscreenSnapResultsViewController(_ snapResultsViewController: SnapscreenSnapResultsViewController, registerCustomContentClassesForTableView tableView: Any!)
-
Provides the ability to return a custom UITableViewCell to use for display the given searchResultEntry. The entry can be of one of the following types:
SnapscreenTvSearchResultEntry
,SnapscreenSportEventSearchResultEntry
orSnapscreenAdvertisementSearchResultEntry
. Return nil or do not implement if the standard cells should be used.Declaration
Objective-C
- (id) snapscreenSnapResultsViewController: (SnapscreenSnapResultsViewController *_Nonnull)snapResultsViewController tableView:(id)tableView cellForRowAtIndexPath:(id)indexPath withSearchResultEntry: (SnapscreenSearchResultEntry *_Nonnull)searchResultEntry;
Swift
optional func snapscreenSnapResultsViewController(_ snapResultsViewController: SnapscreenSnapResultsViewController, tableView: Any!, cellForRowAtIndexPath indexPath: Any!, with searchResultEntry: SnapscreenSearchResultEntry) -> Any!
-
When using a custom UITableViewCell for displaying a given searchResultEntry, should return the height for it or UITableViewAutomaticDimension. Return 0 or do not implement if the standard cells should be used.
Declaration
Objective-C
- (id) snapscreenSnapResultsViewController: (SnapscreenSnapResultsViewController *_Nonnull)snapResultsViewController tableView:(id)tableView heightForRowAtIndexPath:(id)indexPath withSearchResultEntry: (SnapscreenSearchResultEntry *_Nonnull)searchResultEntry;
Swift
optional func snapscreenSnapResultsViewController(_ snapResultsViewController: SnapscreenSnapResultsViewController, tableView: Any!, heightForRowAtIndexPath indexPath: Any!, with searchResultEntry: SnapscreenSearchResultEntry) -> Any!
-
When using a custom section header for the list of search results, should return the height for the custom section header. Return 0 or do not implement if the default header should be used.
Declaration
Objective-C
- (id)snapscreenSnapResultsViewController: (SnapscreenSnapResultsViewController *_Nonnull) snapResultsViewController tableView:(id)tableView heightForHeaderInSection:(id)section;
Swift
optional func snapscreenSnapResultsViewController(_ snapResultsViewController: SnapscreenSnapResultsViewController, tableView: Any!, heightForHeaderInSection section: Any!) -> Any!
-
Provides the ability to return a custom Section Header to use for the list of search results. Return nil or do not implement if the default header should be shown.
Declaration
Objective-C
- (id)snapscreenSnapResultsViewController: (SnapscreenSnapResultsViewController *_Nonnull) snapResultsViewController tableView:(id)tableView viewForHeaderInSection:(id)section;
Swift
optional func snapscreenSnapResultsViewController(_ snapResultsViewController: SnapscreenSnapResultsViewController, tableView: Any!, viewForHeaderInSection section: Any!) -> Any!
-
Provides the ability to return a custom placeholder image to use when loading the main image for a search result entry. Is only applied when not providing custom cells.
Declaration
Objective-C
- (id)snapscreenSnapResultsViewController: (SnapscreenSnapResultsViewController *_Nonnull) snapResultsViewController placeholderImageForResultEntry: (SnapscreenSearchResultEntry *_Nonnull)searchResultEntry;
Swift
optional func snapscreenSnapResultsViewController(_ snapResultsViewController: SnapscreenSnapResultsViewController, placeholderImageFor searchResultEntry: SnapscreenSearchResultEntry) -> Any!