setOnShowCallback static method

Future<void> setOnShowCallback(
  1. OnShowSurveyCallback callback
)

Sets a block of code to be executed just before the SDK's UI is presented. This block is executed on the UI thread. Could be used for performing any UI changes before the survey's UI is shown. callback A callback that gets executed before presenting the survey's UI.

Implementation

static Future<void> setOnShowCallback(
  OnShowSurveyCallback callback,
) async {
  _onShowCallback = callback;
  return _host.bindOnShowSurveyCallback();
}