Class LandingOutput
- java.lang.Object
-
- com.batch.android.localcampaigns.model.LocalCampaign.Output
-
- com.batch.android.localcampaigns.output.LandingOutput
-
public class LandingOutput extends LocalCampaign.Output
-
-
Field Summary
-
Fields inherited from class com.batch.android.localcampaigns.model.LocalCampaign.Output
payload
-
-
Constructor Summary
Constructors Constructor Description LandingOutput(MessagingModule messagingModule, JSONObject payload)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandisplayMessage(LocalCampaign campaign)Display a local campaign message and track campaign view with the ViewTracker.static LandingOutputprovide(JSONObject payload)
-
-
-
Constructor Detail
-
LandingOutput
public LandingOutput(MessagingModule messagingModule, @NonNull JSONObject payload)
-
-
Method Detail
-
provide
public static LandingOutput provide(@NonNull JSONObject payload)
-
displayMessage
public 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
-
-