HomeDocumentationAPI Reference
Getting StartedAPI ReferenceDashboardHelp Center
API Reference

Set Will-Show-Survey Handler

This handler can be used to run a block of code right before a survey is shown to the user.

Surveys.willShowSurveyHandler = {
    // Change some state
}
LCQSurveys.willShowSurveyHandler = ^{
    // Change some state
};
Surveys.setOnShowCallback(new Runnable() {
    @Override
    public void run() {
        //Pause game
    }
});
Surveys.setOnShowCallback(OnShowCallback {
                //Pause game
            }            
        )
Surveys.setOnShowHandler(() => {
  //Perform any changes before the survey appears.
});
Surveys.setOnShowCallback(Function function);