Skip to content

Models and Events

  • debug
  • popupOptions
  • provideLang
  • autoLaunch
  • renderChrome
  • metadata

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.

  • id
  • publicKey
  • companyId
  • surveyId
  • productId
  • data
  • id
  • title
  • message
  • trigger
  • triggers
  • conditions
  • cooldown
  • legacyConditions
  • actions
  • surveyId
  • productId
  • style
  • segments

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)
  • theme
  • position
  • imageUrl
  • imageSize
  • imageAlignment
  • lang
  • path
  • PopupShown
  • PopupClicked
  • SurveyCompleted

The shared helper Event.code() maps them to:

  • popup_shown
  • popup_clicked
  • survey_completed
  • popupId
  • surveyId
  • productId
  • extra
  • timestamp
  • metadata is where the examples pass userId
  • LegacyCondition remains supported for backward compatibility