RPTimerStep
A step where the user is forced to wait for timeout before being allowed to proceed to the next step.
- Inheritance
-
- Object
- Serializable
- RPStep
- RPTimerStep
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RPTimerStep.fromJson
RPTimerStep
Creates a RPTimerStep with an identifier, title and timeout.
The RPTimerStep is a step in which the user waits for timeout before being allowed to proceed. If showTime is true, a count down is shown.
When the time is up, a sound is played if playSound is true and automatically moves to the next step, if autoSkip is true.
Properties
autoSkip
Automatically move to the next step once finished counting down? False by default.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
playSound
Play a sound when the timer has finished counting down? False by default.
showTime
Should the remaining time be shown while counting down? If false only the title will be shown. True by default.
stepWidget
The widget (UI representation) of the step.
RPQuestionSteps don't have it because their UI representation depends on the Answer Format. Their Answer Format is assessed by RPUIQuestionStep or RPUIFormStep and they return the corresponding UI.
When needed, it should be overridden to fit the different types of Steps.
timeout
The time the user must wait before being able to continue.
Methods
toJson
Return a JSON encoding of this object.