Class LocalCampaign.Output
- java.lang.Object
-
- com.batch.android.localcampaigns.model.LocalCampaign.Output
-
- Direct Known Subclasses:
LandingOutput
- Enclosing class:
- LocalCampaign
public abstract static class LocalCampaign.Output extends java.lang.ObjectDefine how this campaign will be displayed on the screen when triggered successfully
-
-
Field Summary
Fields Modifier and Type Field Description JSONObjectpayload
-
Constructor Summary
Constructors Constructor Description Output(JSONObject payload)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract booleandisplayMessage(LocalCampaign campaign)Display a local campaign message and track campaign view with the ViewTracker.
-
-
-
Field Detail
-
payload
@NonNull public JSONObject payload
-
-
Constructor Detail
-
Output
public Output(@NonNull JSONObject payload)
-
-
Method Detail
-
displayMessage
protected abstract boolean displayMessage(LocalCampaign campaign)
Display a local campaign message and track campaign view with the ViewTracker. It's weird to give the campaign in parameter, but we need its custom payload- Returns:
- true is the campaign was displayed with success
-
-