Builder

@objc(AASDKAdswizzCCPAConfigBuilder)
public final class Builder : NSObject

Builder class to conveniently create an instance of AdswizzCCPAConfig

  • Explicit notice for collecting consent. Return .yes if the user was presented with the opt-out choice, .no otherwise. The default is .notApplicable.

    Declaration

    Swift

    @objc
    public func with(explicitNotice: CCPAConsent) -> Builder

    Parameters

    explicitNotice

    explicit notice

  • Whether the user has opted-out of the sale of their personal information. The default is .notApplicable.

    Declaration

    Swift

    @objc
    public func with(optOut: CCPAConsent) -> Builder

    Parameters

    optOut

    opt-out choice consent

  • Whether information should operate within the Limited Service Provider Agreement. The default is .notApplicable.

    Declaration

    Swift

    @objc
    public func with(lspa: CCPAConsent) -> Builder

    Parameters

    lspa

    LSPA availability

  • Builds an AdswizzCCPAConfig object. By default, it creates a config object that refers to a user who does not fall within a U.S. Privacy jurisdiction (e.g. CCPA).

    Declaration

    Swift

    @objc
    public func build() -> AdswizzCCPAConfig

    Return Value

    a valid AdswizzCCPAConfig object