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

desktopMain.com.seiko.imageloader.component.SetupDefaultComponents.desktop.kt Maven / Gradle / Ivy

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

import androidx.compose.ui.unit.Density
import com.seiko.imageloader.util.httpEngine
import io.ktor.client.HttpClient
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers

fun ComponentRegistryBuilder.setupDefaultComponents(
    imageScope: CoroutineScope = CoroutineScope(Dispatchers.Main),
    density: Density = Density(2f),
    httpClient: () -> HttpClient = { HttpClient(httpEngine) },
) {
    setupKtorComponents(httpClient)
    setupBase64Components()
    setupCommonComponents()
    setupJvmComponents()
    setupSkiaComponents(imageScope, density)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy