Skip to content

//room/dev.atick.storage.room.dao/ExpenseDao/getCategorySpending

getCategorySpending

[androidJvm]\ abstract fun getCategorySpending(category: String, startDate: Long, endDate: Long): Flow<Double?>

Get the total spending for the given category.

Return

A Flow of Double representing the total spending for the given category.

Parameters

androidJvm

category The category for which the total spending is to be retrieved.
startDate The start date for the spending to be retrieved.
endDate The end date for the spending to be retrieved.