The LikeMinds Android Feed SDK empowers you to integrate personalized and engaging feeds into your Android application, enhancing user experiences and driving user engagement. The detailed guide for Feed-SDK is available here.
Implement the LikeMinds Feed SDK dependency to setup the Feed SDK.
- Add Jitpack Maven Repository in your root level
build.gradlefile
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}- Add the dependency in app level
build.gradlefile
dependencies {
...
implementation 'com.github.NateshR.LikeMinds-Android-Feed-SDK:likemindsfeed:v1.2.0'
}Now pass the following parameters to the LMFeedClient and create it in your Application class onCreate().
| VARIABLE | DESCRIPTION |
|---|---|
| application | Context of your application. |
| lmCallback | Used to implement the LMCallback interface. |
Create the client object by passing the parameters to the Builder. You will use this client throughout your Android application to call various functions to fetch data.
val client = LMFeedClient.Builder(application) //Application context
.lmCallback(LMCallback)
.build()interface LMCallback {
// This method is called when the user is not logged in or guest
// It is called when the user tries to perform an action that requires login
// The user should be redirected to your appropriate login screen
fun login() {}
}Licensed under the Apache License, Version 2.0. See LICENSE for details.