StreamImageLoaderFactory
class StreamImageLoaderFactory(builder: ImageLoader.Builder.() -> Unit = {}) : SingletonImageLoader.Factory
Factory for creating Coil ImageLoader instances with Stream Chat specific configuration.
This factory configures:
Memory cache with 25% of available memory
Disk cache using FileCacheManager's Coil cache directory (2% of disk space)
OkHttp with cache control and optimized network dispatcher
Support for GIFs, animated images, and video frames
Parameters
builder
Optional lambda to customize the ImageLoader configuration
Constructors
Link copied to clipboard
Creates a StreamImageLoaderFactory with additional Interceptors prepended to the component registry, before any decoders and before Coil's built-in EngineInterceptor.