RSDSurveyRule

public protocol RSDSurveyRule

RSDSurveyRule defines an evaluation rule and returns a step identifier if appropriate.

  • For a given result (if any), what is the step that the survey should go to next?

    Declaration

    Swift

    func evaluateRule(with result: RSDResult?) -> String?

    Parameters

    results

    The result to evaluate.

    Return Value

    The identifier to skip to if the result evaluates to true.

  • For a given result (if any), what are the cohorts to add or remove?

    Declaration

    Swift

    func evaluateCohorts(with result: RSDResult?) -> (add: Set<String>, remove: Set<String>)?

    Parameters

    results

    The result to evaluate.

    Return Value

    The cohorts to add and remove.