Prompt Options

Prompt options (report types and invocation options) in KMP.

When the user invokes Luciq (e.g. by shake or floating button), they can see a prompt menu to choose “Report a bug”, “Feedback”, “Ask a question”, etc. You control which options appear and default behavior.

Report types

Set which report types appear in the prompt:

Kotlin
BugReportingKmp.setReportTypes(listOf(
    ReportType.Bug,
    ReportType.Feedback,
    ReportType.Question,
    ReportType.Other
))

Invocation options

Set default options for the form (comment required, email hidden/optional, thank-you dialog):

Kotlin
BugReportingKmp.setInvocationOptions(listOf(
    InvocationOptions.CommentFieldRequired,
    InvocationOptions.EmailFieldOptional,
    InvocationOptions.DisablePostSendingDialog
))

To open a specific report type and options without showing the prompt, use BugReportingKmp.show(reportType, invocationOptions). See Showing Luciqarrow-up-right.

Last updated