All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.seiko.imageloader.intercept.MappedInterceptor.kt Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
package com.seiko.imageloader.intercept

import com.seiko.imageloader.request.ImageResult

class MappedInterceptor : Interceptor {
    override suspend fun intercept(chain: Interceptor.Chain): ImageResult {
        val (request, options, components) = chain

        val data = request.data
        val mappedData = components.map(data, options)
        val newRequest = request.newBuilder().data(mappedData).build()
        return chain.proceed(newRequest)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy