SMFeedbackDelegate Protocol Reference
Conforms to | NSObject |
Declared in | SMFeedbackViewController.h |
Overview
The FeedbackDelegate protocol defines the methods a delegate of a SMFeedbackViewController object should implement. The delegate responds to the event of a respondent ending a survey-taking session. All of the methods defined in this protocol are optional.
Instance Methods
respondentDidEndSurvey:error:
Sent to the delegate when a respondent ends a survey-taking session.
- (void)respondentDidEndSurvey:(SMRespondent *)respondent error:(NSError *)error
Parameters
- respondent
The respondent object returned when a survey is ended.
- error
The error object returned (see error codes below) – will be nil if survey was completed successfully.
Server Error Codes
Error Code Description ERROR_CODE_TOKEN 1 Could not retrieve your respondent. Be sure you’re using an SDK Collector. ERROR_CODE_BAD_CONNECTION 2 There was an error connecting to the server. ERROR_CODE_RESPONSE_PARSE_FAILED 3 There was an error parsing the response from the server. ERROR_CODE_COLLECTOR_CLOSED 4 The collector for this survey has been closed. ERROR_CODE_RETRIEVING_RESPONSE 5 There was a problem retrieving the user’s response to this survey. ERROR_CODE_SURVEY_DELETED 6 This survey has been deleted. ERROR_CODE_RESPONSE_LIMIT_HIT 7 Response limit exceeded for your plan. Upgrade to access more responses through the SDK. ERROR_CODE_RESPONDENT_EXITED_SURVEY 8 The user canceled out of the survey. ERROR_CODE_NONEXISTENT_LINK 9 Custom link no longer exists. ERROR_CODE_INTERNAL_SERVER_ERROR 10 Internal server error Client Error Codes
Error Code Description ERROR_CODE_USER_CANCELED 1 The user canceled out of the survey.
Declared In
SMFeedbackViewController.h