CategoryViewModel

class CategoryViewModel(cardRepository: CardRepository)

Author

Umang Chamaria Date: 27/04/20

Constructors

CategoryViewModel
Link copied to clipboard
fun CategoryViewModel(cardRepository: CardRepository)

Functions

cardsForCategory
Link copied to clipboard
fun cardsForCategory(category: String)
refreshCardsIfRequired
Link copied to clipboard
fun refreshCardsIfRequired()
registerCallback
Link copied to clipboard
fun registerCallback(categoryCallback: CategoryCallback)
unregisterCallback
Link copied to clipboard
fun unregisterCallback()