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

The class name containing public APIs is different depending on which SDK and language combination being used.

SDK version

Language

Class name

ACPCore

Objective-C

ACPCore

AEPCore

Swift

MobileCore

AEPCore

Objective-C

AEPMobileCore

Additional public Classes and Enums

SDK version

Language

Class name

ACPCore

Objective-C

ACPMobileLogLevel

AEPCore

Swift

LogLevel

AEPCore

Objective-C

AEPLogLevel

Core extension APIs

For more information, please read the Mobile Core API reference.

trackAction

  • ACPCore

    + (void) trackAction: (nullable NSString*) action data: (nullable NSDictionary*) contextData
  • MobileCore

    @objc(trackAction:data:)
    static func track(action: String?, data: [String: Any]?)
  • AEPMobileCore

    @objc(trackAction:data:)
    static func track(action: String?, data: [String: Any]?)

trackState

  • ACPCore

    + (void) trackState: (nullable NSString*) state data: (nullable NSDictionary*) contextData;
  • MobileCore

    @objc(trackState:data:)
    static func track(state: String?, data: [String: Any]?)
  • AEPMobileCore

    @objc(trackState:data:)
    static func track(state: String?, data: [String: Any]?)

collectPii

  • ACPCore

    + (void) collectPii: (nonnull NSDictionary<NSString*, NSString*>*) data;
  • MobileCore

    @objc(collectPii:)
    public static func collectPii(_ data: [String: Any])
  • AEPMobileCore

    @objc(collectPii:)
    public static func collectPii(_ data: [String: Any])

collectLaunchInfo

  • ACPCore

    + (void) collectLaunchInfo: (nonnull NSDictionary*) userInfo;
  • MobileCore

    @objc(collectLaunchInfo:)
    public static func collectLaunchInfo(_ userInfo: [String: Any])
  • AEPMobileCore

    @objc(collectLaunchInfo:)
    public static func collectLaunchInfo(_ userInfo: [String: Any])

getSdkIdentities

  • ACPCore

    + (void) getSdkIdentities: (nullable void (^) (NSString* __nullable content)) callback;
    + (void) getSdkIdentitiesWithCompletionHandler: (nullable void (^) (NSString* __nullable content, NSError* _Nullable error)) completionHandler;
  • MobileCore

    @objc(getSdkIdentities:)
    static func getSdkIdentities(completion: @escaping (String?, Error?) -> Void)
  • AEPMobileCore

    @objc(getSdkIdentities:)
    static func getSdkIdentities(completion: @escaping (String?, Error?) -> Void)

setLogLevel

  • ACPCore

    + (void) setLogLevel: (ACPMobileLogLevel) logLevel;
  • MobileCore

    @objc(setLogLevel:)
    public static func setLogLevel(_ level: LogLevel)
  • AEPMobileCore

    @objc(setLogLevel:)
    public static func setLogLevel(_ level: LogLevel)Void)

    registerURLHandler

  • ACPCore

    + (void) registerURLHandler: (nonnull BOOL (^) (NSString* __nullable url)) callback;
  • MobileCore

    // Not supported
  • AEPMobileCore

    // Not supported

    setAppGroup

  • ACPCore

    + (void) setAppGroup: (nullable NSString*) appGroup;
  • MobileCore

    public static func setAppGroup(_ group: String?)
  • AEPMobileCore

    public static func setAppGroup(_ group: String?)

configureWithAppId

  • ACPCore

    + (void) configureWithAppId: (NSString* __nullable) appid;
  • MobileCore

    static func configureWith(appId: String)
  • AEPMobileCore

    ```objective-c static func configureWith(appId: String)

updateConfiguration

  • ACPCore

    + (void) updateConfiguration: (NSDictionary* __nullable) config;
  • MobileCore

    @objc(updateConfiguration:)
    static func updateConfigurationWith(configDict: [String: Any])
  • AEPMobileCore

    ```objective-c @objc(updateConfiguration:) static func updateConfigurationWith(configDict: [String: Any])

configureWithFileInPath

  • ACPCore

    + (void) configureWithFileInPath: (NSString* __nullable) filepath;
  • MobileCore

    static func configureWith(filePath: String)
  • AEPMobileCore

    static func configureWith(filePath: String)

extensionVersion

  • ACPCore

    + (nonnull NSString*) extensionVersion;
  • MobileCore

    @objc public static var extensionVersion: String
  • AEPMobileCore

    @objc public static var extensionVersion: String