SourceResult

class SourceResult(source: ImageSource, mimeType: String?, dataSource: DataSource) : FetchResult

An ImageSource result, which will be consumed by the relevant Decoder.

Parameters

source

The ImageSource to read from.

mimeType

An optional MIME type for the source.

dataSource

The source that source was fetched from.

Constructors

SourceResult
Link copied to clipboard
fun SourceResult(source: ImageSource, mimeType: String?, dataSource: DataSource)
The ImageSource to read from.

Functions

copy
Link copied to clipboard
fun copy(source: ImageSource = this.source, mimeType: String? = this.mimeType, dataSource: DataSource = this.dataSource): SourceResult
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int

Properties

dataSource
Link copied to clipboard
val dataSource: DataSource
The source that source was fetched from.
mimeType
Link copied to clipboard
val mimeType: String?
An optional MIME type for the source.
source
Link copied to clipboard
val source: ImageSource
The ImageSource to read from.