Feedback Attachment
data class FeedbackAttachment(val kind: FeedbackAttachment.Kind, val key: String, val url: String, val filename: String? = null, val mimeType: String? = null, val size: Long? = null)(source)
An uploaded attachment descriptor, as returned by FeedbackClient.uploadAttachment.
Attach one or more instances to FeedbackDraft.attachments before calling FeedbackClient.submit.
Example:
val attachment = client.uploadAttachment(
data = imageBytes,
filename = "bug_screenshot.png",
mimeType = "image/png"
)
val draft = FeedbackDraft(
title = "UI Glitch on Pixel 8",
description = "Navigation bar overlaps bottom buttons.",
platform = FeedbackPlatform.ANDROID,
attachments = listOf(attachment)
)Content copied to clipboard