HomeViewModel

class HomeViewModel @Inject constructor(    dispatchers: CoroutineDispatchers,     productsAPI: ProductsAPI,     sharedPrefs: SharedPreferences,     localeManager: LocaleManager) : ViewModel

Constructors

Link copied to clipboard
@Inject
fun HomeViewModel(    dispatchers: CoroutineDispatchers,     productsAPI: ProductsAPI,     sharedPrefs: SharedPreferences,     localeManager: LocaleManager)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun addCloseable(@NonNull p0: Closeable)
Link copied to clipboard
fun refreshProductCount()
Link copied to clipboard
fun refreshTagline()
Link copied to clipboard
fun signIn(login: String, password: String)

Properties

Link copied to clipboard
val productCount: LiveData<Int>
Link copied to clipboard
val signInState: LiveData<Boolean>
Link copied to clipboard
val tagline: LiveData<TagLine>