Expand my Community achievements bar.

Adobe Experience Platform Mobile SDK with Jetpack Compose | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

Adobe Experience Platform Mobile SDK with Jetpack Compose by Yansong Yang

Abstract

In this blog, we give you a step-by-step tutorial on how to integrate Adobe Experience Platform Mobile SDKs with a Jetpack Compose application.

Jetpack Compose, which is becoming more and more popular, is Android’s modern toolkit for building native UI. It simplifies and accelerates UI development on Android and it brings your app to life with less code, powerful tools, and intuitive Kotlin APIs.

Initializing AEP Mobile SDK
Registering the extensions and initializing the Adobe Experience Platform Mobile SDKs when launching the application are required before making SDK API calls. This sample code is provided as a reference. For more information, see the documentation on “add initialization code”.


class MyApp: Application() {
override fun onCreate() {
super.onCreate()
MobileCore.setApplication(this)
MobileCore.setLogLevel(LoggingMode.VERBOSE)
Lifecycle.registerExtension()
Analytics.registerExtension()
Identity.registerExtension()
MobileCore.configureWithAppID("your-app-id")
MobileCore.start {
MobileCore.lifecycleStart(object : HashMap<String?, String?>() {
init {
put("key", "value")
}
})
}
}
}

Read Full Blog

Adobe Experience Platform Mobile SDK with Jetpack Compose

Q&A

Please use this thread to ask the related questions.



Kautuk Sahni
0 Replies