CategoryFragmentViewModel

class CategoryFragmentViewModel @Inject constructor(taxonomiesRepository: TaxonomiesRepository, localeManager: LocaleManager) : ViewModel

Constructors

Link copied to clipboard
@Inject
fun CategoryFragmentViewModel(taxonomiesRepository: TaxonomiesRepository, localeManager: LocaleManager)

Functions

Link copied to clipboard
open fun addCloseable(@NonNull p0: Closeable)
Link copied to clipboard
fun refreshCategories()

Generates a network call for showing categories in CategoryFragment

Link copied to clipboard
fun searchCategories(query: String)

Search for all the category names that or equal to/start with a given string

Properties

Link copied to clipboard
val shownCategories: MutableLiveData<List<CategoryName>>
Link copied to clipboard
val showOffline: MutableLiveData<Boolean>
Link copied to clipboard
val showProgress: MutableLiveData<Boolean>