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"
)Content copied to clipboard
Parameters
platform
Target platform; defaults to FeedbackPlatform.current.
version Name
Host app version name (e.g., BuildConfig.VERSION_NAME).
version Code
Host app version code (e.g., BuildConfig.VERSION_CODE.toString()).