surveysCompose-v0.1.0
·
12 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Minor Changes
-
8632f77: Initial
0.xrelease of the optional Compose survey UI (com.posthog:posthog-android-surveys-compose).
This module is pre-1.0 — its public API may change between minor versions. Add the dependency
alongsidecom.posthog:posthog-androidand setsurveys = true; the core SDK auto-discovers the
delegate from the classpath — nosurveysConfigwiring required.- All seven question / screen types: number rating (NPS 0–10, 1–5, 1–7), emoji rating (3- and
5-face plus thumbs up/down), open text, single choice, multiple choice, link, and the
thank-you / confirmation screen. - Presented in its own window (
ComponentDialog+ Material 3ModalBottomSheet) above the
foreground activity, so it works over both XML and Compose hosts and never interferes with host
navigation. X-button-only dismissal (swipe-down / touch-outside / back are ignored). - Multi-question surveys with server-driven branching; honors the configured popup delay
(surveyPopupDelaySeconds). - Theming from
PostHogDisplaySurveyAppearance— colors, button/placeholder text, input
appearance, and thank-you copy, with sensible defaults and a CSS hex / named-color parser. - Fires
survey shown/survey sent/survey dismissedthrough the host SDK callbacks.
- All seven question / screen types: number rating (NPS 0–10, 1–5, 1–7), emoji rating (3- and