Migrating to AEPUserProfile
This document is a reference comparison of ACPUserProfile (2.x) APIs against their equivalent APIs in AEPUserProfile (3.x).
Primary Classes
Type | AEP 3.x (Swift) | AEP 3.x (Objective-C) | ACP 2.x (Objective-C) |
---|---|---|---|
Primary Class | UserProfile | AEPMobileUserProfile | ACPUserProfile |
UserProfile extension APIs
For more information, please read the Profile API reference.
extensionVersion
AEP 3.x (Swift)
Copied to your clipboardstatic 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 clipboardstatic var extensionVersion: String
Copied to your clipboard+ (nonnull NSString*) extensionVersion;
Copied to your clipboard+ (nonnull NSString*) extensionVersion;
updateUserAttributes
AEP 3.x (Swift)
Copied to your clipboardpublic static func updateUserAttributes(attributeDict: [String: Any])
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)updateUserAttributesWithAttributeDict:(NSDictionary<NSString *, id> * _Nonnull)attributeDict;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) updateUserAttribute: (nonnull NSString*) attributeName withValue: (nullable NSString*) attributeValue;
Copied to your clipboardpublic static func updateUserAttributes(attributeDict: [String: Any])
Copied to your clipboard+ (void)updateUserAttributesWithAttributeDict:(NSDictionary<NSString *, id> * _Nonnull)attributeDict;
Copied to your clipboard+ (void) updateUserAttribute: (nonnull NSString*) attributeName withValue: (nullable NSString*) attributeValue;
removeUserAttribute
AEP 3.x (Swift)
Copied to your clipboardpublic static void removeUserAttribute(String attributeName)
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)removeUserAttributesWithAttributeNames:(NSArray<NSString *> * _Nonnull)attributeNames;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) removeUserAttribute: (nonnull NSString*) key
Copied to your clipboardpublic static void removeUserAttribute(String attributeName)
Copied to your clipboard+ (void)removeUserAttributesWithAttributeNames:(NSArray<NSString *> * _Nonnull)attributeNames;
Copied to your clipboard+ (void) removeUserAttribute: (nonnull NSString*) key
getUserAttributes
AEP 3.x (Swift)
Copied to your clipboardpublic static void getUserAttributes(List<String> keys, AdobeCallback<Map<String, Object>> callback)
AEP 3.x (Objective-C)
Copied to your clipboard+ (void)getUserAttributesWithAttributeNames:(NSArray<NSString *> * _Nonnull)attributeNames completion:(void (^ _Nonnull)(NSDictionary<NSString *, id> * _Nullable, enum AEPError))completion;
ACP 2.x (Objective-C)
Copied to your clipboard+ (void) getUserAttributes: (nullable NSArray <NSString*>*) attributNames withCompletionHandler: (nonnull void (^) (NSDictionary* __nullable userAttributes, NSError* _Nullable error)) completionHandler
Copied to your clipboardpublic static void getUserAttributes(List<String> keys, AdobeCallback<Map<String, Object>> callback)
Copied to your clipboard+ (void)getUserAttributesWithAttributeNames:(NSArray<NSString *> * _Nonnull)attributeNames completion:(void (^ _Nonnull)(NSDictionary<NSString *, id> * _Nullable, enum AEPError))completion;
Copied to your clipboard+ (void) getUserAttributes: (nullable NSArray <NSString*>*) attributNames withCompletionHandler: (nonnull void (^) (NSDictionary* __nullable userAttributes, NSError* _Nullable error)) completionHandler