ConsentDecision

public struct ConsentDecision : Equatable

A representation of a user’s consent decision, which is expected to be provided by a Consent Management Provider.

  • The type of consent decision made by the user.

    See more

    Declaration

    Swift

    public enum DecisionType : String
  • The type of decision.

    Declaration

    Swift

    public let decisionType: DecisionType
  • The purposes that were accepted by the user, either explicitly or implicitly.

    Declaration

    Swift

    public let purposes: Set<String>
  • Creates a new ConsentDecision.

    Declaration

    Swift

    public init(decisionType: DecisionType, purposes: Set<String>)

    Parameters

    decisionType

    The type of decision (implicit or explicit).

    purposes

    The set of purposes that were accepted by the user.