LiPromo Reference


Package: com.applicasa.ApplicasaManager
Declared In: com.applicasa.ApplicasaManager.LiPromo

Overview


Applicasa provides an intelligent promotion platform that allows you to product 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

setPromoCallback(LiPromotionCallback)
getAvailablePromotions
refreshPromotions


Class Methods


setPromoCallback(LiPromotionCallback)

Method for assigning a callback handler required for reacting to the com.applicasa.Promotion framework.

public static void setPromoCallback(LiPromotionCallback liPromotionCallback)

Parameters:

liPromotionCallback
The LiPromotionCallback implementation that handles promotion responses.

getAvailablePromotions

Fetches all available promotions from the Applicasa service.

public static List<Promotion> getAvailablePromotions()

Return Value:

A List of available Promotion objects that can be displayed to the user.

refreshPromotions

Instructs the com.applicasa.Promotion framework to refresh its list of available promotions from the Applicasa service.

public static 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 getAvailablePromotions().


  « Back to SDK Class List