Migrating to AEPLifecycle reference

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

Public Classes

Type

AEP 3.x (Swift)

AEP 3.x (Objective-C)

ACP 2.x (Objective-C)

Primary Class

Lifecycle

AEPMobileLifecycle

ACPLifecycle

Class

MobileCore

AEPMobileCore

ACPCore

Lifecycle extension APIs

For more information, please read the Lifecycle API reference.

extensionVersion

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
Lifecycle.extensionVersion
AEP 3.x (Objective-C)
[AEPMobileLifecycle extensionVersion];
ACP 2.x (Objective-C)
ACPLifecycle.extensionVersion()

lifecycleStart

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
MobileCore.lifecycleStart(additionalContextData: data)
AEP 3.x (Objective-C)
[AEPMobileCore lifecycleStart: data];
ACP 2.x (Objective-C)
[ACPCore lifecycleStart: data];

lifecyclePause

AEP 3.x (Swift)
AEP 3.x (Objective-C)
ACP 2.x (Objective-C)
AEP 3.x (Swift)
MobileCore.lifecyclePause()
AEP 3.x (Objective-C)
[AEPMobileCore lifecyclePause];
ACP 2.x (Objective-C)
[ACPCore lifecyclePause];