Uncoiling the COIL - Modern Image Loading on Android
summary
COIL is a Kotlin-first image loader that uses coroutines and OkHttp for disk caching, claims to add ~2,000 methods to an app (if you don’t already depend on coroutines/OkHttp), and adds Jetpack Compose via Jetpack Compose support (1.3.0). The pipeline runs interceptors and mappers on the main thread, fetchers/decoders/transformations on workers, offers enqueue (returns a disposable) and execute (suspend) APIs, and implements a two‑layer in‑memory cache (strong→weak eviction, weak cache cleared every 10 set operations).
AI-written summary · about
chapters (22)
- 0:00Start
- 3:02What is COIL?
- 4:45Why COIL?
- 9:37Kotlin syntactic sugar
- 10:43Imperative style
- 11:25Jetpack Compose Support
- 12:42The pipeline
- 15:54ImageLoader
- 17:45Interceptors
- 20:04Plugin custom interceptor
- 21:36Mappers
- 21:46Mapper - Example
- 23:14Plugin custom mapper
- 26:49Plugin custom fetcher
- 29:28Plugin custom decoder
- 31:27Plugin custom transformation
- 31:55Thread
- 32:24In memory caching
- 35:01Strong Memory Cache
- 37:18Weak Memory Cache
- 38:03Summary
- 39:05Resources
related talks
42mUncoiling the COIL Understanding modern image loading on Android
41mA Picture Is Worth A 1,000 ... Lines? Devs?: Get the full picture (on image loading) with Coil
01h 16mA Composable New World!
41mAndroid, Compose, MP & Server - Inject them all with Coin
52mModern Android Development
39mInject your Jetpack Compose Application with Koin
51mModern Android Development
41mFrom ImageView to Compose: Architecting Image Loading
