Migrating to AEPUserProfile

This document is a reference comparison of ACPUserProfile (2.x) APIs against their equivalent APIs in AEPUserProfile (3.x).

Primary Classes

SDK version

Language

Class name

ACPUserProfile

Objective-C

ACPUserProfile

AEPUserProfile

Swift

UserProfile

AEPUserProfile

Objective-C

AEPMobileUserProfile

UserProfile extension APIs

For more information, please read the Profile API reference.

extensionVersion

  • ACPUserProfile

    + (nonnull NSString*) extensionVersion;
  • UserProfile

    static var extensionVersion: String
  • AEPMobileUserProfile

    static var extensionVersion: String

updateUserAttributes

  • ACPUserProfile

    + (void) updateUserAttribute: (nonnull NSString*) attributeName withValue: (nullable NSString*) attributeValue;
  • UserProfile

    public static func updateUserAttributes(attributeDict: [String: Any])
  • AEPMobileUserProfile

    public static func updateUserAttributes(attributeDict: [String: Any])

removeUserAttribute

  • ACPUserProfile

    + (void) removeUserAttribute: (nonnull NSString*) key
  • UserProfile

    public static void removeUserAttribute(String attributeName)
  • AEPMobileUserProfile

    public static void removeUserAttribute(String attributeName)

getUserAttributes

  • ACPUserProfile

    + (void) getUserAttributes: (nullable NSArray <NSString*>*) attributNames withCompletionHandler: (nonnull void (^) (NSDictionary* __nullable userAttributes, NSError* _Nullable error)) completionHandler
  • UserProfile

    public static void getUserAttributes(List<String> keys, AdobeCallback<Map<String, Object>> callback)
  • AEPMobileUserProfile

    public static void getUserAttributes(List<String> keys, AdobeCallback<Map<String, Object>> callback)