autofilled

fun autofilled(platform: FeedbackPlatform = FeedbackPlatform.current, versionName: String = "", versionCode: String = ""): FeedbackDraft(source)

Convenience factory that pre-populates platform, version name, and version code from the host application package so end users never have to enter them manually.

Return

A newly initialized FeedbackDraft ready for user input.

Example:

val draft = FeedbackDraft.autofilled(
versionName = "1.0.0",
versionCode = "1"
)

Parameters

platform

Target platform; defaults to FeedbackPlatform.current.

versionName

Host app version name (e.g., BuildConfig.VERSION_NAME).

versionCode

Host app version code (e.g., BuildConfig.VERSION_CODE.toString()).