Migrating to AEPAudience
This document is a reference comparison of AEPAudience (3.x) APIs against their equivalent ACPAudience (2.x) APIs.
The AEPAudience extension is implemented purely in Swift and is compatible with the AEPCore Swift SDK. To ensure a smooth transition from the ACPAudience SDK, there are no major changes on the API names or definition. For more details, follow the migration guide below for your Swift or Objective-C mobile application. If explanation beyond showing API differences is necessary, it will be captured as an info hint within that API's section.

AEPAudience classes

Type
AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
Primary Class
Audience
AEPMobileAudience
ACPAudience

AEPAudience APIs

extensionVersion

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
1
static var extensionVersion: String
Copied!
1
+ (nonnull NSString*) extensionVersion;
Copied!
1
+ (nonnull NSString*) extensionVersion;
Copied!

getVisitorProfile

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
1
static func getVisitorProfile(completion: @escaping ([String: String]?, Error?) -> Void)
Copied!
1
+ (void) getVisitorProfile:^(NSDictionary<NSString *,NSString *> * _Nullable visitorProfile, NSError * _Nullable error)completion
Copied!
1
+ (void) getVisitorProfile:^(NSDictionary * _Nullable visitorProfile) callback;
2
3
+ (void) getVisitorProfileWithCompletionHandler:^(NSDictionary * _Nullable visitorProfile, NSError * _Nullable error) completionHandler;
Copied!

reset

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
1
static func reset()
Copied!
1
+ (void) reset;
Copied!
1
+ (void) reset;
Copied!

signalWithData

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
1
static func signalWithData(data: [String: String], completion: @escaping ([String: String]?, Error?) -> Void)
Copied!
1
+ (void) signalWithData:(NSDictionary<NSString *,NSString *> * _Nonnull data) completion:^(NSDictionary<NSString *,NSString *> * _Nullable vistorProfile, NSError * _Nullable error)completion
Copied!
1
+ (void) signalWithData: (NSDictionary<NSString *, NSString *> * _Nullable) data
2
callback:^(NSDictionary* _Nullable visitorProfile) callback;
3
4
+ (void) signalWithData: (NSDictionary<NSString *, NSString *> * _Nonnull) data
5
withCompletionHandler:^(NSDictionary * _Nullable visitorProfile, NSError * _Nullable error) completionHandler;
Copied!
Last modified 3mo ago