MoEngageCardCampaign

@objc
public final class MoEngageCardCampaign : NSObject, Codable, NSCoding, Sendable

Card data

  • Unique identifier for the campaign

    Declaration

    Swift

    @objc
    public let cardID: String
  • if true the card is shown else its hidden

    Declaration

    Swift

    @objc
    public let shouldShow: Bool
  • Category to which the campaign belongs.

    Declaration

    Swift

    @objc
    public let category: String
  • Date at which card campaign was created

    Declaration

    Swift

    @objc
    public let createdDate: Date?
  • Date at which card campaign was updated

    Declaration

    Swift

    @objc
    public let updatedDate: Date
  • Meta data related to the campaign like status, delivery control etc.

    Declaration

    Swift

    @objc
    public var metaData: [String : any Sendable] { get }
  • MoEngageCardTemplateData instance which contains UI information

    Declaration

    Swift

    @objc
    public let templateData: MoEngageCardTemplateData?
  • State of the card.

    Declaration

    Swift

    @objc
    public let cardState: MoEngageCampaignState
  • Declaration

    Swift

    required public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public override var description: String { get }