RSDSectionStepTransformer
public protocol RSDSectionStepTransformer
RSDSectionStepTransformer
is a lightweight protocol for vending the steps in a section.
This object is used to allow accessing an RSDSectionStep
for use in multiple tasks or
multiple times within a task.
For example, for a task where the user is going to run for 12 minutes, the researchers may wish to record the user’s heart rate both before and after the run. The heart rate can be defined in a seperate file or model object and the transformer is used as a placeholder that can fetch and replace itself with a section of steps that are used to capture the user’s heartrate.
-
Fetch the steps for this section.
Declaration
Swift
func transformSteps(with factory: RSDFactory) throws -> [RSDStep]
Parameters
factory
The factory to use for creating the task and steps.
Return Value
The steps for this section.