PrivacyKitDelegate
public protocol PrivacyKitDelegate
Undocumented
-
Undocumented
Declaration
Swift
func requirePrivacy(_ viewType: PrivacyNoticeType, _ completion: PrivacyCompletion?)
-
Undocumented
Declaration
Swift
func requirePrivacy(privacyViewController: PrivacyNoticeVC, _ completion: PrivacyCompletion?)
-
requirePrivacy(_:_:)
Default implementationDefault 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.
-
requirePrivacy(privacyViewController:_:)
Default implementationDefault 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 thePrivacyNoticeVC.acceptPrivacy
andPrivacyNoticeVC.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.