Create and Show a Survey

Prev Next
  1. Create a Survey Object

    private lateinit var surveyView: XeboSurveyView
  2. Initialize the Survey object

    surveyView = XeboSurveyView(this)
  3. Load a full screen survey

    // parent: FragmentActivity
    // delegate: XeboSurveyDelegate
    // surveyURL: String? (survey URL)
    surveyView.loadFullscreenSurvey(this, this, surveyUrl)
  4. Load survey after N number of visits

    // visits: Int
    // parent: FragmentActivity
    // delegate: XeboSurveyDelegate
    // surveyURL: String? (survey URL)
    surveyView.loadSurveyAfter(N, this, this, surveyUrl)