Skip to content

Latest commit

 

History

History
81 lines (63 loc) · 1.66 KB

acplifecycle-aeplifecycle.md

File metadata and controls

81 lines (63 loc) · 1.66 KB

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

{% 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 %}

lifecycleStart

{% 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 %}

lifecyclePause

{% 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 %}