MoEngageInAppNativeDelegate

@objc
public protocol MoEngageInAppNativeDelegate : NSObjectProtocol

Confirm to this protocol to get all the InApp campaigns related callbacks

  • Callback received when an inApp Campaign is shown by the SDK

    Declaration

    Swift

    func inAppShown(withCampaignInfo inappCampaign: MoEngageInAppCampaign, forAccountMeta accountMeta: MoEngageAccountMeta)

    Parameters

    inappCampaign

    MoEngageInAppCampaign instance providing the info of the campaign currently being shown

    accountMeta

    MoEngageAccountMeta instance providing the info of the MoEngage Account to which the campaign belongs

  • Callback received when a inApp is clicked by the user to perform a navigation action

    Declaration

    Swift

    func inAppClicked(withCampaignInfo inappCampaign: MoEngageInAppCampaign, andNavigationActionInfo navigationAction: MoEngageInAppNavigationAction, forAccountMeta accountMeta: MoEngageAccountMeta)

    Parameters

    inappCampaign

    MoEngageInAppCampaign instance providing the info of the campaign which is clicked by the user

    navigationAction

    MoEngageInAppAction instance giving navigation action info along with key-value pairs provided while creating the campaign

    accountMeta

    MoEngageAccountMeta instance providing the info of the MoEngage Account to which the campaign belongs

  • Callback received when an inApp Campaign is clicked by the user to perform Custom Action

    Declaration

    Swift

    func inAppClicked(withCampaignInfo inappCampaign: MoEngageInAppCampaign, andCustomActionInfo customAction: MoEngageInAppAction, forAccountMeta accountMeta: MoEngageAccountMeta)

    Parameters

    inappCampaign

    MoEngageInAppCampaign instance providing the info of the campaign which is clicked by the user

    customAction

    MoEngageInAppAction instance giving custom action info along with key-value pairs provided while creating the campaign

    accountMeta

    MoEngageAccountMeta instance providing the info of the MoEngage Account to which the campaign belongs

  • Callback received when an inApp is dismissed

    Declaration

    Swift

    func inAppDismissed(withCampaignInfo inappCampaign: MoEngageInAppCampaign, forAccountMeta accountMeta: MoEngageAccountMeta)

    Parameters

    inappCampaign

    MoEngageInAppCampaign instance providing the info of the campaign which is being dismissed by the user

    accountMeta

    MoEngageAccountMeta instance providing the info of the MoEngage Account to which the campaign belongs

  • Callback received when a self handled inApp is triggered by an event

    Declaration

    Swift

    func selfHandledInAppTriggered(withInfo inappCampaign: MoEngageInAppSelfHandledCampaign, forAccountMeta accountMeta: MoEngageAccountMeta)

    Parameters

    inappCampaign

    MoEngageInAppSelfHandledCampaign instance with self handled inApp info

    accountMeta

    MoEngageAccountMeta instance providing the info of the MoEngage Account to which the campaign belongs