Edit in GitHubLog an issue

Migrating to AEPTarget reference

This document is a reference comparison of AEPTarget(3.x) APIs against their equivalent ACPTarget (2.x) APIs for an iOS mobile application implementation.

The AEPTarget extension is implemented purely in Swift and is compatible with the AEPCore Swift SDK. To ensure a smooth transition from the ACPTarget 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 an explanation beyond showing API differences is necessary, it will be captured as an info hint within that API's section.

Public classes

TypeAEP 3.x (Swift)AEP 3.x (Objective-C)ACP 2.x (Objective-C)
Primary Class (Module)
Target
AEPMobileTarget
ACPTarget
Class
TargetRequest
AEPTargetRequestObject
ACPTargetRequestObject
Class
TargetPrefetch
AEPTargetPrefetchObject
ACPTargetPrefetchObject
Class
TargetOrder
AEPTargetOrder
ACPTargetOrder
Class
TargetParameters
AEPTargetParameters
ACPTargetParameters
Class
TargetProduct
AEPTargetProduct
ACPTargetProduct

Public APIs

clearPrefetchCache

Copied to your clipboard
static func clearPrefetchCache()

clickedLocation

Copied to your clipboard
static func clickedLocation(_ name: String, targetParameters: TargetParameters? = nil)

extensionVersion

Copied to your clipboard
static var extensionVersion: String

getThirdPartyId

Copied to your clipboard
static func getThirdPartyId(_ completion: @escaping (String?, Error?) -> Void)

getTntId

Copied to your clipboard
static func getTntId(_ completion: @escaping (String?, Error?) -> Void)

prefetchContent

Copied to your clipboard
static func prefetchContent(_ prefetchArray: [TargetPrefetch], with targetParameters: TargetParameters? = nil, _ completion: ((Error?) -> Void)?)

registerExtension

Registration occurs by passing Target to the MobileCore.registerExtensions API.

Copied to your clipboard
MobileCore.registerExtensions([Target.self])

retrieveLocationContent

Copied to your clipboard
static func retrieveLocationContent(_ requestArray: [TargetRequest], with targetParameters: TargetParameters? = nil)
Copied to your clipboard
static func setPreviewRestartDeepLink(_ deeplink: URL)

setThirdPartyId

Copied to your clipboard
static func setThirdPartyId(_ id: String?)
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.