Consent

@objc(SFMCSdkConsent)
public enum Consent : Int

An enumeration of available consent options.

  • Tag: Consent
  • Declaration

    Swift

    public typealias RawValue = String
  • Opt in for submitting data

    Declaration

    Swift

    case optIn
  • Opt out of submitting data

    Declaration

    Swift

    case optOut
  • Pending consent for submitting data (default option)

    Declaration

    Swift

    case pending
  • None (Objc compatibility optional)

    Declaration

    Swift

    case none
  • Declaration

    Swift

    public var rawValue: RawValue { get }
  • Initializer for the Consent

    Declaration

    Swift

    public init(rawValue: RawValue)

    Parameters

    fromString

    Consent option in a String format