CoilModule

@Module
object CoilModule

Module that provides the ImageLoader instance for Coil.

Functions

Link copied to clipboard
@Provides
@Singleton
fun provideImageLoader(okHttpCallFactory: Call.Factory, application: Context): ImageLoader

Since we're displaying SVGs in the app, Coil needs an ImageLoader which supports this format. During Coil's initialization it will call applicationContext.newImageLoader() to obtain an ImageLoader.