@@ -381,8 +381,15 @@ module.exports = {
381381 * voiceNote attachments.
382382 * @param {boolean } screenRecording A boolean to enable or disable screen recording attachments.
383383 */
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+ ) ;
386393 } ,
387394
388395 /**
@@ -433,7 +440,8 @@ module.exports = {
433440 /**
434441 * Sets the default value of the user's email and hides the email field from the reporting UI
435442 * 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.
437445 * @param {string } email Email address to be set as the user's email.
438446 * @param {string } name Name of the user to be set.
439447 */
@@ -446,18 +454,19 @@ module.exports = {
446454 } ,
447455
448456 /**
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
450459 * It also reset the chats on device and removes user attributes, user data and completed surveys.
451460 */
452461 logOut : function ( ) {
453462 Instabug . logOut ( ) ;
454463 } ,
455464
456465 /**
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.
461470 * @param {Array } titles titles to be shown in the list.
462471 */
463472 setReportCategories : function ( ...titles ) {
@@ -633,8 +642,8 @@ module.exports = {
633642
634643 /**
635644 * @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.
638647 */
639648 getAllUserAttributes : function ( userAttributesCallback ) {
640649 Instabug . getAllUserAttributes ( userAttributesCallback ) ;
@@ -649,7 +658,8 @@ module.exports = {
649658
650659 /**
651660 * @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.
653663 */
654664 setViewHierarchyEnabled : function ( viewHierarchyEnabled ) {
655665 if ( Platform . OS === 'ios' ) {
@@ -660,7 +670,8 @@ module.exports = {
660670 /**
661671 * @summary Sets whether surveys are enabled or not.
662672 * 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.
664675 * To manually display any available surveys, call `Instabug.showSurveyIfAvailable()`.
665676 * Defaults to `true`.
666677 * @param {boolean } surveysEnabled A boolean to set whether Instabug Surveys is enabled or disabled.
@@ -670,8 +681,10 @@ module.exports = {
670681 } ,
671682
672683 /**
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.
675688 */
676689 showSurveysIfAvailable : function ( ) {
677690 Instabug . showSurveysIfAvailable ( )
@@ -681,8 +694,8 @@ module.exports = {
681694 * @summary Sets a block of code to be executed just before the survey's UI is presented.
682695 * This block is executed on the UI thread. Could be used for performing any UI changes before
683696 * 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 .
686699 */
687700 setWillShowSurveyHandler : function ( willShowSurveyHandler ) {
688701 if ( Platform . OS === 'ios' ) {
@@ -701,9 +714,10 @@ module.exports = {
701714
702715 /**
703716 * @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.
707721 */
708722 setDidDismissSurveyHandler : function ( didDismissSurveyHandler ) {
709723 if ( Platform . OS === 'ios' ) {
@@ -770,8 +784,8 @@ module.exports = {
770784 /**
771785 * @summary Checks whether app is development/Beta testing OR live
772786 * 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.
775789 * @param {function } runningLiveCallBack callback with argument as return value 'isLive'
776790 */
777791 isRunningLive : function ( runningLiveCallBack ) {
@@ -802,11 +816,12 @@ module.exports = {
802816 } ,
803817
804818 /**
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.
807821 * (Default for `position` is `bottomRight`)
808822 *
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.
810825 */
811826 setVideoRecordingFloatingButtonPosition : function ( position ) {
812827 Instabug . setVideoRecordingFloatingButtonPosition ( position ) ;
0 commit comments