robomez / devan012_marsphotos Goto Github PK
View Code? Open in Web Editor NEWСписок фотографий марса. Retrofit получает с сайта JSON список фотографий, Moshi переводит каждый пункт в Kotlin объект, Coil берёт из объектов Url фотографии и пытается её загрузить. Чтобы UI поток не тормозил в ожидании загрузок, они выполняются корутинами в ViewModelScope
License: Apache License 2.0