Models and Events
Models and Events
Section titled “Models and Events”Initialization models
Section titled “Initialization models”InitOptions
Section titled “InitOptions”debugpopupOptionsprovideLangautoLaunchrenderChromemetadata
renderChrome (default true, from 0.4.0) controls whether the SDK paints the popup “modal” — the dimmed scrim and the rounded card with elevation drawn by PopupView. Set it to false to render the popup transparent and full-bleed so it blends into your own screen; the survey stays functional (close button in the header, footer with back/start/complete/send). It mirrors the web/RN renderChrome flag. Note the native divergence: the chrome is native Compose (not HTML), and the SDK still auto-mounts a full-screen overlay, so the flag removes the scrim and card but does not hand the container mounting over to your app.
PopupOptions
Section titled “PopupOptions”idpublicKeycompanyId
ShowOptions
Section titled “ShowOptions”surveyIdproductIddata
Popup definition model
Section titled “Popup definition model”PopupDefinition
Section titled “PopupDefinition”idtitlemessagetriggertriggersconditionscooldownlegacyConditionsactionssurveyIdproductIdstylesegments
Trigger models
Section titled “Trigger models”Supported trigger types in code:
Trigger.TimeOnPage(seconds: Double)Trigger.Scroll(percentage: Int)Trigger.Exit(delaySeconds: Double = 0.0)Trigger.Event(name: String)Trigger.Click(targetId: String)
Style and segmentation models
Section titled “Style and segmentation models”themepositionimageUrlimageSizeimageAlignment
Segments
Section titled “Segments”langpath
Event model
Section titled “Event model”PopupShownPopupClickedSurveyCompleted
The shared helper Event.code() maps them to:
popup_shownpopup_clickedsurvey_completed
EventData
Section titled “EventData”popupIdsurveyIdproductIdextratimestamp
Notes for integration teams
Section titled “Notes for integration teams”metadatais where the examples passuserIdLegacyConditionremains supported for backward compatibility