For the complete documentation index, see llms.txt. This page is also available as Markdown.

Survey Event Handlers

Run code just before a Luciq survey appears in your iOS app and again once it is dismissed, handy for pausing and resuming gameplay or video.

You can execute code in a handler that gets called before a survey is shown and after it has been dismissed. You can use this for things like pausing and resuming a game, for example.

Before showing the survey

Surveys.willShowSurveyHandler = {
    // Change some state
}
LCQSurveys.willShowSurveyHandler = ^{
    // Change some state
};

After the survey has been dismissed

Surveys.didFinishSurveyHandler = { (state, info, identifier) -> Void in
    // Code here
}
LCQSurveys.didFinishSurveyHandler = ^(LCQSurveyFinishedState state, NSDictionary * _Nonnull info, NSString * _Nonnull identifier) {
    // Code here
};

Last updated