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

trackState

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

collectPii

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

collectLaunchInfo

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

getSdkIdentities

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
static func getSdkIdentities(completion: @escaping (String?, Error?) -> Void)
+ (void)getSdkIdentities:(void (^ _Nonnull)(NSString * _Nullable, NSError * _Nullable))completion;
+ (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)
public static func setLogLevel(_ level: LogLevel)
+ (void)setLogLevel:(enum AEPLogLevel)level;
+ (void) setLogLevel: (ACPMobileLogLevel) logLevel;

registerURLHandler

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

setAppGroup

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

configureWithAppId

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

updateConfiguration

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

configureWithFileInPath

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

extensionVersion

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
public static var extensionVersion: String
+ (nonnull NSString*) extensionVersion;
+ (nonnull NSString*) extensionVersion;
For additional details see also Mobile Core API reference.
Export as PDF
Copy link
Edit on GitHub
On this page
Primary Classes
Core extension APIs
trackAction
trackState
collectPii
collectLaunchInfo
getSdkIdentities
setLogLevel
registerURLHandler
setAppGroup
configureWithAppId
updateConfiguration
configureWithFileInPath
extensionVersion