Class CampaignClassic

  • All Implemented Interfaces:

    
    public class CampaignClassic
    
                        

    CampaignClassic public API class

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static String extensionVersion() Returns the current version of the CampaignClassic extension.
      static void registerDevice(@NonNull() String token, String userKey, Map<String, Object> additionalParams) Registers a device with the configured Adobe Campaign Classic server instance.
      static void trackNotificationReceive(@NonNull() Map<String, String> trackInfo) Sends notification tracking information to the configured Adobe Campaign Classic server.
      static void trackNotificationClick(@NonNull() Map<String, String> trackInfo) Sends notification tracking information to the configured Adobe Campaign Classic server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • extensionVersion

        @NonNull() static String extensionVersion()

        Returns the current version of the CampaignClassic extension.

        Returns:

        String containing the current version

      • registerDevice

         static void registerDevice(@NonNull() String token, String userKey, Map<String, Object> additionalParams)

        Registers a device with the configured Adobe Campaign Classic server instance.

        Parameters:
        token - String containing unique registration token
        userKey - String containing the user identifier
        additionalParams - Map containing custom key-value pairs to be sent in the registration request
      • trackNotificationReceive

         static void trackNotificationReceive(@NonNull() Map<String, String> trackInfo)

        Sends notification tracking information to the configured Adobe Campaign Classic server.

        This API may be used to send tracking information when a notification is received on the device. If trackInfo is null or does not contain the necessary tracking identifiers, messageId _mId and deliveryId _dId, no track request is sent.

        Parameters:
        trackInfo - Map<String, String> containing _dId and _mId received in the message payload
      • trackNotificationClick

         static void trackNotificationClick(@NonNull() Map<String, String> trackInfo)

        Sends notification tracking information to the configured Adobe Campaign Classic server.

        This API may be used to send tracking information when user clicks on a notification. If trackInfo is null or does not contain the necessary tracking identifiers, messageId _mId and deliveryId _dId, no track request is sent.

        Parameters:
        trackInfo - Map<String, String> containing _dId and _mId received in the message payload