UserConsentFormContent

public struct UserConsentFormContent

The content of User Consent Forms.

  • The user consent form version

    Declaration

    Swift

    public let version: String
  • Boolean specifying whether the user consent form is mandatory. If it is mandatory and the user denies consent, the onboarding is aborted.

    Declaration

    Swift

    public let isRequired: Bool
  • Array of UserContentPageContent instances. Each UserConsentPageContent corresponds to one page containing the content shown to the user. A form can consist of one page or multiple pages that get displayed when the form is presented.

    Declaration

    Swift

    public let pages: [UserConsentPageContent]
  • Initializer of UserConsentFormContent

    Declaration

    Swift

    public init(version: String, isRequired: Bool, pages: [UserConsentPageContent])

    Parameters

    version

    the user consent form version

    isRequired

    specifying whether the user consent form is mandatory. If it is mandatory and the user denies consent, the onboarding is aborted.

    pages

    array of UserContentPageContent instances. Each UserConsentPageContent corresponds to one page containing the content shown to the user. A form can consist of one page or multiple pages that get displayed when the form is presented.