public static void setOnSurveyFinishedListener(final OnSurveyFinishedListener listener) {
		dispatchConversationTask(new ConversationDispatchTask() {
			@Override
			protected boolean execute(Conversation conversation) {
				ApptentiveInternal.getInstance().setOnSurveyFinishedListener(listener);
				return true;
			}
		}, "set survey finish listener");
	}
public static void setOnSurveyFinishedListener ( final OnSurveyFinishedListener listener ) { dispatchConversationTask ( new ConversationDispatchTask ( ) { @ Override protected boolean execute ( Conversation conversation ) { ApptentiveInternal . getInstance ( ) . setOnSurveyFinishedListener ( listener ) ; return true ; } } , "set survey finish listener" ) ; }
Pass in a listener. The listener will be called whenever a survey is finished.
Do not pass in an anonymous class, such as setOnSurveyFinishedListener(new OnSurveyFinishedListener() {...}).
Instead, create your listener as an instance variable and pass that in. This allows us to keep
a weak reference to avoid memory leaks.

@param listener The {@link com.apptentive.android.sdk.module.survey.OnSurveyFinishedListener} listener
to call when the survey is finished.