commonMain.com.seiko.imageloader.request.ImageResult.kt Maven / Gradle / Ivy
package com.seiko.imageloader.request
import androidx.compose.ui.graphics.painter.Painter
import com.seiko.imageloader.Image
import okio.BufferedSource
sealed interface ImageResult {
val request: ImageRequest
}
data class SourceResult(
override val request: ImageRequest,
val channel: BufferedSource,
val mimeType: String? = null,
val metadata: Any? = null,
) : ImageResult
data class ComposeImageResult(
override val request: ImageRequest,
val image: Image,
) : ImageResult
data class ComposePainterResult(
override val request: ImageRequest,
val painter: Painter,
) : ImageResult
data class ErrorResult(
override val request: ImageRequest,
val error: Throwable,
) : ImageResult
© 2015 - 2025 Weber Informatics LLC | Privacy Policy