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
viewTypeThe View Controller’s type. This controls where the PrivacyNotice View Controller Appears on the screen.
completionThe 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
PrivacyNoticeVCclass. It also needs to appropriately bind thePrivacyNoticeVC.acceptPrivacyandPrivacyNoticeVC.denyPrivacy@objcmethods or handle accepting and deny privacy manually in it’s own methods.Declaration
Swift
public func requirePrivacy(privacyViewController: PrivacyNoticeVC, _ completion: PrivacyCompletion? = nil)Parameters
privacyViewControllerA custom view controller for your privacy
completionThe privacy completion runs when the user selects Agree or Deny If the View Controller is using the default accept and deny
@objcfunctions.
View on GitHub
Install in Dash
PrivacyKitDelegate Protocol Reference