ConsentTaskOptions

public struct ConsentTaskOptions

Struct to hold various options for consenting.

There are default values to all properties, so you only need to override what you want to change.

  • Whether or not the participant should be asked if she wants to share her data worldwide or only with the study researchers.

    Declaration

    Swift

    public var askForSharing = true
  • Name of a bundled HTML file (without extension) that contains more information about data sharing.

    Declaration

    Swift

    public var shareMoreInfoDocument = "Consent_sharing"
  • Optional: name of a bundled HTML file (without extension) that contains the full consent document for review.

    Declaration

    Swift

    public var reviewConsentDocument: String? = nil
  • Shown when the user taps agree and she needs to confirm that she is in agreement.

    Declaration

    Swift

    public var reasonForConsent = "By agreeing you confirm that you read the consent and that you wish to take part in this research study.".c3_localized
  • Whether the user should be prompted to create a passcode/PIN after consenting.

    Declaration

    Swift

    public var askToCreatePasscode = true
  • Which system permissions the user should be asked to grant during consenting.

    Declaration

    Swift

    public var wantedServicePermissions: [SystemService]? = nil
  • Undocumented

    Declaration

    Swift

    public struct ConsentTaskOptions