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
constructor(builder: ImageLoader.Builder.() -> Unit = {})

Functions

Link copied to clipboard
open override fun newImageLoader(context: <Error class: unknown class>): ImageLoader