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);