MoEngagePersonalization

Public API

  • Entry point for the MoEngage Personalization SDK.

    Use this class to:

    • Fetch experience metadata (to discover available experiences)
    • Fetch experience campaign data for one or more experience keys
    • Track experience impression and click events
    • Track offering impression and click events
    See more

    Declaration

    Swift

    @objc
    public class MoEngageSDKPersonalize : NSObject

Public Models

  • Holds metadata wrapper with source and list of experience campaign metadata.

    See more

    Declaration

    Swift

    @objc
    public class MoEngageExperienceCampaignMetaData : NSObject
  • Holds metadata about an experience campaign.

    See more

    Declaration

    Swift

    @objc
    public class MoEngageExperienceCampaignMetaDetail : NSObject
  • Holds the full data for an experience campaign as returned by the fetch API.

    See more

    Declaration

    Swift

    @objc
    public class MoEngageExperienceCampaign : NSObject
  • Error codes for experience fetch failures. Includes SDK-level errors, server business logic errors (mapped from backend), and generic categories.

    See more

    Declaration

    Swift

    @objc
    public enum MoEngageExperienceFailureReasonCode : Int
  • Failure reason for experience fetch operations. Used in both onFailure callback (complete failures) and onSuccess failures array (partial failures).

    See more

    Declaration

    Swift

    @objc
    public class MoEngageExperienceFailureReason : NSObject
  • The result returned in the success callback of a fetch experiences request.

    A single result can contain both successful experiences and failures — the backend may satisfy some keys while rejecting others.

    See more

    Declaration

    Swift

    @objc
    public class MoEngageExperienceCampaignsResult : NSObject

Public Enums

  • Represents the current lifecycle status of an experience campaign.

    The @objc attribute is required to expose named constants to Objective-C:

    • MoEngageExperienceStatusActive
    • MoEngageExperienceStatusPaused
    • MoEngageExperienceStatusScheduled

    Swift Usage

    let statuses: [MoEngageExperienceStatus] = [.active, .paused]
    

    Objective-C Usage

    NSArray<NSNumber *> *statuses = @[
        @(MoEngageExperienceStatusActive),
        @(MoEngageExperienceStatusPaused)
    ];
    
    See more

    Declaration

    Swift

    @objc
    public enum MoEngageExperienceStatus : Int