@@ -392,17 +392,35 @@ module.exports = {
392
392
} ,
393
393
394
394
/**
395
+ * @deprecated since version 2.3.0. Use {@link setEnabledAttachmentTypes} instead.
395
396
* Sets whether attachments in bug reporting and in-app messaging are enabled or not.
396
397
* @param {boolean } screenshot A boolean to enable or disable screenshot attachments.
397
398
* @param {boolean } extraScreenshot A boolean to enable or disable extra
398
399
* screenshot attachments.
399
400
* @param {boolean } galleryImage A boolean to enable or disable gallery image
400
401
* attachments. In iOS 10+,NSPhotoLibraryUsageDescription should be set in
401
402
* info.plist to enable gallery image attachments.
403
+ * @param {boolean } voiceNote A boolean to enable or disable voice note attachments.
404
+ * In iOS 10+, NSMicrophoneUsageDescription should be set in info.plist to enable
405
+ * voiceNote attachments.
402
406
* @param {boolean } screenRecording A boolean to enable or disable screen recording attachments.
403
407
*/
404
- setAttachmentTypesEnabled : function ( screenshot , extraScreenshot , galleryImage , screenRecording ) {
405
- Instabug . setAttachmentTypesEnabled ( screenshot , extraScreenshot , galleryImage , screenRecording ) ;
408
+ setAttachmentTypesEnabled : function ( screenshot , extraScreenshot , galleryImage , voiceNote , screenRecording ) {
409
+ Instabug . setEnabledAttachmentTypes ( screenshot , extraScreenshot , galleryImage , screenRecording ) ;
410
+ } ,
411
+
412
+ /**
413
+ * Sets whether attachments in bug reporting and in-app messaging are enabled or not.
414
+ * @param {boolean } screenshot A boolean to enable or disable screenshot attachments.
415
+ * @param {boolean } extraScreenshot A boolean to enable or disable extra
416
+ * screenshot attachments.
417
+ * @param {boolean } galleryImage A boolean to enable or disable gallery image
418
+ * attachments. In iOS 10+,NSPhotoLibraryUsageDescription should be set in
419
+ * info.plist to enable gallery image attachments.
420
+ * @param {boolean } screenRecording A boolean to enable or disable screen recording attachments.
421
+ */
422
+ setEnabledAttachmentTypes : function ( screenshot , extraScreenshot , galleryImage , screenRecording ) {
423
+ Instabug . setEnabledAttachmentTypes ( screenshot , extraScreenshot , galleryImage , screenRecording ) ;
406
424
} ,
407
425
408
426
/**
0 commit comments