Migrating to AEPCore reference
This document is a reference comparison of ACPCore (2.x) APIs against their equivalent APIs in AEPCore (3.x).
Type | AEP 3.x (Swift) | AEP 3.x (Objective-C) | ACP 2.x (Objective-C) |
---|---|---|---|
Primary Class | MobileCore | AEPMobileCore | ACPCore |
Enum | LogLevel | AEPLogLevel | ACPMobileLogLevel |
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
Last modified 4mo ago