Migrating to AEPCore reference

This document is a reference comparison of ACPCore (2.x) APIs against their equivalent APIs in AEPCore (3.x).

Primary Classes

Type

AEP 3.x (Swift)

AEP 3.x (Objective-C)

ACP 2.x (Objective-C)

Primary Class

MobileCore

AEPMobileCore

ACPCore

Enum

LogLevel

AEPLogLevel

ACPMobileLogLevel

Core extension APIs

trackAction

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
static func track(action: String?, data: [String: Any]?)
AEP 3.x (Objective-C)
+ (void)trackAction:(NSString * _Nullable)action data:(NSDictionary<NSString *, id> * _Nullable)data;
ACP 2.x (Objective-C)
+ (void) trackAction: (nullable NSString*) action data: (nullable NSDictionary*) contextData;

trackState

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
static func track(state: String?, data: [String: Any]?)
AEP 3.x (Objective-C)
+ (void)trackState:(NSString * _Nullable)state data:(NSDictionary<NSString *, id> * _Nullable)data;
ACP 2.x (Objective-C)
+ (void) trackState: (nullable NSString*) state data: (nullable NSDictionary*) contextData;

collectPii

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
public static func collectPii(_ data: [String: Any])
AEP 3.x (Objective-C)
+ (void)collectPii:(NSDictionary<NSString *, id> * _Nonnull)data;
ACP 2.x (Objective-C)
+ (void) collectPii: (nonnull NSDictionary<NSString*, NSString*>*) data;

collectLaunchInfo

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
public static func collectLaunchInfo(_ userInfo: [String: Any])
AEP 3.x (Objective-C)
+ (void)collectLaunchInfo:(NSDictionary<NSString *, id> * _Nonnull)userInfo;
ACP 2.x (Objective-C)
+ (void) collectLaunchInfo: (nonnull NSDictionary*) userInfo;

getSdkIdentities

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
static func getSdkIdentities(completion: @escaping (String?, Error?) -> Void)
AEP 3.x (Objective-C)
+ (void)getSdkIdentities:(void (^ _Nonnull)(NSString * _Nullable, NSError * _Nullable))completion;
ACP 2.x (Objective-C)
+ (void) getSdkIdentities: (nullable void (^) (NSString* __nullable content)) callback;
+ (void) getSdkIdentitiesWithCompletionHandler: (nullable void (^) (NSString* __nullable content, NSError* _Nullable error)) completionHandler;

setLogLevel

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
public static func setLogLevel(_ level: LogLevel)
AEP 3.x (Objective-C)
+ (void)setLogLevel:(enum AEPLogLevel)level;
ACP 2.x (Objective-C)
+ (void) setLogLevel: (ACPMobileLogLevel) logLevel;

registerURLHandler

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
// Not supported
AEP 3.x (Objective-C)
// Not supported
ACP 2.x (Objective-C)
+ (void) registerURLHandler: (nonnull BOOL (^) (NSString* __nullable url)) callback;

setAppGroup

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
public static func setAppGroup(_ group: String?)
AEP 3.x (Objective-C)
+ (void)setAppGroup:(NSString * _Nullable)group;
ACP 2.x (Objective-C)
+ (void) setAppGroup: (nullable NSString*) appGroup;

configureWithAppId

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
static func configureWith(appId: String)
AEP 3.x (Objective-C)
+ (void)configureWithAppId:(NSString * _Nonnull)appId;
ACP 2.x (Objective-C)
+ (void) configureWithAppId: (NSString* __nullable) appid;

updateConfiguration

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
static func updateConfigurationWith(configDict: [String: Any])
AEP 3.x (Objective-C)
+ (void)updateConfiguration:(NSDictionary<NSString *, id> * _Nonnull)configDict;
ACP 2.x (Objective-C)
+ (void) updateConfiguration: (NSDictionary* __nullable) config;

configureWithFileInPath

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
static func configureWith(filePath: String)
AEP 3.x (Objective-C)
+ (void)configureWithFilePath:(NSString * _Nonnull)filePath;
ACP 2.x (Objective-C)
+ (void) configureWithFileInPath: (NSString* __nullable) filepath;

extensionVersion

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