@@ -381,8 +381,15 @@ module.exports = {
381
381
* voiceNote attachments.
382
382
* @param {boolean } screenRecording A boolean to enable or disable screen recording attachments.
383
383
*/
384
- setAttachmentTypesEnabled : function ( screenshot , extraScreenshot , galleryImage , voiceNote , screenRecording ) {
385
- Instabug . setAttachmentTypesEnabled ( screenshot , extraScreenshot , galleryImage , voiceNote , screenRecording ) ;
384
+ setAttachmentTypesEnabled : function ( screenshot , extraScreenshot , galleryImage , voiceNote ,
385
+ screenRecording ) {
386
+ Instabug . setAttachmentTypesEnabled (
387
+ screenshot ,
388
+ extraScreenshot ,
389
+ galleryImage ,
390
+ voiceNote ,
391
+ screenRecording
392
+ ) ;
386
393
} ,
387
394
388
395
/**
@@ -433,7 +440,8 @@ module.exports = {
433
440
/**
434
441
* Sets the default value of the user's email and hides the email field from the reporting UI
435
442
* and set the user's name to be included with all reports.
436
- * It also reset the chats on device to that email and removes user attributes, user data and completed surveys.
443
+ * It also reset the chats on device to that email and removes user attributes,
444
+ * user data and completed surveys.
437
445
* @param {string } email Email address to be set as the user's email.
438
446
* @param {string } name Name of the user to be set.
439
447
*/
@@ -446,18 +454,19 @@ module.exports = {
446
454
} ,
447
455
448
456
/**
449
- * Sets the default value of the user's email to nil and show email field and remove user name from all reports
457
+ * Sets the default value of the user's email to nil and show email field and remove user name
458
+ * from all reports
450
459
* It also reset the chats on device and removes user attributes, user data and completed surveys.
451
460
*/
452
461
logOut : function ( ) {
453
462
Instabug . logOut ( ) ;
454
463
} ,
455
464
456
465
/**
457
- * Sets an array of report categories to be shown for users to select from before reporting a bug or sending
458
- * feedback.
459
- * Use this method to give users a list of choices of categories their bug report or feedback might be related
460
- * to. Selected category will be shown as a tag on your dashboard.
466
+ * Sets an array of report categories to be shown for users to select from before reporting a
467
+ * bug or sending feedback.
468
+ * Use this method to give users a list of choices of categories their bug report or feedback
469
+ * might be related to. Selected category will be shown as a tag on your dashboard.
461
470
* @param {Array } titles titles to be shown in the list.
462
471
*/
463
472
setReportCategories : function ( ...titles ) {
@@ -633,8 +642,8 @@ module.exports = {
633
642
634
643
/**
635
644
* @summary Returns all user attributes.
636
- * @param {function } userAttributesCallback callback with argument A new dictionary containing all the currently set user attributes,
637
- * or an empty dictionary if no user attributes have been set.
645
+ * @param {function } userAttributesCallback callback with argument A new dictionary containing
646
+ * all the currently set user attributes, or an empty dictionary if no user attributes have been set.
638
647
*/
639
648
getAllUserAttributes : function ( userAttributesCallback ) {
640
649
Instabug . getAllUserAttributes ( userAttributesCallback ) ;
@@ -649,7 +658,8 @@ module.exports = {
649
658
650
659
/**
651
660
* @summary Enables/disables inspect view hierarchy when reporting a bug/feedback.
652
- * @param {boolean } viewHierarchyEnabled A boolean to set whether view hierarchy are enabled or disabled.
661
+ * @param {boolean } viewHierarchyEnabled A boolean to set whether view hierarchy are enabled
662
+ * or disabled.
653
663
*/
654
664
setViewHierarchyEnabled : function ( viewHierarchyEnabled ) {
655
665
if ( Platform . OS === 'ios' ) {
@@ -660,7 +670,8 @@ module.exports = {
660
670
/**
661
671
* @summary Sets whether surveys are enabled or not.
662
672
* If you disable surveys on the SDK but still have active surveys on your Instabug dashboard,
663
- * those surveys are still going to be sent to the device, but are not going to be shown automatically.
673
+ * those surveys are still going to be sent to the device, but are not going to be
674
+ * shown automatically.
664
675
* To manually display any available surveys, call `Instabug.showSurveyIfAvailable()`.
665
676
* Defaults to `true`.
666
677
* @param {boolean } surveysEnabled A boolean to set whether Instabug Surveys is enabled or disabled.
@@ -670,8 +681,10 @@ module.exports = {
670
681
} ,
671
682
672
683
/**
673
- * @summary Shows one of the surveys that were not shown before, that also have conditions that match the current device/user.
674
- * Does nothing if there are no available surveys or if a survey has already been shown in the current session.
684
+ * @summary Shows one of the surveys that were not shown before, that also have conditions
685
+ * that match the current device/user.
686
+ * Does nothing if there are no available surveys or if a survey has already been shown
687
+ * in the current session.
675
688
*/
676
689
showSurveysIfAvailable : function ( ) {
677
690
Instabug . showSurveysIfAvailable ( )
@@ -681,8 +694,8 @@ module.exports = {
681
694
* @summary Sets a block of code to be executed just before the survey's UI is presented.
682
695
* This block is executed on the UI thread. Could be used for performing any UI changes before
683
696
* the survey's UI is shown.
684
- * @param {function } willShowSurveyHandler - A block of code that gets executed before presenting the survey's UI.
685
- * report .
697
+ * @param {function } willShowSurveyHandler - A block of code that gets executed before
698
+ * presenting the survey's UI .
686
699
*/
687
700
setWillShowSurveyHandler : function ( willShowSurveyHandler ) {
688
701
if ( Platform . OS === 'ios' ) {
@@ -701,9 +714,10 @@ module.exports = {
701
714
702
715
/**
703
716
* @summary Sets a block of code to be executed right after the survey's UI is dismissed.
704
- * This block is executed on the UI thread. Could be used for performing any UI changes after the survey's UI
705
- * is dismissed.
706
- * @param {function } didDismissSurveyHandler - A block of code that gets executed after the survey's UI is dismissed.
717
+ * This block is executed on the UI thread. Could be used for performing any UI
718
+ * changes after the survey's UI is dismissed.
719
+ * @param {function } didDismissSurveyHandler - A block of code that gets executed after
720
+ * the survey's UI is dismissed.
707
721
*/
708
722
setDidDismissSurveyHandler : function ( didDismissSurveyHandler ) {
709
723
if ( Platform . OS === 'ios' ) {
@@ -770,8 +784,8 @@ module.exports = {
770
784
/**
771
785
* @summary Checks whether app is development/Beta testing OR live
772
786
* Note: This API is iOS only
773
- * It returns in the callback false if in development or beta testing on Test Flight, and true if app is live on the
774
- * app store.
787
+ * It returns in the callback false if in development or beta testing on Test Flight, and
788
+ * true if app is live on the app store.
775
789
* @param {function } runningLiveCallBack callback with argument as return value 'isLive'
776
790
*/
777
791
isRunningLive : function ( runningLiveCallBack ) {
@@ -802,11 +816,12 @@ module.exports = {
802
816
} ,
803
817
804
818
/**
805
- * Sets the default position at which the Instabug screen recording button will be shown. Different orientations are already handled.
806
- *
819
+ * Sets the default position at which the Instabug screen recording button will be shown.
820
+ * Different orientations are already handled.
807
821
* (Default for `position` is `bottomRight`)
808
822
*
809
- * @param position is of type IBGPosition `topLeft` to show on the top left of screen , or `bottomRight` to show on the bottom right of scrren.
823
+ * @param position is of type IBGPosition `topLeft` to show on the top left of screen,
824
+ * or `bottomRight` to show on the bottom right of scrren.
810
825
*/
811
826
setVideoRecordingFloatingButtonPosition : function ( position ) {
812
827
Instabug . setVideoRecordingFloatingButtonPosition ( position ) ;
0 commit comments