Interface SwrveEmbeddedListener


  • public interface SwrveEmbeddedListener
    Implement this interface if you plan on using embedded campaigns This will provide an object with information Note: the methods in this interface will be invoked from the UI thread.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onMessage​(android.content.Context context, SwrveEmbeddedMessage message, java.util.Map<java.lang.String,​java.lang.String> personalizationProperties, boolean isControl)
      This method is invoked when an Embedded Campaign was triggered
    • Method Detail

      • onMessage

        void onMessage​(android.content.Context context,
                       SwrveEmbeddedMessage message,
                       java.util.Map<java.lang.String,​java.lang.String> personalizationProperties,
                       boolean isControl)
        This method is invoked when an Embedded Campaign was triggered
        Parameters:
        context - context
        message - message contents
        personalizationProperties - string map of personalization key / value pairs.
        isControl - flag to determine if control or treatment Campaign, Control campaigns should not be shown to users.