public class

LocMarketing

extends Object
java.lang.Object
   ↳ com.mapsted.locmarketing.LocMarketing

Summary

Nested Classes
interface LocMarketing.Callback  
interface LocMarketing.GeofenceEventListener  
interface LocMarketing.LocMarketingListener  
Public Constructors
LocMarketing(Context context, CoreApi coreApi, LocMarketing.LocMarketingListener listener)
Note: coreApi must be initialized state.
Public Methods
void addGeofenceEventListener(LocMarketing.GeofenceEventListener geofenceEventListener)
add GeofenceEventListener
static boolean canHandle(Intent intent)
void findCampaign(String campaignId, Consumer<Campaign> resultCallback)
List<Feed> getFeeds(int propertyId)
void getFeedsAsync(List<Integer> propertyIds, int limit, LocMarketing.Callback callback)
void getFeedsAsync(int propertyId, LocMarketing.Callback callback)
void getFeedsAsync(List<Integer> propertyIds, LocMarketing.Callback callback)
void markAsShown(String campaignId)
void onDestroy()
void onNewIntent(Intent intent)
void removeGeofenceEventListener(LocMarketing.GeofenceEventListener geofenceEventListener)
remove previously added GeofenceEventListener
void showFeeds(ViewGroup feedsContainer, int propertyId)
void showPopUpDialog(Activity activity, String campaignId)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LocMarketing (Context context, CoreApi coreApi, LocMarketing.LocMarketingListener listener)

Note: coreApi must be initialized state. So call only after sdk is initialized.

Parameters
coreApi coreApi must be initialized.

Public Methods

public void addGeofenceEventListener (LocMarketing.GeofenceEventListener geofenceEventListener)

add GeofenceEventListener

public static boolean canHandle (Intent intent)

public void findCampaign (String campaignId, Consumer<Campaign> resultCallback)

public List<Feed> getFeeds (int propertyId)

public void getFeedsAsync (List<Integer> propertyIds, int limit, LocMarketing.Callback callback)

public void getFeedsAsync (int propertyId, LocMarketing.Callback callback)

public void getFeedsAsync (List<Integer> propertyIds, LocMarketing.Callback callback)

public void markAsShown (String campaignId)

public void onDestroy ()

public void onNewIntent (Intent intent)

public void removeGeofenceEventListener (LocMarketing.GeofenceEventListener geofenceEventListener)

remove previously added GeofenceEventListener

public void showFeeds (ViewGroup feedsContainer, int propertyId)

public void showPopUpDialog (Activity activity, String campaignId)