Skip to content

Commit 5db2aab

Browse files
committed
✨ Add setThresholdForReshowingSurveyAfterDismiss API for Android
1 parent d03db39 commit 5db2aab

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,22 @@ public void setSuccessDialogEnabled(boolean enabled) {
13111311
}
13121312
}
13131313

1314+
/**
1315+
* Set after how many sessions should the dismissed survey would show again.
1316+
*
1317+
* @param sessionsCount number of sessions that the dismissed survey will be shown after.
1318+
* @param daysCount number of days that the dismissed survey will show after
1319+
*
1320+
*/
1321+
@ReactMethod
1322+
public void setThresholdForReshowingSurveyAfterDismiss(int sessionsCount, int daysCount) {
1323+
try {
1324+
Instabug.setThresholdForReshowingSurveyAfterDismiss(sessionsCount, daysCount);
1325+
} catch (Exception e) {
1326+
e.printStackTrace();
1327+
}
1328+
}
1329+
13141330
/**
13151331
* Set whether new in app notification received will play a small sound notification
13161332
* or not (Default is {@code false})

0 commit comments

Comments
 (0)