Set Attachment Types

You can set the types of attachments your users can add to reports using this API.

The available attachment types are:

  • Initial Screenshot
  • Extra Screenshot
  • Gallery Image
  • Screen Recording

Method:

BugReporting.enabledAttachmentTypes = [.screenShot, .extraScreenShot]
IBGBugReporting.enabledAttachmentTypes = IBGAttachmentTypeScreenShot | IBGAttachmentTypeExtraScreenshot;
// Arguments: initialScreenshot, extraScreenshot, galleryImage & ScreenRecording BugReporting.setAttachmentTypesEnabled(true, true, true, true);
// Arguments:initialScreenshot, extraScreenshot, galleryImage & ScreenRecording BugReporting.setAttachmentTypesEnabled(true, true, true, true);
BugReporting.setEnabledAttachmentTypes(screenshot, extraScreenshot, galleryImage, screenRecording); //All properties are boolean values
//Boolean Arguments BugReporting.setEnabledAttachmentTypes(screenshot, extraScreenshot, galleryImage, screenRecording);
BugReporting.setEnabledAttachmentTypes(screenshot, extraScreenshot, galleryImage, screenRecording ); // All properties are boolean values
//iOS IBGBugReporting.EnabledAttachmentTypes = IBGAttachmentType.Screenshot | IBGAttachmentType.ExtraScreenshot; //Android //Boolean parameters: initialScreenshot, extraScreenshot, galleryImage, ScreenRecording new Instabug.Builder(this, "ANDROID_APP_TOKEN") .SetInvocationEvent(InstabugInvocationEvent.Shake) .SetAttachmentTypesEnabled(true, true, true, false) .Build();
Attachment Types Enums:

//Inital Screenshot .screenShot //Extra Screenshot .extraScreenShot //Gallery Image .galleryImage //Screen Recording .screenRecording
//Inital Screenshot IBGAttachmentTypeScreenshot; //Extra Screenshot IBGAttachmentTypeExtraScreenshot; //Gallery Image IBGAttachmentTypeGalleryImage; //Screen Recording IBGAttachmentTypeScreenRecording;
//iOS Only IBGAttachmentType.ScreenRecording IBGAttachmentType.Screenshot IBGAttachmentType.ExtraScreenshot IBGAttachmentType.GalleryImage

Screen Recording Encoder:
For the Screen Recording, you can define a custom configuration using the API below:

Instabug.setVideoEncoderConfig(VideoEncoderConfig config);
Instabug.setVideoEncoderConfig(config: VideoEncoderConfig)