This handler can be used to run a block code right after a survey is dismissed.
Surveys.didFinishSurveyHandler = { (state, info, identifier) -> Void in
// Code here
}
IBGSurveys.didFinishSurveyHandler = ^(IBGSurveyFinishedState state, NSDictionary * _Nonnull info, NSString * _Nonnull identifier) {
// Code here
};
Surveys.setOnFinishCallback(new OnFinishCallback() {
@Override
public void onFinish(String surveyId, String state, JSONObject response) {
}
});
Surveys.setOnFinishCallback(OnFinishCallback {
}
)
Surveys.setOnDismissHandler(() => {
//Perform any changes before the survey disappears.
});
Surveys.setOnDismissCallback(Function function);
Surveys.setOnDismissHandler(
function () {
console.log('On dismiss survey');
},
function (error) {
console.log('On dismiss handler could not be set ' + error);
}
);
//iOS
IBGSurveys.DidDismissSurveyHandler = () =>
{
System.Console.WriteLine("Did Dismiss Survey");
};
//Android
Surveys.SetOnDismissCallback(new IOnDismissSurveyCallback());
public class IOnDismissSurveyCallback : Java.Lang.Object, IOnDismissCallback
{
public void OnDismiss()
{
Android.Util.Log.Warn("PreShowingSurvey", "Pre Showing survey");
}
}