MoEngageExperienceCampaign

@objc
public class MoEngageExperienceCampaign : NSObject

Holds the full data for an experience campaign as returned by the fetch API.

  • The unique identifier for the experience.

    Declaration

    Swift

    @objc
    public let experienceKey: String
  • The experience payload as a dictionary. Contains the personalization data configured on MoEngage dashboard. Offerings (if any) are included in the payload under the "offerings" key as a stringified JSON array. Each offering object contains id, offering_content, and offering_context.

    Declaration

    Swift

    @objc
    public let payload: [String : Any]
  • Context attributes for tracking experience shown/clicked events. Pass these directly to trackExperienceShown / trackExperienceClicked.

    Declaration

    Swift

    @objc
    public let experienceContext: [String : Any]
  • The data source of the campaign (cache or network).

    Declaration

    Swift

    @objc
    public let source: MoEngagePersonalizeDataSource