Add setThresholdForReshowingSurveyAfterDismiss API for Android

This commit is contained in:
Salma ElTarzi 2018-03-18 12:29:08 +02:00
parent d03db394c0
commit 5db2aabf0c

View File

@ -1311,6 +1311,22 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
}
}
/**
* Set after how many sessions should the dismissed survey would show again.
*
* @param sessionsCount number of sessions that the dismissed survey will be shown after.
* @param daysCount number of days that the dismissed survey will show after
*
*/
@ReactMethod
public void setThresholdForReshowingSurveyAfterDismiss(int sessionsCount, int daysCount) {
try {
Instabug.setThresholdForReshowingSurveyAfterDismiss(sessionsCount, daysCount);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Set whether new in app notification received will play a small sound notification
* or not (Default is {@code false})