PrivacyKitDelegate

public protocol PrivacyKitDelegate

Undocumented

Available where Self: UIViewController

  • requirePrivacy(_:_:) Default implementation

    Default Implementation

    Require privacy using a prebuilt Privacy Notice. This function is placed in the View Controller lifecycle (e.g. viewDidAppear) To display the privacy notice when your intro view controller loads.

    Declaration

    Swift

    public func requirePrivacy(_ viewType: PrivacyNoticeType = .bottom, _ completion: PrivacyCompletion? = nil)

    Parameters

    viewType

    The View Controller’s type. This controls where the PrivacyNotice View Controller Appears on the screen.

    completion

    The completion to run when the privacy notice is accepted or denied. This allows custom actions to occur when privacy is completed.

  • Default Implementation

    Require Privacy using a custom Privacy Notice. Your custom Privacy Notice View Controller should implement the PrivacyNoticeVC class. It also needs to appropriately bind the PrivacyNoticeVC.acceptPrivacy and PrivacyNoticeVC.denyPrivacy @objc methods or handle accepting and deny privacy manually in it’s own methods.

    Declaration

    Swift

    public func requirePrivacy(privacyViewController: PrivacyNoticeVC, _ completion: PrivacyCompletion? = nil)

    Parameters

    privacyViewController

    A custom view controller for your privacy

    completion

    The privacy completion runs when the user selects Agree or Deny If the View Controller is using the default accept and deny @objc functions.