Class EventLocalCampaignTrigger
- java.lang.Object
-
- com.batch.android.localcampaigns.trigger.EventLocalCampaignTrigger
-
- All Implemented Interfaces:
LocalCampaign.Trigger
public class EventLocalCampaignTrigger extends java.lang.Object implements LocalCampaign.Trigger
Event based trigger for local campaigns
-
-
Constructor Summary
Constructors Constructor Description EventLocalCampaignTrigger(java.lang.String name, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetType()Type of trigger, possible values : NOW EVENT NEXT_SESSION CAMPAIGNS_LOADED CAMPAIGNS_REFRESHEDbooleanisSatisfied(java.lang.String eventName, java.lang.String eventLabel)Checks if this triggers is satisfied for a given event
-
-
-
Method Detail
-
isSatisfied
public boolean isSatisfied(@Nullable java.lang.String eventName, @Nullable java.lang.String eventLabel)Checks if this triggers is satisfied for a given event
-
getType
public java.lang.String getType()
Description copied from interface:LocalCampaign.TriggerType of trigger, possible values :- NOW
- EVENT
- NEXT_SESSION
- CAMPAIGNS_LOADED
- CAMPAIGNS_REFRESHED
- Specified by:
getTypein interfaceLocalCampaign.Trigger- Returns:
- type
-
-