Difficulty: Medium
Location: app/src/main/java/com/example/movies_db/data/repository/MovieRepositoryImpl.kt
Description:
When saveMovieToWatchlist is called:
- Get
ImageLoader.
- Create an
ImageRequest for the poster URL.
- Call
loader.enqueue(request).
- This ensures the image is in the disk cache for offline use.
Difficulty: Medium
Location:
app/src/main/java/com/example/movies_db/data/repository/MovieRepositoryImpl.ktDescription:
When
saveMovieToWatchlistis called:ImageLoader.ImageRequestfor the poster URL.loader.enqueue(request).