Class ActionOutput
- java.lang.Object
-
- com.batch.android.localcampaigns.model.LocalCampaign.Output
-
- com.batch.android.localcampaigns.output.ActionOutput
-
public class ActionOutput extends LocalCampaign.Output
-
-
Field Summary
-
Fields inherited from class com.batch.android.localcampaigns.model.LocalCampaign.Output
payload
-
-
Constructor Summary
Constructors Constructor Description ActionOutput(JSONObject payload)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandisplayMessage(LocalCampaign campaign)Display a local campaign message and track campaign view with the ViewTracker.static ActionOutputprovide(JSONObject payload)
-
-
-
Constructor Detail
-
ActionOutput
public ActionOutput(@NonNull JSONObject payload)
-
-
Method Detail
-
provide
public static ActionOutput provide(@NonNull JSONObject payload)
-
displayMessage
protected boolean displayMessage(LocalCampaign campaign)
Description copied from class:LocalCampaign.OutputDisplay 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- Specified by:
displayMessagein classLocalCampaign.Output- Returns:
- true is the campaign was displayed with success
-
-