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);
BugReporting.setEnabledAttachmentTypes(screenshot,
extraScreenshot,
galleryImage,
screenRecording
);
// All properties are boolean values
//iOS
LCQBugReporting.EnabledAttachmentTypes = LCQAttachmentType.Screenshot | LCQAttachmentType.ExtraScreenshot;
//Android
//Boolean parameters: initialScreenshot, extraScreenshot, galleryImage, ScreenRecording
new Luciq.Builder(this, "ANDROID_APP_TOKEN")
.SetInvocationEvent(LuciqInvocationEvent.Shake)
.SetAttachmentTypesEnabled(true, true, true, false)
.Build();
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;
//iOS Only
LCQAttachmentType.ScreenRecording
LCQAttachmentType.Screenshot
LCQAttachmentType.ExtraScreenshot
LCQAttachmentType.GalleryImage
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)