FeedbackAttachment

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)
)

Constructors

Link copied to clipboard
constructor(kind: FeedbackAttachment.Kind, key: String, url: String, filename: String? = null, mimeType: String? = null, size: Long? = null)

Types

Link copied to clipboard

Storage backend category for an attachment.

Properties

Link copied to clipboard

Original file name provided during upload (e.g., "screenshot.png"), or null.

Link copied to clipboard
val key: String

Unique storage key assigned by the server.

Link copied to clipboard

Storage backend where the file is hosted (see FeedbackAttachment.Kind).

Link copied to clipboard

Standard MIME type provided during upload (e.g., "image/png"), or null.

Link copied to clipboard
val size: Long?

File size in bytes as reported by the storage backend, or null.

Link copied to clipboard
val url: String

Publicly accessible CDN URL for rendering or downloading the attachment.