MCTHandSelectionDataSource

public class MCTHandSelectionDataSource : RSDFormStepDataSourceObject

The object that serves as the data soruce for an MCTHandSelectionStep

  • Key for the randomized hand order in the task result.

    Declaration

    Swift

    public static let handOrderKey: String
  • Key for which hands the user said they could use in the task result.

    Declaration

    Swift

    public static let selectionKey: String
  • Override the initial result to look for the user’s previous answer to this question in UserDefaults.

    Declaration

    Swift

    override open var initialResult: RSDCollectionResult? { get }
  • Override populateInitialResults to also write a randomized handOrder result.

    Declaration

    Swift

    override open func populateInitialResults()
  • Override select answer to write the user’s choice to UserDefaults, and to write a randomized handOrder result.

    Declaration

    Swift

    override open func selectAnswer(item: RSDTableItem, at indexPath: IndexPath) throws -> (isSelected: Bool, reloadSection: Bool)