FUIUserConsentPage

open class FUIUserConsentPage : FUIUserConsentPageComponent

FUIUserConsentPage() represents a single page in a user consent form. An FUISinglePageUserConsentForm only contains one instance of the FUIUserConsentPage(). An FUIMultiPageUserConsentForm can contain many FUIUserConsentPage() instances which constitute the multiple pages of the form.

let page1 = FUIUserConsentPage()
page1.title.text = "Data Privacy"
page1.body.text = "Detailed text about how data privacy pertains to this app and why it is important for the user to enable this functionality"
page1.actionTitle.text = "Learn more about Data Privacy"
page1.actionHandler = { controller in
    let alert = UIAlertController(title: "Data Privacy", message: "Alert for Data Privacy Page", preferredStyle: UIAlertControllerStyle.alert)
    alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.default, handler: nil))
    controller.present(alert, animated: true, completion: nil)
}

 let userconsentpages = [page1]
 let multipageform = FUIMultiPageUserConsentForm(pages: userconsentpages)
  • Declaration

    Swift

    public var titleStyleClassPath: [FioriStyle]
  • Declaration

    Swift

    public var bodyStyleClassPath: [FioriStyle]
  • Declaration

    Swift

    public var actionTitleStyleClassPath: [FioriStyle]
  • Declaration

    Swift

    public var attributesProvider: FUIAttributesProvider?
  • title - displays the title of the user consent page.

    Declaration

    Swift

    public var title: FUIText
  • titleAttributedText - displays the attributed text provided as the user consent page title. This property takes precedence if the title property is also set.

    Declaration

    Swift

    public var titleAttributedText: NSAttributedString!
  • body - displays the content of the user consent page.

    Declaration

    Swift

    public var body: FUIText
  • bodyAttributedText - displays the attributed text provided as the user consent page content. This property takes precedence if the body property is also set.

    Declaration

    Swift

    public var bodyAttributedText: NSAttributedString!
  • actionTitle - displays the title of button with link to more information on the details of the content.

    Declaration

    Swift

    public var actionTitle: FUIText
  • actionTitleAttributedText - displays the attributed text provided as the actionTitle. This property takes precedence if the actionTitle property is also set.

    Declaration

    Swift

    public var actionTitleAttributedText: NSAttributedString!
  • actionHandler - invoked with the actionTitle button is tapped.

    Declaration

    Swift

    public var actionHandler: ((FUIUserConsentPageViewController) -> Void)?