Showing Luciq
Set invocation events such as shake or floating button in your KMP app, or show Luciq manually and open a bug, feedback, or question form directly.
By default, Luciq is shown when the device is shaken (if you passed InvocationEvents.Shake in LuciqConfiguration). You can use other invocation events, show the SDK manually, or open a specific report type (bug, feedback, question) directly.
Invocation events
Configure how the SDK is invoked using the InvocationEvents enum. You can set one or more events in LuciqConfiguration or at runtime with BugReportingKmp.setInvocationEvents.
Available events:
InvocationEvents.Shake
Shake the device to invoke bug reporting
InvocationEvents.Screenshot
Take a screenshot to invoke
InvocationEvents.TwoFingersSwipeLeft
Swipe left with two fingers
InvocationEvents.FloatingButton
Show a floating button above your UI
InvocationEvents.None
No automatic invocation (manual only)
BugReportingKmp.setInvocationEvents(listOf(InvocationEvents.Shake, InvocationEvents.FloatingButton))Floating button
If you use InvocationEvents.FloatingButton, you can set the edge and offset:
BugReportingKmp.setFloatingButtonEdge(FloatingButtonEdge.Right, offset = 50)You can also set the position of the video recording floating button:
BugReportingKmp.setVideoRecordingFloatingButtonPosition(VideoRecordingButtonPosition.BottomRight)Shaking threshold
When using shake as an invocation event, you can adjust sensitivity. Higher values mean less sensitivity:
Manual showing
To show the SDK manually (e.g. from a button or gesture), use LuciqKmp.show():
Use InvocationEvents.None if you only want manual invocation and no automatic triggers.
Showing a specific report type
Instead of showing the prompt-options menu, you can open the bug, feedback, or question form directly. Pass the report type and optional invocation options:
InvocationOptions can include: CommentFieldRequired, DisablePostSendingDialog, EmailFieldHidden, EmailFieldOptional.
Report types
Control which report types appear in the prompt (when you are not using BugReportingKmp.show with a specific type):
Enable/disable Luciq
To disable or enable the entire SDK (e.g. for user opt-out):
Last updated