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
inappCampaignMoEngageInAppCampaign instance providing the info of the campaign currently being shown
accountMetaMoEngageAccountMeta 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
inappCampaignMoEngageInAppCampaign instance providing the info of the campaign which is clicked by the user
navigationActionMoEngageInAppAction instance giving navigation action info along with key-value pairs provided while creating the campaign
accountMetaMoEngageAccountMeta 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
inappCampaignMoEngageInAppCampaign instance providing the info of the campaign which is clicked by the user
customActionMoEngageInAppAction instance giving custom action info along with key-value pairs provided while creating the campaign
accountMetaMoEngageAccountMeta 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
inappCampaignMoEngageInAppCampaign instance providing the info of the campaign which is being dismissed by the user
accountMetaMoEngageAccountMeta 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
inappCampaignMoEngageInAppSelfHandledCampaign instance with self handled inApp info
accountMetaMoEngageAccountMeta instance providing the info of the MoEngage Account to which the campaign belongs