Feedback Draft
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")Content copied to clipboard
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
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.