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.
Type | AEP 3.x (Swift) | AEP 3.x (Objective-C) | ACP 2.x (Objective-C) |
---|---|---|---|
Primary Class | Lifecycle | AEPMobileLifecycle | ACPLifecycle |
Class | MobileCore | AEPMobileCore | ACPCore |
For more information, please read the Lifecycle API reference.
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
Lifecycle.extensionVersion
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
[AEPMobileLifecycle extensionVersion];
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
ACPLifecycle.extensionVersion()
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
MobileCore.lifecycleStart(additionalContextData: data)
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
[AEPMobileCore lifecycleStart: data];
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
[ACPCore lifecycleStart: data];
{% endtab %} {% endtabs %}
{% tabs %} {% tab title="AEP 3.x (Swift)" %}
MobileCore.lifecyclePause()
{% endtab %}
{% tab title="AEP 3.x (Objective-C)" %}
[AEPMobileCore lifecyclePause];
{% endtab %}
{% tab title="ACP 2.x (Objective-C)" %}
[ACPCore lifecyclePause];
{% endtab %} {% endtabs %}