Tristan
01/02/2020, 3:53 PMmbonnin
01/02/2020, 3:54 PMTristan
01/02/2020, 3:56 PMFoso
01/02/2020, 5:14 PMKurt Renzo Acosta
01/02/2020, 5:56 PMConflatedBroadcastChannel
behaves like a MutableLiveData
Instead of setValue
or postValue
, you can use offer
then you can expose it as a Flow
through asFlow
And to consume it, instead of fun LiveData.observe()
, you can use fun Flow.collect()