Setting Custom Data
Attach user data, key-value attributes, custom events, tags, and an app variant to Luciq reports from shared Kotlin code so you can filter them later.
User data (free-form string)
Attach a custom string to reports (e.g. JSON or key-value text):
LuciqKmp.setUserData("{\"plan\":\"premium\",\"region\":\"EU\"}")User attributes
Set key-value attributes that appear in the dashboard and on reports:
LuciqKmp.setUserAttribute("plan", "premium")
LuciqKmp.setUserAttribute("role", "admin")
val value = LuciqKmp.getUserAttribute("plan") // suspend
val all = LuciqKmp.getAllUserAttributes() // suspend
LuciqKmp.removeUserAttribute("role")
LuciqKmp.clearAllUserAttributes()User events
Log custom events (e.g. for analytics or filtering):
LuciqKmp.logUserEvent("purchase_completed")Tags
Append tags to bug reports for filtering and segmentation:
App variant
Set the app variant (e.g. "beta", "production") for filtering in the dashboard. You can also set it in LuciqConfiguration at init:
Note: On some platforms this may be primarily set at init; check behavior per platform.
File attachments
Add file attachments to bug reports (e.g. logs or exports). You can add by file path or from in-memory data, and clear the list when needed:
Attachments added this way are included in the next report the user submits.
Feature flags
Add or remove feature flags (for A/B or segment filtering):
Last updated