Add setAutoShowingSurveysEnabled API for iOS

This commit is contained in:
Salma ElTarzi 2018-03-18 12:57:25 +02:00
parent f681a840eb
commit 05ffea7d13
2 changed files with 14 additions and 0 deletions

View File

@ -913,6 +913,16 @@ module.exports = {
Instabug.setThresholdForReshowingSurveyAfterDismiss(sessionCount, daysCount);
},
/**
* Sets whether auto surveys showing are enabled or not.
* @param autoShowingSurveysEnabled A boolean to indicate whether the
* surveys auto showing are enabled or not.
*
*/
setAutoShowingSurveysEnabled: function(autoShowingSurveysEnabled) {
Instabug.setAutoShowingSurveysEnabled(autoShowingSurveysEnabled);
},
/**
* The event used to invoke the feedback form
* @readonly

View File

@ -365,6 +365,10 @@ RCT_EXPORT_METHOD(setViewHirearchyEnabled:(BOOL)viewHirearchyEnabled) {
[Instabug setViewHierarchyEnabled:viewHirearchyEnabled];
}
RCT_EXPORT_METHOD(setAutoShowingSurveysEnabled:(BOOL)autoShowingSurveysEnabled) {
[Instabug setAutoShowingSurveysEnabled:autoShowingSurveysEnabled];
}
RCT_EXPORT_METHOD(setVideoRecordingFloatingButtonPosition:(IBGPosition)position) {
[Instabug setVideoRecordingFloatingButtonPosition:position];
}