This document lists the APIs provided by Lifecycle extension, along with sample code snippets on how to properly use the APIs.
For more in-depth information about the Lifecycle extension, visit the official SDK documentation on Lifecycle.
Lifecycle.EXTENSION
represents a reference to the LifecycleExtension
class that can be registered with MobileCore
via its registerExtensions
api.
import com.adobe.marketing.mobile.Lifecycle;
MobileCore.registerExtensions(Arrays.asList(Lifecycle.EXTENSION, ...), new AdobeCallback<Object>() {
// handle callback
});
import com.adobe.marketing.mobile.Lifecycle
MobileCore.registerExtensions(Arrays.asList(Lifecycle.EXTENSION, ...)){
// handle callback
}
final String lifecycleExtensionVersion = Lifecycle.extensionVersion();
val lifecycleExtensionVersion: String = Lifecycle.extensionVersion()