HomeDocumentationAPI Reference
Getting StartedAPI ReferenceDashboardHelp Center
API Reference

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]
LCQBugReporting.enabledAttachmentTypes = LCQAttachmentTypeScreenShot | LCQAttachmentTypeExtraScreenshot;
// 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);
Attachment Types Enums:

//Inital Screenshot
.screenShot
//Extra Screenshot
.extraScreenShot
//Gallery Image
.galleryImage
//Screen Recording
.screenRecording
//Inital Screenshot
LCQAttachmentTypeScreenshot;
//Extra Screenshot
LCQAttachmentTypeExtraScreenshot;
//Gallery Image
LCQAttachmentTypeGalleryImage;
//Screen Recording
LCQAttachmentTypeScreenRecording;

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

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