SCSCaseListViewControllerDelegate
@protocol SCSCaseListViewControllerDelegate <NSObject>
Delegate protocol used to receive events about the actions performed by the case list view controller.
-
Tells the delegate that the case list loaded.
Declaration
Objective-C
- (void)caseListDidLoad:(nonnull SCSCaseListViewController *)caseList;Swift
optional func caseListDidLoad(_ caseList: SCSCaseListViewController)Parameters
caseListCase list controller sending the message.
-
Tells the delegate when there’s an error loading the case list.
Declaration
Objective-C
- (void)caseList:(nonnull SCSCaseListViewController *)caseList didReceiveError:(nonnull NSError *)error;Swift
optional func caseList(_ caseList: SCSCaseListViewController, didReceiveError error: Error)Parameters
errorError associated with loading the case list view controller.
-
Tells the delegate when a case is selected from the case list. If you’ve manually displayed a
SCSCaseListViewController, then use this method to displaySCSCaseDetailViewControllerwith thecaseIdparameter. If you didn’t manually display aSCSCaseListViewController, then the Case Detail view appears automatically.Declaration
Objective-C
- (void)caseList:(nonnull SCSCaseListViewController *)caseList selectedCaseWithId:(nonnull NSString *)caseId;Swift
optional func caseList(_ caseList: SCSCaseListViewController, selectedCaseWithId caseId: String)Parameters
caseListInstance of the
CaseListViewControllerclass currently presented.caseIdID of the selected case.
Install in Dash
SCSCaseListViewControllerDelegate Protocol Reference