From 5db2aabf0cf315984584210e3eee3acc71c30abe Mon Sep 17 00:00:00 2001 From: Salma ElTarzi Date: Sun, 18 Mar 2018 12:29:08 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20setThresholdForReshowingSurve?= =?UTF-8?q?yAfterDismiss=20API=20for=20Android?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RNInstabugReactnativeModule.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java index 54c442c..3538bd2 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java @@ -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})