FeedbackDraft

data class FeedbackDraft(val title: String = "", val description: String = "", val reporterName: String = "", val reporterEmail: String = "", val platform: FeedbackPlatform, val appVersion: String = "", val buildNumber: String = "", val metadata: Map<String, String> = emptyMap(), val attachments: List<FeedbackAttachment> = emptyList())(source)

Editable feedback submission content passed to FeedbackClient.submit.

Optional fields left empty or blank are automatically omitted from the network payload. Use FeedbackDraft.autofilled to automatically populate version and platform fields from the host application.

Example:

val draft = FeedbackDraft.autofilled(
versionName = "2.1.0",
versionCode = "104"
).copy(
title = "Dark mode contrast issue",
description = "Secondary text in settings is hard to read in dark mode.",
reporterEmail = "user@example.com",
metadata = mapOf("device_model" to "Pixel 8 Pro", "os_version" to "Android 14")
)
val result = client.submit(draft, userToken = "user_anon_token_123")

Constructors

Link copied to clipboard
constructor(title: String = "", description: String = "", reporterName: String = "", reporterEmail: String = "", platform: FeedbackPlatform, appVersion: String = "", buildNumber: String = "", metadata: Map<String, String> = emptyMap(), attachments: List<FeedbackAttachment> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Semantic version name of the host application (e.g., "1.2.0").

Link copied to clipboard

Pre-uploaded files and screenshots returned by FeedbackClient.uploadAttachment.

Link copied to clipboard

Internal build code of the host application (e.g., "42").

Link copied to clipboard

Detailed explanation of what happened or what is requested (minimum 5 characters).

Link copied to clipboard

Arbitrary key-value diagnostic metadata. The SDK automatically appends sdk, platform, and submittedAt timestamps upon submission.

Link copied to clipboard

Operating system platform the feedback was captured on.

Link copied to clipboard

Optional email address of the reporter for follow-up communications.

Link copied to clipboard

Optional display name of the user providing feedback.

Link copied to clipboard

Brief summary of the feedback (minimum 3 characters required by composer UI).