UsageCollectionConsent
public class UsageCollectionConsent : DataCollectionConsenting
Undocumented
-
Read-only content of the user consent form
Declaration
Swift
public let userConsentFormContent: UserConsentFormContent!
-
Initializer used to construct UsageCollectionConsent with some optional customization
Declaration
Swift
public init(version: String = "1.0", userConsentPagesContent: [UserConsentPageContent]? = nil)
Parameters
version
used for UsageCollectionConsent construction.
userConsentPagesContent
If the customized single/multi-page content for Usage Consent is desired, optionally submit them here.
-
method used to get the consent of the user
Declaration
Swift
public func getConsent(context: OnboardingContext) -> Bool
-
method used to take care of storing of the consent
Declaration
Swift
public func setConsent(context: OnboardingContext, given: Bool)