MoEngageInAppController
extension MoEngageInAppController: MoEngageTestInAppProtocol
-
Declaration
Swift
public func addSessionTerminationEvent(for reason: MoEngageTestInAppSessionTermination) -
Check non-instrusive inapp specific eligibility condition.
Declaration
Swift
func isNudgeCampaignEligible( _ campaignMeta: MoEngageInAppCampaignMeta, inPrioratizingStage: Bool ) -> BoolParameters
campaignMetaThe campaign metadata to check.
inPrioratizingStageWhether check is in priority stage.
Return Value
Whether campaign passes check.
-
Declaration
Swift
func performMetaSync(inAppFetchType: MoEngageInAppSyncType, previousIdentities: [String : String], withCompletionBlock completionBlock: @escaping (Bool) -> Void) -
Declaration
Swift
func getSelfHandledInAppPostSync() -
Declaration
Swift
func getSelfHandledInAppsPostSync() -
Declaration
Swift
@nonobjc func fetchRequestBodyResult(inAppFetchType: MoEngageInAppSyncType, previousIdentities: [String : String]) -> MoEngageRequestBodyBuildResult? -
Declaration
Swift
func fetchRequestBodyResultForTemplateFetch() -> [String : Any] -
Declaration
Swift
func getQueryParamsForMultipleCampaignsInAppRequest() -> [String : String] -
Declaration
Swift
func getSelfHandledInApps(completionBlock: @escaping (MoEngageInAppSelfHandledData?) -> Void) -
Declaration
Swift
func fetchMultipleCampaignsInAppRequest(for campaigns: [MoEngageInAppCampaignMeta], withCompletionBlock completion: @escaping (Bool, [AnyHashable : Any]?) -> Void) -
Declaration
Swift
func createCampaignsRequestPayload(from campaigns: [MoEngageInAppCampaignMeta]) -> [[String : Any]] -
Declaration
Swift
func trackTestInAppEvent(for event: MoEngageTestInAppEvents, attributes: [String : Any]? = nil) -
Declaration
Swift
func trackTriggerTestInAppEvent(for event: MoEngageTestInAppEvents, triggerEvent: String, attributes: [String : Any]? = nil) -
Declaration
Swift
func setTestInAppDelegate() -
Declaration
Swift
func performNewTestInAppFlow(for inApp: [String : Any]) -
Declaration
Swift
func trackInAppStat(_ statType: MoEngageInAppStatType, for campaignId: String, highPriorityCampaignIds: [String]) -
Declaration
Swift
func trackInAppStat(_ statType: MoEngageInAppStatType, for campaignId: String) -
Check if the given campaign payload represents an HTML nudge
Declaration
Swift
func isHTMLNudgeCampaign(payload: MoEngageInAppViewPayload) -> BoolParameters
payloadThe campaign payload to check
Return Value
True if the campaign is an HTML nudge, false otherwise
-
Reposition HTML nudge when orientation changes
Declaration
Swift
func repositionHTMLNudge(_ nudgeView: MoEngageInAppPrimaryContainerView)Parameters
nudgeViewThe nudge view to reposition
-
Extract campaign IDs from an array of campaign metadata
Declaration
Swift
func getCampaignIDsFromCampaigns(_ campaigns: [MoEngageInAppCampaignMeta]) -> [String]Parameters
campaignsArray of campaign metadata
Return Value
Array of campaign ID strings