Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
1.0.1 source code.tar.gz | 2021-06-02 | 34.4 MB | |
1.0.1 source code.zip | 2021-06-02 | 34.5 MB | |
README.md | 2021-06-02 | 736 Bytes | |
Totals: 3 Items | 68.9 MB | 0 |
🎉 Released a new version 1.0.1
! 🎉
What's New?
- Migrated from
LiveData
toFlow
for observing data on UI layers from ViewModels. - Used Assisted Injection in
DetailViewModel
. -
Used
asBindingProperty
for observing flow data as properties.:::kotlin private val pokemonInfoFlow = detailRepository.fetchPokemonInfo( name = pokemonName, onComplete = { isLoading = false }, onError = { errorMessage = it } )
@get:Bindable val pokemonInfo: PokemonInfo? by pokemonInfoFlow.asBindingProperty(viewModelScope, null)