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)
1
static func track(action: String?, data: [String: Any]?)
Copied!
1
+ (void)trackAction:(NSString * _Nullable)action data:(NSDictionary<NSString *, id> * _Nullable)data;
Copied!
1
+ (void) trackAction: (nullable NSString*) action data: (nullable NSDictionary*) contextData;
Copied!

trackState

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

collectPii

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

collectLaunchInfo

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

getSdkIdentities

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

setLogLevel

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

registerURLHandler

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

setAppGroup

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

configureWithAppId

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

updateConfiguration

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

configureWithFileInPath

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

extensionVersion

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
1
public static var extensionVersion: String
Copied!
1
+ (nonnull NSString*) extensionVersion;
Copied!
1
+ (nonnull NSString*) extensionVersion;
Copied!
Last modified 3mo ago