Companion

object Companion

Extras that can be passed to QuestionnaireFragment to define its behavior. When you create a QuestionnaireFragment, one of EXTRA_QUESTIONNAIRE_JSON_URI or EXTRA_QUESTIONNAIRE_JSON_STRING is required.

Properties

Link copied to clipboard
const val EXTRA_ENABLE_REVIEW_PAGE: String

A Boolean extra to control if a review page is shown. By default it will be shown at the end of the questionnaire.

Link copied to clipboard
const val EXTRA_QUESTIONNAIRE_JSON_STRING: String

A JSON encoded string extra for a questionnaire. This should only be used for questionnaires with size at most 512KB. For large questionnaires, use EXTRA_QUESTIONNAIRE_JSON_URI.

Link copied to clipboard
const val EXTRA_QUESTIONNAIRE_JSON_URI: String

A android.net.Uri extra for streaming a JSON encoded questionnaire.

Link copied to clipboard
const val EXTRA_QUESTIONNAIRE_RESPONSE_JSON_STRING: String

A JSON encoded string extra for a prefilled questionnaire response. This should only be used for questionnaire response with size at most 512KB. For large questionnaire response, use EXTRA_QUESTIONNAIRE_RESPONSE_JSON_URI.

Link copied to clipboard
const val EXTRA_QUESTIONNAIRE_RESPONSE_JSON_URI: String

A android.net.Uri extra for streaming a JSON encoded questionnaire response.

Link copied to clipboard
const val EXTRA_SHOW_REVIEW_PAGE_FIRST: String

An Boolean extra to control if the review page is to be opened first. This has no effect if review page is not enabled.

Link copied to clipboard
const val SUBMIT_REQUEST_KEY: String