Lune Logo
  • Start here
    HomeChangelogLicenses
    Components
    ButtonsInputsAvatarsBadgesTooltipsNotifications
    CardsTablesModalsTabsBread crumbsEmpty states
Overview
Introduction
Quickstart
Data Enrichment
Insights Dashboard
SDK
Playground
Changelog
Get template
Default
lunedata.io
Login
Overview
Introduction
Quickstart
Data Enrichment
Enrich Transactions
PDF Enrichment
CSV Files
Insights Dashboard
SDK
iOS
Android
Playground
Changelog
FAQs

<< Back

Category Spend List Component

Top Categories

The CategorySpendListComponent shows the user's overall spend in contrast to his budget and his expected spend per time.

To use this view, just call the CategorySpendListComponent method of your LuneSDKManager instance as shown in the example below.

// CategorySpendView.kt

import io.lunedata.lunesdk.library.classes.LuneSDKManager

@Composable
fun CategorySpendView(
    luneSDK: LuneSDKManager
) {
    luneSDK.CategorySpendListComponent()
}

To use this view in a project with Activities and Fragments, set the component property of your view to LuneView.CategorySpendListComponent, 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.CategorySpendListComponent
}
ON THIS PAGE
Lune Docs
lunedata.ioSupportCopyright ©Lune 2024. All rights reserved