Budget Summary Component
The BudgetSummaryComponent
shows the user's overall spend in contrast to his budget and his expectedspend per time.
To use this view, just call the BudgetSummaryComponent
method ofyour LuneSDKManager
instance as shown in the example below.
// BudgetSummaryView.kt
import io.lunedata.lunesdk.library.classes.LuneSDKManager
@Composable
fun BudgetSummaryView(
luneSDK: LuneSDKManager
) {
luneSDK.BudgetSummaryComponent()
}
To use this view in a project with Activities and Fragments, set the component
property of your view to LuneView.BudgetSummaryComponent
, as shown in the example below.
// YourActivity.kt
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Grab our luneView and set the component property.
val luneView = findViewById<LuneCompatManager>(R.id.luneLayout)
luneView.component = LuneView.BudgetSummaryComponent
}
ON THIS PAGE