EmailRegistrationOptions

@objc(UAEmailRegistrationOptions)
public final class EmailRegistrationOptions : NSObject, Codable, Sendable

Email registration options

  • Returns an Email registration options with double opt-in value to false

    Declaration

    Swift

    @objc
    public static func commercialOptions(
        transactionalOptedIn: Date?,
        commercialOptedIn: Date?,
        properties: [String: Any]?
    ) -> EmailRegistrationOptions

    Parameters

    transactionalOptedIn

    The transactional opted-in value

    commercialOptedIn

    The commercial opted-in value

    properties

    The properties. They must be JSON serializable.

    Return Value

    An Email registration options.

  • Returns an Email registration options.

    Declaration

    Swift

    @objc
    public static func options(
        transactionalOptedIn: Date?,
        properties: [String: Any]?,
        doubleOptIn: Bool
    ) -> EmailRegistrationOptions

    Parameters

    transactionalOptedIn

    The transactional opted-in date.

    properties

    The properties. They must be JSON serializable.

    doubleOptIn

    The double opt-in value

    Return Value

    An Email registration options.

  • Returns an Email registration options.

    Declaration

    Swift

    @objc
    public static func options(
        properties: [String: Any]?,
        doubleOptIn: Bool
    ) -> EmailRegistrationOptions

    Parameters

    properties

    The properties. They must be JSON serializable.

    doubleOptIn

    The double opt-in value

    Return Value

    An Email registration options.

  • Declaration

    Swift

    public init(from decoder: Decoder) throws