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)
Copied to your clipboardstatic func track(action: String?, data: [String: Any]?)
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)trackAction:(NSString * _Nullable)action data:(NSDictionary<NSString *, id> * _Nullable)data;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) trackAction: (nullable NSString*) action data: (nullable NSDictionary*) contextData;
Copied to your clipboardstatic func track(action: String?, data: [String: Any]?)
Copied to your clipboard+ (void)trackAction:(NSString * _Nullable)action data:(NSDictionary<NSString *, id> * _Nullable)data;
Copied to your clipboard+ (void) trackAction: (nullable NSString*) action data: (nullable NSDictionary*) contextData;
trackState
AEP 3.x (Swift)
Copied to your clipboardstatic func track(state: String?, data: [String: Any]?)
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)trackState:(NSString * _Nullable)state data:(NSDictionary<NSString *, id> * _Nullable)data;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) trackState: (nullable NSString*) state data: (nullable NSDictionary*) contextData;
Copied to your clipboardstatic func track(state: String?, data: [String: Any]?)
Copied to your clipboard+ (void)trackState:(NSString * _Nullable)state data:(NSDictionary<NSString *, id> * _Nullable)data;
Copied to your clipboard+ (void) trackState: (nullable NSString*) state data: (nullable NSDictionary*) contextData;
collectPii
AEP 3.x (Swift)
Copied to your clipboardpublic static func collectPii(_ data: [String: Any])
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)collectPii:(NSDictionary<NSString *, id> * _Nonnull)data;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) collectPii: (nonnull NSDictionary<NSString*, NSString*>*) data;
Copied to your clipboardpublic static func collectPii(_ data: [String: Any])
Copied to your clipboard+ (void)collectPii:(NSDictionary<NSString *, id> * _Nonnull)data;
Copied to your clipboard+ (void) collectPii: (nonnull NSDictionary<NSString*, NSString*>*) data;
collectLaunchInfo
AEP 3.x (Swift)
Copied to your clipboardpublic static func collectLaunchInfo(_ userInfo: [String: Any])
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)collectLaunchInfo:(NSDictionary<NSString *, id> * _Nonnull)userInfo;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) collectLaunchInfo: (nonnull NSDictionary*) userInfo;
Copied to your clipboardpublic static func collectLaunchInfo(_ userInfo: [String: Any])
Copied to your clipboard+ (void)collectLaunchInfo:(NSDictionary<NSString *, id> * _Nonnull)userInfo;
Copied to your clipboard+ (void) collectLaunchInfo: (nonnull NSDictionary*) userInfo;
getSdkIdentities
AEP 3.x (Swift)
Copied to your clipboardstatic func getSdkIdentities(completion: @escaping (String?, Error?) -> Void)
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)getSdkIdentities:(void (^ _Nonnull)(NSString * _Nullable, NSError * _Nullable))completion;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) getSdkIdentities: (nullable void (^) (NSString* __nullable content)) callback;+ (void) getSdkIdentitiesWithCompletionHandler: (nullable void (^) (NSString* __nullable content, NSError* _Nullable error)) completionHandler;
Copied to your clipboardstatic func getSdkIdentities(completion: @escaping (String?, Error?) -> Void)
Copied to your clipboard+ (void)getSdkIdentities:(void (^ _Nonnull)(NSString * _Nullable, NSError * _Nullable))completion;
Copied to your clipboard+ (void) getSdkIdentities: (nullable void (^) (NSString* __nullable content)) callback;+ (void) getSdkIdentitiesWithCompletionHandler: (nullable void (^) (NSString* __nullable content, NSError* _Nullable error)) completionHandler;
setLogLevel
AEP 3.x (Swift)
Copied to your clipboardpublic static func setLogLevel(_ level: LogLevel)
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)setLogLevel:(enum AEPLogLevel)level;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) setLogLevel: (ACPMobileLogLevel) logLevel;
Copied to your clipboardpublic static func setLogLevel(_ level: LogLevel)
Copied to your clipboard+ (void)setLogLevel:(enum AEPLogLevel)level;
Copied to your clipboard+ (void) setLogLevel: (ACPMobileLogLevel) logLevel;
registerURLHandler
AEP 3.x (Swift)
Copied to your clipboard// Not supported
AEP 3.x (Objective-C)
Copied to your clipboard// Not supported
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) registerURLHandler: (nonnull BOOL (^) (NSString* __nullable url)) callback;
Copied to your clipboard// Not supported
Copied to your clipboard// Not supported
Copied to your clipboard+ (void) registerURLHandler: (nonnull BOOL (^) (NSString* __nullable url)) callback;
setAppGroup
AEP 3.x (Swift)
Copied to your clipboardpublic static func setAppGroup(_ group: String?)
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)setAppGroup:(NSString * _Nullable)group;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) setAppGroup: (nullable NSString*) appGroup;
Copied to your clipboardpublic static func setAppGroup(_ group: String?)
Copied to your clipboard+ (void)setAppGroup:(NSString * _Nullable)group;
Copied to your clipboard+ (void) setAppGroup: (nullable NSString*) appGroup;
configureWithAppId
AEP 3.x (Swift)
Copied to your clipboardstatic func configureWith(appId: String)
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)configureWithAppId:(NSString * _Nonnull)appId;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) configureWithAppId: (NSString* __nullable) appid;
Copied to your clipboardstatic func configureWith(appId: String)
Copied to your clipboard+ (void)configureWithAppId:(NSString * _Nonnull)appId;
Copied to your clipboard+ (void) configureWithAppId: (NSString* __nullable) appid;
updateConfiguration
AEP 3.x (Swift)
Copied to your clipboardstatic func updateConfigurationWith(configDict: [String: Any])
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)updateConfiguration:(NSDictionary<NSString *, id> * _Nonnull)configDict;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) updateConfiguration: (NSDictionary* __nullable) config;
Copied to your clipboardstatic func updateConfigurationWith(configDict: [String: Any])
Copied to your clipboard+ (void)updateConfiguration:(NSDictionary<NSString *, id> * _Nonnull)configDict;
Copied to your clipboard+ (void) updateConfiguration: (NSDictionary* __nullable) config;
configureWithFileInPath
AEP 3.x (Swift)
Copied to your clipboardstatic func configureWith(filePath: String)
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)configureWithFilePath:(NSString * _Nonnull)filePath;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) configureWithFileInPath: (NSString* __nullable) filepath;
Copied to your clipboardstatic func configureWith(filePath: String)
Copied to your clipboard+ (void)configureWithFilePath:(NSString * _Nonnull)filePath;
Copied to your clipboard+ (void) configureWithFileInPath: (NSString* __nullable) filepath;
extensionVersion
AEP 3.x (Swift)
Copied to your clipboardpublic static var extensionVersion: String
AEP 3.x (Objective-C)
Copied to your clipboard+ (nonnull NSString*) extensionVersion;
ACP 2.x (Objective-C)
Copied to your clipboard+ (nonnull NSString*) extensionVersion;
Copied to your clipboardpublic static var extensionVersion: String
Copied to your clipboard+ (nonnull NSString*) extensionVersion;
Copied to your clipboard+ (nonnull NSString*) extensionVersion;