Package-level declarations

Types

Link copied to clipboard
class CDNImageInterceptor(cdn: () -> CDN? = { if (ChatClient.isInitialized) ChatClient.instance().cdn else null }) : Interceptor

A Coil Interceptor that intercepts image requests and applies CDN transformations.

Link copied to clipboard
object StreamCoil
Link copied to clipboard
sealed interface StreamImageLoader
Link copied to clipboard
data class VideoThumbnailImageData(val thumbnailUrl: String?, val videoUrl: String?)

Image request data for a video preview that should be loaded from the server thumbnail when available, and fall back to a frame extracted from the video itself when the thumbnail is missing or fails to load.

Functions

Link copied to clipboard
fun Map<String, String>.toNetworkHeaders(): NetworkHeaders
Link copied to clipboard

Builds the VideoThumbnailImageData for a video attachment from the given thumbnailUrl and the attachment's Attachment.assetUrl, or returns null when neither is available.