Class CampaignClassic
-
- All Implemented Interfaces:
public class CampaignClassicCampaignClassic public API class
-
-
Field Summary
Fields Modifier and Type Field Description public final static Class<out Extension>EXTENSIONpublic final static StringEXTENSION_VERSION
-
Method Summary
Modifier and Type Method Description static StringextensionVersion()Returns the current version of the CampaignClassicextension.static voidregisterDevice(@NonNull() String token, String userKey, Map<String, Object> additionalParams)Registers a device with the configured Adobe Campaign Classic server instance. static voidtrackNotificationReceive(@NonNull() Map<String, String> trackInfo)Sends notification tracking information to the configured Adobe Campaign Classic server. static voidtrackNotificationClick(@NonNull() Map<String, String> trackInfo)Sends notification tracking information to the configured Adobe Campaign Classic server. -
-
Method Detail
-
extensionVersion
@NonNull() static String extensionVersion()
Returns the current version of the
CampaignClassicextension.- Returns:
Stringcontaining 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-Stringcontaining unique registration tokenuserKey-Stringcontaining the user identifieradditionalParams-Mapcontaining 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
trackInfois null or does not contain the necessary tracking identifiers, messageId_mIdand deliveryId_dId, no track request is sent.- Parameters:
trackInfo-Map<String, String>containing_dIdand_mIdreceived 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
trackInfois null or does not contain the necessary tracking identifiers, messageId_mIdand deliveryId_dId, no track request is sent.- Parameters:
trackInfo-Map<String, String>containing_dIdand_mIdreceived in the message payload
-
-
-
-