LiPromo Reference


Inherits From: NSObject
Declared In: LiPromo.h

Overview


Applicasa provides an intelligent promotion platform that allows you to produce numerous types of promotions in order to increase sales. The web console provides all the tools necessary to divide your users into segments and market to them based on specific criteria with event-based promotions, including Deals, Rewards, and Announcements.

LiPromo provides a simple interface through which you can iterate through a list of available promotions that are targeted at the current user only.


Tasks


Handling Promotions

+ setLiKitPromotionsDelegate:
+ getAvailablePromosWithBlock:
+ refreshPromotions


Class Methods


setLiKitPromotionsDelegate:

Method for assigning the class delegate required for interacting with the LiKitPromotions framework.

+ (void) setLiKitPromotionsDelegate:(id <LiKitPromotionsDelegate>)delegate;

Parameters:

delegate
The object that acts as the delegate.

Discussion:

The delegate must adopt the LiKitPromotionsDelegate protocol.

getAvailablePromosWithBlock:

Fetches all available promotions from the LiKitPromotions framework.

+ (void) getAvailablePromosWithBlock:(GetPromotionArrayFinished)block;

Parameters:

block
A block for handling method completion that must match the signature (NSError *error, NSArray *array).

Discussion:

This method is a convenience method for interacting with the LiKitPromotions framework. All available promotions will be returned as an NSArray to the block parameter, allowing customizable action to be taken on each of the promotions returned in the array.

refreshPromotions

Instructs the LiKitPromotions framework to refresh its list of available promotions from the Applicasa service.

+ (void) refreshPromotions;

Discussion:

This method simply instructs Applicasa to refresh its list of available promotions with the latest data available. To interact with the updated list of promotions, use getAvailablePromosWithBlock:.


  « Back to SDK Class List