Class LocalCampaign.Output

  • Direct Known Subclasses:
    LandingOutput
    Enclosing class:
    LocalCampaign

    public abstract static class LocalCampaign.Output
    extends java.lang.Object
    Define how this campaign will be displayed on the screen when triggered successfully
    • Constructor Summary

      Constructors 
      Constructor Description
      Output​(JSONObject payload)  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      protected abstract boolean displayMessage​(LocalCampaign campaign)
      Display a local campaign message and track campaign view with the ViewTracker.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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