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 after the survey's UI is dismissed.
function A callback that gets executed after the survey's UI is dismissed.
iOS Only
@summary Sets url for the published iOS app on AppStore, You can redirect
NPS Surveys or AppRating Surveys to AppStore to let users rate your app on AppStore itself.
appStoreURL A String url for the published iOS app on AppStore
@summary Sets whether surveys are enabled or not.
If you disable surveys on the SDK but still have active surveys on your Instabug dashboard,
those surveys are still going to be sent to the device, but are not going to be
shown automatically.
To manually display any available surveys, call Instabug.showSurveyIfAvailable().
Defaults to true.
isEnabled A boolean to set whether Instabug Surveys is enabled or disabled.
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 after the survey's UI is dismissed.
function A callback that gets executed after the survey's UI is dismissed.
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.
function A callback that gets executed before presenting the survey's UI.
Setting an option for all the surveys to show a welcome screen before
shouldShowWelcomeScreen A boolean for setting whether the welcome screen should show.
Shows survey with a specific token.
Does nothing if there are no available surveys with that specific token.
Answered and cancelled surveys won't show up again.
surveyToken - A String with a survey token.
Shows one of the surveys that were not shown before, that also have conditions
that match the current device/user.
Does nothing if there are no available surveys or if a survey has already been shown
in the current session.