MLMarketingManager Class Reference

Inherits from NSObject
Declared in MLMarketingManager.h

Overview

Enter point to enable marketing to receive In-App messages and test In-App messages.

Other Methods

+ enable

Enable the marketing module to receive In-App messages.

+ (void)enable

Declared In

MLMarketingManager.h

Developer Options

+ enableTestMode

Enable MaxLeap SDK In-App message test mode. In test mode a small MaxLeap tab will appear on the left side of the screen, enabling a developer to see/test all campaigns currently available to this customer.

+ (void)enableTestMode

Discussion

In test mode, the impression and click on a in-app message will not be recored.

Declared In

MLMarketingManager.h

Push

+ handlePushNotificationOpened:

Used to record performance data for push notifications

+ (BOOL)handlePushNotificationOpened:(nullable NSDictionary *)notificationInfo

Parameters

notificationInfo

The dictionary from either didFinishLaunchingWithOptions: or didReceiveRemoteNotification: should be passed on to this method.

Return Value

YES if the remote notification is successfully handled.

Declared In

MLMarketingManager.h

In-App Message

+ setInAppMessageDismissButtonImage:

Set the image to be used for dimissing an In-App message

+ (void)setInAppMessageDismissButtonImage:(UIImage *)image

Parameters

image

The image to be used for dismissing an In-App message. By default this is a circle with an ‘X’ in the middle of it

Declared In

MLMarketingManager.h

+ setInAppMessageDismissButtonImageWithName:

Set the image to be used for dimissing an In-App message by providing the name of the image to be loaded and used.

+ (void)setInAppMessageDismissButtonImageWithName:(NSString *)imageName

Parameters

imageName

The name of an image to be loaded and used for dismissing an In-App message. By default the image is a circle with an ‘X’ in the middle of it

Declared In

MLMarketingManager.h

+ setInAppMessageDismissButtonLocation:

Set the location of the dismiss button on an In-App msg

+ (void)setInAppMessageDismissButtonLocation:(MLInAppMessageDismissButtonLocation)location

Parameters

location

The location of the button (left or right)

Declared In

MLMarketingManager.h

+ inAppMessageDismissButtonLocation

Returns the location of the dismiss button on an In-App msg

+ (MLInAppMessageDismissButtonLocation)inAppMessageDismissButtonLocation

Return Value

InAppDismissButtonLocation

Declared In

MLMarketingManager.h