Collecting flows in a lifecycle-aware manner

Collecting flows in a lifecycle-aware manner

Android Developers

1 год назад

17,918 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@trocchiettoski
@trocchiettoski - 27.03.2023 20:43

Manuel you are doing a lot of job to improve how Android should be taught. Finally you guys from Android speak slowly, put emphasis on the words, and furnish a lot of visual tools, and explain clearly the problem you are going to solve, then repeat in a structure what you say, and finally we have an app android now that put in practice everything.

Ответить
@georgeshalvashvili6270
@georgeshalvashvili6270 - 23.02.2023 17:49

This API is just ugly, why do we have so many lambdas nested? Why not have it as clean as LiveData?

Ответить
@omotexoman9860
@omotexoman9860 - 21.02.2023 08:13

thanks

Ответить
@albab790
@albab790 - 17.01.2023 22:40

Thanks

Ответить
@zekininadresi
@zekininadresi - 04.11.2022 13:19

That's why LiveData might be outdoing Flows. Integrating lifecycle into your flows this way always creates a new coroutine, for example, when the app is sent to bg (STOPPED) and brought back to fg (STARTED) again. If you had LiveData, you could just observe it w/out this overhead and latest data would always been republished when necessary.

Ответить
@alco8964
@alco8964 - 01.11.2022 08:09

The problem of the collect manner is too many workable ways that let junior developer may use incorrectly.

Ответить
@SnoopyDoofie
@SnoopyDoofie - 29.10.2022 14:42

Not sure wha the point of this is given that there has already been a lifecycle api available for years and you can use it in a viewmodel where you can do your flow collection.

Ответить
@anthonyanthony3871
@anthonyanthony3871 - 26.10.2022 19:43

Thankss and byebye live data

Ответить
@kalidsherefuddin
@kalidsherefuddin - 24.10.2022 20:05

Ok thanks

Ответить