EligibilityCheckViewController

open class EligibilityCheckViewController: UITableViewController

View controller presenting all eligibility criteria provided in the receiversrequirements` property, allowing the user to proceed to a summary page that informs of eligibility and allows to proceed to to consenting or not.

  • The eligibility criteria.

    Declaration

    Swift

    open var requirements: [EligibilityRequirement]?
  • Set this string to override the title message. Defaults to You are eligible to join the study.

    Declaration

    Swift

    open var eligibleTitle: String?
  • Override point for the default eligible message Tap the button below to begin the consent process.

    Declaration

    Swift

    open var eligibleMessage: String?
  • Override point for the default ineligible message Thank you for your interest!\nUnfortunately, you are not eligible to join […].

    Declaration

    Swift

    open var ineligibleMessage: String?
  • Block executed if all eligibility requirements are met and the user taps the Start Consent button.

    Declaration

    Swift

    open var onStartConsent: ((_ viewController: EligibilityCheckViewController) -> Void)?
  • Undocumented

    Declaration

    Swift

    open class EligibilityCheckViewController: UITableViewController
  • Undocumented

    Declaration

    Swift

    open class EligibilityCheckViewController: UITableViewController
  • Eligible.

    Push EligibilityStatusViewController informing about eligibility and presenting the “Start Consent” button that will execute the onStartConsent block.

    Declaration

    Swift

    open func showEligible(animated: Bool)

    Parameters

    animated

    Whether to animate the push

  • Ineligible.

    Push EligibilityStatusViewController informing about non-eligibility, removing the other status and check view controllers from the stack so that if pressing < Back, the user lands back at where eligibility checking started.

    Declaration

    Swift

    open func showIneligible(animated: Bool)

    Parameters

    animated

    Whether to animate the push