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 |
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
static func track(action: String?, data: [String: Any]?)
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (void)trackAction:(NSString * _Nullable)action data:(NSDictionary<NSString *, id> * _Nullable)data;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) trackAction: (nullable NSString*) action data: (nullable NSDictionary*) contextData;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
static func track(state: String?, data: [String: Any]?)
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (void)trackState:(NSString * _Nullable)state data:(NSDictionary<NSString *, id> * _Nullable)data;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) trackState: (nullable NSString*) state data: (nullable NSDictionary*) contextData;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
public static func collectPii(_ data: [String: Any])
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (void)collectPii:(NSDictionary<NSString *, id> * _Nonnull)data;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) collectPii: (nonnull NSDictionary<NSString*, NSString*>*) data;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
public static func collectLaunchInfo(_ userInfo: [String: Any])
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (void)collectLaunchInfo:(NSDictionary<NSString *, id> * _Nonnull)userInfo;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) collectLaunchInfo: (nonnull NSDictionary*) userInfo;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
static func getSdkIdentities(completion: @escaping (String?, Error?) -> Void)
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (void)getSdkIdentities:(void (^ _Nonnull)(NSString * _Nullable, NSError * _Nullable))completion;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) getSdkIdentities: (nullable void (^) (NSString* __nullable content)) callback;
+ (void) getSdkIdentitiesWithCompletionHandler: (nullable void (^) (NSString* __nullable content, NSError* _Nullable error)) completionHandler;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
public static func setLogLevel(_ level: LogLevel)
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (void)setLogLevel:(enum AEPLogLevel)level;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) setLogLevel: (ACPMobileLogLevel) logLevel;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
// Not supported
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
// Not supported
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) registerURLHandler: (nonnull BOOL (^) (NSString* __nullable url)) callback;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
public static func setAppGroup(_ group: String?)
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (void)setAppGroup:(NSString * _Nullable)group;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) setAppGroup: (nullable NSString*) appGroup;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
static func configureWith(appId: String)
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (void)configureWithAppId:(NSString * _Nonnull)appId;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) configureWithAppId: (NSString* __nullable) appid;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
static func updateConfigurationWith(configDict: [String: Any])
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (void)updateConfiguration:(NSDictionary<NSString *, id> * _Nonnull)configDict;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) updateConfiguration: (NSDictionary* __nullable) config;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
static func configureWith(filePath: String)
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (void)configureWithFilePath:(NSString * _Nonnull)filePath;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (void) configureWithFileInPath: (NSString* __nullable) filepath;
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
public static var extensionVersion: String
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
+ (nonnull NSString*) extensionVersion;
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
+ (nonnull NSString*) extensionVersion;
{% endtab %} {% endtabs %}
{% hint style="info" %} For additional details see also Mobile Core API reference. {% endhint %}