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
caseList
Case 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
error
Error 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 displaySCSCaseDetailViewController
with thecaseId
parameter. 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
caseList
Instance of the
CaseListViewController
class currently presented.caseId
ID of the selected case.