For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add Extra Attachment

API reference for adding custom attachments to Luciq reports. Attach files, logs, and custom data to bug reports and crashes programmatically.

It's possible to manually add an extra attachment to the report by passing a file URL to this method.

let url = URL(fileURLWithPath: "filePath")
Luciq.addFileAttachmentWithURL(filePath, fileName)
//OR
Luciq.addFileAttachment(with: data, andName: "attachment_1.log")
//Name field is optional
NSURL *url = [NSURL fileURLWithPath:@"filePath"];
[Luciq addFileAttachmentWithURL:url];
//OR
NSData *data = [[NSData alloc] init];
[Luciq addFileAttachmentWithData:data andName:@"attachment_1.log"];
//Name field is optional
Luciq.addFileAttachment(Uri.fromFile(file), "file_name.txt");
Luciq.addFileAttachment(Uri.fromFile(file), "file_name.txt")
//iOS
Luciq.addFileAttachment(filePath)

//Android
Luciq.addFileAttachment(filePath, fileName)
Luciq.addFileAttachment(filePath, fileName)

Last updated