SurveyManager

open class SurveyManager(source)

Manages in-app surveys to collect user feedback at specific intervals.

This class handles two types of surveys:

  1. Helpfulness Survey (3 days after install): Asks users if the app helps them stop mindless scrolling
  2. Intrusiveness Survey (5 days after install): Asks users how often the app's reminders feel intrusive

Survey timing is based on the app installation timestamp stored in SharedPreferences. Each survey is shown only once per installation, and responses are tracked via analytics.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Initializes the installation timestamp if not already set.
Link copied to clipboard
open fun maybeShowSurveys(activity: Activity)
Checks if any surveys should be shown based on installation time and previous responses.
Link copied to clipboard
open fun setTimingConfig(threeDays: Long, fiveDays: Long)