Migrating to AEPCampaignClassic reference
This document is a reference comparison of AEPCampaignClassic (3.x) APIs against their equivalent APIs in ACPCampaignClassic (2.x) for an iOS mobile application implementation.
The AEPCampaignClassic extension is implemented purely in Swift and is compatible with the AEPCore Swift SDK. To ensure a smooth transition from the ACPCampaignClassic SDK, there are no major changes on the API names or definition. For more details, follow the migration guide below for your Swift or Objective-C mobile application. If explanation beyond showing API differences is necessary, it will be captured as an info hint within that API's section.

AEPCampaignClassic classes

Type
AEP (3.x)
AEP 3.x (Objective-C)
ACP (2.x)
Primary Class (Module)
CampaignClassic
AEPMobileCampaignClassic
ACPCampaignClassic

AEPCampaignClassic APIs

extensionVersion

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
static var extensionVersion: String
+ (nonnull NSString*) extensionVersion;
+ (nonnull NSString*) extensionVersion;

registerExtension

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
Registration occurs by passing CampaignClassic to the MobileCore.registerExtensions API.
MobileCore.registerExtensions([CampaignClassic.self])
Registration occurs by passing AEPMobileCampaignClassic to the [AEPMobileCore registerExtensions:completion:] API.
[AEPMobileCore registerExtensions:@[AEPMobileCampaignClassic.class] completion:nil];
[ACPCampaignClassic registerExtension];
[ACPCore start:^{
}];

registerDevice

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
static func registerDevice(token: Data, userKey: String?, additionalParameters: [String: Any]?)
+ (void) registerDeviceWithToken: (nonnull NSData*) token userKey: (nullable NSString*) userKey additionalParams: (nullable NSDictionary*) additionalParams;
+ (void) registerDevice: (nonnull NSData*) token userKey: (nullable NSString*) userKey additionalParams: (nullable NSDictionary*) additionalParams callback: (nullable void (^) (BOOL success)) callback;

trackNotificationClick

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
static func trackNotificationClick(withUserInfo userInfo: [AnyHashable: Any])
+ (void) trackNotificationClickWithUserInfo:(nonnull NSDictionary*) userInfo;
+ (void) trackNotificationClick:(nonnull NSDictionary<NSString*, NSString*>*) trackInfo;

trackNotificationReceive

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
static func trackNotificationReceive(withUserInfo userInfo: [AnyHashable: Any])
+ (void) trackNotificationReceiveWithUserInfo:(nonnull NSDictionary*) userInfo;
+ (void) trackNotificationReceive:(nonnull NSDictionary<NSString*, NSString*>*) trackInfo;
Export as PDF
Copy link
Edit on GitHub
On this page
AEPCampaignClassic classes
AEPCampaignClassic APIs
extensionVersion
registerExtension
registerDevice
trackNotificationClick
trackNotificationReceive